pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/vimb vimb: Reintroduce SunOS build fixes accidenta...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fb0c1d98b121
branches:  trunk
changeset: 318499:fb0c1d98b121
user:      leot <leot%pkgsrc.org@localhost>
date:      Sat Jan 26 11:27:51 2019 +0000

description:
vimb: Reintroduce SunOS build fixes accidentally lost in vimb 3.x update

>From wip/vimb2, should hopefully fix build on SunOS.

PKGREVISION++

diffstat:

 www/vimb/Makefile |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 75f15ba9f67f -r fb0c1d98b121 www/vimb/Makefile
--- a/www/vimb/Makefile Sat Jan 26 11:25:13 2019 +0000
+++ b/www/vimb/Makefile Sat Jan 26 11:27:51 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.27 2018/12/09 18:52:50 adam Exp $
+# $NetBSD: Makefile,v 1.28 2019/01/26 11:27:51 leot Exp $
 
 DISTNAME=      vimb-3.3.0
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    www
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=fanglingsu/}
 
@@ -14,6 +14,15 @@
 USE_LANGUAGES= c99
 
 CFLAGS.NetBSD+=        -D_NETBSD_SOURCE        # needed for LOCK_* macros in <fcntl.h>
+LDFLAGS.SunOS+=        -lsocket -lnsl
+
+# Bump _XOPEN_SOURCE version to 600 in order to avoid "Compiler or options
+# invalid for pre-UNIX 03 X/Open applications" error on SunOS
+SUBST_CLASSES+=                configmk
+SUBST_STAGE.configmk=  pre-configure
+SUBST_MESSAGE.configmk=        Bump _XOPEN_SOURCE version
+SUBST_FILES.configmk=  config.mk
+SUBST_SED.configmk+=   -e '/_XOPEN_SOURCE/ s/500/600/'
 
 EGDIR=         ${PREFIX}/share/examples/vimb
 



Home | Main Index | Thread Index | Old Index