diff options
author | leot <leot@pkgsrc.org> | 2016-02-18 19:06:09 +0000 |
---|---|---|
committer | leot <leot@pkgsrc.org> | 2016-02-18 19:06:09 +0000 |
commit | 9f1aaa3fcd9db85d20ab70a8ae13060e4dd53d9f (patch) | |
tree | 4c39f3d9a8b443945c9bc618b0e2bba2a07547af /www | |
parent | 0e6262750e6625d234d11c95e025cec98d4ad325 (diff) | |
download | pkgsrc-9f1aaa3fcd9db85d20ab70a8ae13060e4dd53d9f.tar.gz |
Bump _XOPEN_SOURCE version to 600 in order to avoid "Compiler or options
invalid for pre-UNIX 03 X/Open applications" error on SunOS and correctly
define _POSIX_SOURCE.
Should fix build issues on SunOS.
Diffstat (limited to 'www')
-rw-r--r-- | www/vimb/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/www/vimb/Makefile b/www/vimb/Makefile index e39f1852a18..fe5f2c935d6 100644 --- a/www/vimb/Makefile +++ b/www/vimb/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2016/01/24 17:08:39 leot Exp $ +# $NetBSD: Makefile,v 1.2 2016/02/18 19:06:09 leot Exp $ DISTNAME= vimb-2.11 CATEGORIES= www @@ -13,6 +13,16 @@ USE_TOOLS+= gmake pkg-config CFLAGS.NetBSD+= -D_NETBSD_SOURCE # needed for LOCK_* macros in <fcntl.h> +# Bump _XOPEN_SOURCE version to 600 in order to avoid "Compiler or options +# invalid for pre-UNIX 03 X/Open applications" error on SunOS and correctly +# define _POSIX_SOURCE +SUBST_CLASSES+= configmk +SUBST_STAGE.configmk= pre-configure +SUBST_MESSAGE.configmk= Bump _XOPEN_SOURCE version and correctly define _POSIX_SOURCE +SUBST_FILES.configmk= config.mk +SUBST_SED.configmk+= -e '/_XOPEN_SOURCE/ s/500/600/' +SUBST_SED.configmk+= -e '/_POSIX_SOURCE/ s/-DPOSIX_SOURCE/-DPOSIX_SOURCE=1/' + EGDIR= ${PREFIX}/share/examples/vimb MAKE_ENV+= EXAMPLEDIR="${EGDIR}" MANDIR="${PREFIX}/${PKGMANDIR}" |