summaryrefslogtreecommitdiff
path: root/security/stunnel
diff options
context:
space:
mode:
authorschmonz <schmonz>2007-08-11 14:41:36 +0000
committerschmonz <schmonz>2007-08-11 14:41:36 +0000
commit3deab37877ea6245afee12a6c5ad82c7a853a874 (patch)
tree080f1b4d2e64b3b06603789060d24afba418878a /security/stunnel
parent397c167de1f07d4821985c19401369a6968f8ff1 (diff)
downloadpkgsrc-3deab37877ea6245afee12a6c5ad82c7a853a874.tar.gz
Make pthreads support optional. Bump PKGREVISION.
Diffstat (limited to 'security/stunnel')
-rw-r--r--security/stunnel/Makefile15
-rw-r--r--security/stunnel/options.mk18
2 files changed, 19 insertions, 14 deletions
diff --git a/security/stunnel/Makefile b/security/stunnel/Makefile
index 114c74f2b55..d50ee94406e 100644
--- a/security/stunnel/Makefile
+++ b/security/stunnel/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.59 2007/01/23 21:53:58 smb Exp $
+# $NetBSD: Makefile,v 1.60 2007/08/11 14:41:36 schmonz Exp $
DISTNAME= stunnel-4.20
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= security
MASTER_SITES= ftp://ftp.fu-berlin.de/unix/security/stunnel/ \
ftp://stunnel.mirt.net/stunnel/ \
@@ -28,18 +28,9 @@ RCD_SCRIPTS= stunnel
REPLACE_PERL+= src/stunnel3.in
USE_TOOLS+= perl:run
-.include "../../mk/bsd.prefs.mk"
-.include "options.mk"
-
.include "../../mk/pthread.buildlink3.mk"
-.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
-CONFIGURE_ARGS+= --with-threads=fork
-.else
-CONFIGURE_ARGS+= --with-threads=pthread
-CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}" \
- LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
-.endif
+.include "options.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../security/tcp_wrappers/buildlink3.mk"
diff --git a/security/stunnel/options.mk b/security/stunnel/options.mk
index 4a1993b0e85..6fcaf194329 100644
--- a/security/stunnel/options.mk
+++ b/security/stunnel/options.mk
@@ -1,7 +1,10 @@
-# $NetBSD: options.mk,v 1.2 2005/07/04 10:29:43 salo Exp $
+# $NetBSD: options.mk,v 1.3 2007/08/11 14:41:36 schmonz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.stunnel
-PKG_SUPPORTED_OPTIONS= inet6
+PKG_SUPPORTED_OPTIONS= inet6 pthread
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} != "none"
+PKG_SUGGESTED_OPTIONS+= pthread
+.endif
.include "../../mk/bsd.options.mk"
@@ -13,3 +16,14 @@ CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
+
+###
+### Support pthreads
+###
+.if !empty(PKG_OPTIONS:Mpthread)
+CONFIGURE_ARGS+= --with-threads=pthread
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}" \
+ LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
+.else
+CONFIGURE_ARGS+= --with-threads=fork
+.endif