| @@ -1,34 +1,36 @@ | | | @@ -1,34 +1,36 @@ |
1 | # $NetBSD: Makefile,v 1.4 2016/05/03 11:40:10 prlw1 Exp $ | | 1 | # $NetBSD: Makefile,v 1.5 2016/06/01 21:46:22 leot Exp $ |
2 | | | 2 | |
3 | DISTNAME= vimb-2.11 | | 3 | DISTNAME= vimb-2.11 |
4 | PKGREVISION= 2 | | 4 | PKGREVISION= 3 |
5 | CATEGORIES= www | | 5 | CATEGORIES= www |
6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=fanglingsu/} | | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=fanglingsu/} |
7 | | | 7 | |
8 | MAINTAINER= leot@NetBSD.org | | 8 | MAINTAINER= leot@NetBSD.org |
9 | HOMEPAGE= http://fanglingsu.github.io/vimb/ | | 9 | HOMEPAGE= http://fanglingsu.github.io/vimb/ |
10 | COMMENT= Vim-like webkit browser | | 10 | COMMENT= Vim-like webkit browser |
11 | LICENSE= gnu-gpl-v3 | | 11 | LICENSE= gnu-gpl-v3 |
12 | | | 12 | |
13 | USE_TOOLS+= gmake pkg-config | | 13 | USE_TOOLS+= gmake pkg-config |
14 | | | 14 | |
15 | CFLAGS.NetBSD+= -D_NETBSD_SOURCE # needed for LOCK_* macros in <fcntl.h> | | 15 | CFLAGS.NetBSD+= -D_NETBSD_SOURCE # needed for LOCK_* macros in <fcntl.h> |
16 | | | 16 | |
17 | # Bump _XOPEN_SOURCE version to 600 in order to avoid "Compiler or options | | 17 | # Bump _XOPEN_SOURCE version to 600 in order to avoid "Compiler or options |
18 | # invalid for pre-UNIX 03 X/Open applications" error on SunOS and correctly | | 18 | # invalid for pre-UNIX 03 X/Open applications" error on SunOS and correctly |
19 | # define _POSIX_SOURCE | | 19 | # define _POSIX_SOURCE |
20 | SUBST_CLASSES+= configmk | | 20 | SUBST_CLASSES+= configmk |
21 | SUBST_STAGE.configmk= pre-configure | | 21 | SUBST_STAGE.configmk= pre-configure |
22 | SUBST_MESSAGE.configmk= Bump _XOPEN_SOURCE version and correctly define _POSIX_SOURCE | | 22 | SUBST_MESSAGE.configmk= Bump _XOPEN_SOURCE version and correctly define _POSIX_SOURCE |
23 | SUBST_FILES.configmk= config.mk | | 23 | SUBST_FILES.configmk= config.mk |
24 | SUBST_SED.configmk+= -e '/_XOPEN_SOURCE/ s/500/600/' | | 24 | SUBST_SED.configmk+= -e '/_XOPEN_SOURCE/ s/500/600/' |
25 | SUBST_SED.configmk+= -e '/_POSIX_SOURCE/ s/-DPOSIX_SOURCE/-DPOSIX_SOURCE=1/' | | 25 | SUBST_SED.configmk+= -e '/_POSIX_SOURCE/ s/-DPOSIX_SOURCE/-DPOSIX_SOURCE=1/' |
26 | | | 26 | |
27 | EGDIR= ${PREFIX}/share/examples/vimb | | 27 | EGDIR= ${PREFIX}/share/examples/vimb |
28 | | | 28 | |
29 | MAKE_ENV+= EXAMPLEDIR="${EGDIR}" MANDIR="${PREFIX}/${PKGMANDIR}" | | 29 | MAKE_ENV+= EXAMPLEDIR="${EGDIR}" MANDIR="${PREFIX}/${PKGMANDIR}" |
30 | | | 30 | |
| | | 31 | NOT_PAX_MPROTECT_SAFE+= bin/vimb |
| | | 32 | |
31 | .include "../../net/libsoup/buildlink3.mk" | | 33 | .include "../../net/libsoup/buildlink3.mk" |
32 | .include "../../www/webkit24-gtk/buildlink3.mk" | | 34 | .include "../../www/webkit24-gtk/buildlink3.mk" |
33 | .include "../../x11/gtk2/buildlink3.mk" | | 35 | .include "../../x11/gtk2/buildlink3.mk" |
34 | .include "../../mk/bsd.pkg.mk" | | 36 | .include "../../mk/bsd.pkg.mk" |