2016-08-03 12:22:08 +02:00
|
|
|
# $NetBSD: Makefile,v 1.6 2016/08/03 10:23:32 adam Exp $
|
2016-01-24 18:08:39 +01:00
|
|
|
|
|
|
|
DISTNAME= vimb-2.11
|
2016-08-03 12:22:08 +02:00
|
|
|
PKGREVISION= 4
|
2016-01-24 18:08:39 +01:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=fanglingsu/}
|
|
|
|
|
|
|
|
MAINTAINER= leot@NetBSD.org
|
|
|
|
HOMEPAGE= http://fanglingsu.github.io/vimb/
|
|
|
|
COMMENT= Vim-like webkit browser
|
|
|
|
LICENSE= gnu-gpl-v3
|
|
|
|
|
|
|
|
USE_TOOLS+= gmake pkg-config
|
|
|
|
|
|
|
|
CFLAGS.NetBSD+= -D_NETBSD_SOURCE # needed for LOCK_* macros in <fcntl.h>
|
|
|
|
|
2016-02-18 20:06:09 +01:00
|
|
|
# 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/'
|
|
|
|
|
2016-01-24 18:08:39 +01:00
|
|
|
EGDIR= ${PREFIX}/share/examples/vimb
|
|
|
|
|
|
|
|
MAKE_ENV+= EXAMPLEDIR="${EGDIR}" MANDIR="${PREFIX}/${PKGMANDIR}"
|
|
|
|
|
2016-06-01 23:46:22 +02:00
|
|
|
NOT_PAX_MPROTECT_SAFE+= bin/vimb
|
|
|
|
|
2016-01-24 18:08:39 +01:00
|
|
|
.include "../../net/libsoup/buildlink3.mk"
|
|
|
|
.include "../../www/webkit24-gtk/buildlink3.mk"
|
|
|
|
.include "../../x11/gtk2/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|