2016-05-03 13:40:00 +02:00
|
|
|
# $NetBSD: Makefile,v 1.4 2016/05/03 11:40:10 prlw1 Exp $
|
2016-01-24 18:08:39 +01:00
|
|
|
|
|
|
|
DISTNAME= vimb-2.11
|
2016-05-03 13:40:00 +02:00
|
|
|
PKGREVISION= 2
|
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}"
|
|
|
|
|
|
|
|
.include "../../net/libsoup/buildlink3.mk"
|
|
|
|
.include "../../www/webkit24-gtk/buildlink3.mk"
|
|
|
|
.include "../../x11/gtk2/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|