summaryrefslogtreecommitdiff
path: root/sysutils/fam
diff options
context:
space:
mode:
authorjmmv <jmmv>2004-10-17 20:12:06 +0000
committerjmmv <jmmv>2004-10-17 20:12:06 +0000
commitd21f6e6bb2dddf3216182d3189cc9d5e71c66b92 (patch)
tree995a2a3f85a77ef8beb21ecaa0e4615ab569c0dc /sysutils/fam
parent9651b00a538e74a9fe104a06ec0baea7b2f5d9ac (diff)
downloadpkgsrc-d21f6e6bb2dddf3216182d3189cc9d5e71c66b92.tar.gz
When enabling kqueue, only link famd against -lpthread, not everything.
Diffstat (limited to 'sysutils/fam')
-rw-r--r--sysutils/fam/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysutils/fam/Makefile b/sysutils/fam/Makefile
index 2e1c8ab1b22..bff1fc99522 100644
--- a/sysutils/fam/Makefile
+++ b/sysutils/fam/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2004/10/17 19:20:53 jmmv Exp $
+# $NetBSD: Makefile,v 1.19 2004/10/17 20:12:06 jmmv Exp $
#
DISTNAME= fam-2.7.0
@@ -41,13 +41,13 @@ PKG_SUPPORTED_OPTIONS= kqueue
.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'
+SUBST_FILES.kqueue= src/Makefile.in
+SUBST_SED.kqueue= -e 's,@MONITOR_FUNCS@,IMonKQueue,g'
+SUBST_SED.kqueue+= -e 's,@LIBS@,@LIBS@ -lpthread,g'
MESSAGE_SRC= ${.CURDIR}/MESSAGE ${.CURDIR}/MESSAGE.kqueue