summaryrefslogtreecommitdiff
path: root/net/speedtouch
diff options
context:
space:
mode:
authorkristerw <kristerw>2005-06-18 11:29:10 +0000
committerkristerw <kristerw>2005-06-18 11:29:10 +0000
commit2796ebcc7edba5d41931fbbee8615c686e8a615b (patch)
treed8e0c06141d094e447c6aeee2df4789851a0e5ad /net/speedtouch
parentb357acf5b3d1446c910154446d4ab993d59bc656 (diff)
downloadpkgsrc-2796ebcc7edba5d41931fbbee8615c686e8a615b.tar.gz
The file sbin/pppoa3 is not built unless pthreads and semaphores are
available. Remove it from the PLIST when we do not have native threads.
Diffstat (limited to 'net/speedtouch')
-rw-r--r--net/speedtouch/Makefile10
-rw-r--r--net/speedtouch/PLIST4
2 files changed, 11 insertions, 3 deletions
diff --git a/net/speedtouch/Makefile b/net/speedtouch/Makefile
index d59fd1ab932..82ea2ecb334 100644
--- a/net/speedtouch/Makefile
+++ b/net/speedtouch/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2005/02/04 19:32:45 tron Exp $
+# $NetBSD: Makefile,v 1.17 2005/06/18 11:29:10 kristerw Exp $
DISTNAME= speedtouch-1.3.1
PKGREVISION= 3
@@ -30,6 +30,14 @@ CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
PLIST_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
RCD_SCRIPTS= adsl
+.include "../../mk/pthread.buildlink3.mk"
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native"
+PLIST_SUBST+= PPPOA3=""
+.else
+PLIST_SUBST+= PPPOA3="@comment "
+CONFIGURE_ENV+= ac_cv_lib_pthread_pthread_create=no
+.endif
+
pre-extract:
${MKDIR} ${WRKDIR}/firmware
diff --git a/net/speedtouch/PLIST b/net/speedtouch/PLIST
index 28f4eac7555..1724186154c 100644
--- a/net/speedtouch/PLIST
+++ b/net/speedtouch/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2005/05/02 20:34:04 reed Exp $
+@comment $NetBSD: PLIST,v 1.7 2005/06/18 11:29:10 kristerw Exp $
share/examples/rc.d/adsl
@exec ${MKDIR} ${PKG_SYSCONFDIR}/speedtouch
bin/speedtouch-setup
@@ -14,7 +14,7 @@ man/man8/pppoa2.8
man/man8/pppoa3.8
sbin/modem_run
sbin/pppoa2
-sbin/pppoa3
+${PPPOA3}sbin/pppoa3
share/doc/speedtouch/FAQ
share/doc/speedtouch/FAQ-fr
share/doc/speedtouch/INSTALL