summaryrefslogtreecommitdiff
path: root/sysutils/fam
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2004-10-17 20:12:06 +0000
committerjmmv <jmmv@pkgsrc.org>2004-10-17 20:12:06 +0000
commit8a9f544435bc87f0ea82c50689c48fef09009ec8 (patch)
tree995a2a3f85a77ef8beb21ecaa0e4615ab569c0dc /sysutils/fam
parent707fd8bfe6fe03b624b3199cf91eb11c334c3fb2 (diff)
downloadpkgsrc-8a9f544435bc87f0ea82c50689c48fef09009ec8.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