From 326b42fa0cece61d2cb023818605c54728d23b90 Mon Sep 17 00:00:00 2001 From: kristerw Date: Sat, 18 Jun 2005 11:29:10 +0000 Subject: 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. --- net/speedtouch/Makefile | 10 +++++++++- net/speedtouch/PLIST | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'net/speedtouch') 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 -- cgit v1.2.3