diff options
Diffstat (limited to 'sysutils/fam/Makefile')
-rw-r--r-- | sysutils/fam/Makefile | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/sysutils/fam/Makefile b/sysutils/fam/Makefile index cfa64668fa0..2e1c8ab1b22 100644 --- a/sysutils/fam/Makefile +++ b/sysutils/fam/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.17 2004/10/16 14:40:23 jmmv Exp $ +# $NetBSD: Makefile,v 1.18 2004/10/17 19:20:53 jmmv Exp $ # DISTNAME= fam-2.7.0 -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= sysutils devel MASTER_SITES= ftp://oss.sgi.com/projects/fam/download/stable/ \ ftp://ftp.tuwien.ac.at/opsys/linux/gentoo/distfiles/ \ @@ -26,10 +26,36 @@ CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -DNDEBUG" EGDIR= ${PREFIX}/share/examples/fam CONF_FILES= ${EGDIR}/fam.conf ${PKG_SYSCONFDIR}/fam.conf +RCD_SCRIPTS= famd + SUBST_CLASSES+= paths SUBST_MESSAGE.paths= "Fixing hardcoded paths." -SUBST_STAGE.paths= post-patch +SUBST_STAGE.paths= pre-configure SUBST_FILES.paths= man/famd.conf.5 man/famd.8 SUBST_SED.paths= -e 's,/usr/local/etc/,${PKG_SYSCONFDIR}/,g' +PKG_OPTIONS_VAR= PKG_OPTIONS.fam +PKG_SUPPORTED_OPTIONS= kqueue + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mkqueue) && ${OPSYS} == "NetBSD" +CPPFLAGS+= -DHAVE_KQUEUE +LIBS+= -lpthread + +SUBST_CLASSES+= kqueue +SUBST_MESSAGE.kqueue= "Enabling kqueue monitoring." +SUBST_STAGE.kqueue= pre-configure +SUBST_FILES.kqueue= configure +SUBST_SED.kqueue= -e 's,IMonNone,IMonKQueue,g' + +MESSAGE_SRC= ${.CURDIR}/MESSAGE ${.CURDIR}/MESSAGE.kqueue + +.include "../../mk/pthread.buildlink3.mk" +.endif + +post-extract: + ${CP} ${FILESDIR}/IMonKQueue.c++ ${WRKSRC}/src + ${CP} ${FILESDIR}/imon-compat.h ${WRKSRC}/src + .include "../../mk/bsd.pkg.mk" |