summaryrefslogtreecommitdiff
path: root/net/libupnp
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2008-02-04 21:52:16 +0000
committertnn <tnn@pkgsrc.org>2008-02-04 21:52:16 +0000
commitbd484f092b33d7b700d9f99d4ad18fdd9a103681 (patch)
tree6a032eb849f70d58ed1f9bd0f57bf29929e27098 /net/libupnp
parenta2626f3542db8dae98c938f821684de4d5c6ba86 (diff)
downloadpkgsrc-bd484f092b33d7b700d9f99d4ad18fdd9a103681.tar.gz
Needs -lrt on NetBSD-current
Diffstat (limited to 'net/libupnp')
-rw-r--r--net/libupnp/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/libupnp/Makefile b/net/libupnp/Makefile
index 28067e94268..940ececdb41 100644
--- a/net/libupnp/Makefile
+++ b/net/libupnp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2008/02/03 03:01:51 obache Exp $
+# $NetBSD: Makefile,v 1.12 2008/02/04 21:52:16 tnn Exp $
#
DISTNAME= libupnp-1.6.5
@@ -25,5 +25,11 @@ PKG_DESTDIR_SUPPORT= user-destdir
TEST_TARGET= check
+.include "../../mk/bsd.prefs.mk"
.include "../../mk/pthread.buildlink3.mk"
+
+.if ${OPSYS} == "NetBSD" && exists(/usr/include/sys/pset.h)
+PTHREAD_LIBS+= -lrt
+.endif
+
.include "../../mk/bsd.pkg.mk"