summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2013-06-13 21:36:46 +0000
committerjperkin <jperkin@pkgsrc.org>2013-06-13 21:36:46 +0000
commitc81e02301896d7f1e7fd521a30feb88a1372e3c8 (patch)
tree6b0d7749993b36bbce75d013da0454d237c01e41
parent200a008931921fca21acdd592ff52c4e008ef897 (diff)
downloadpkgsrc-c81e02301896d7f1e7fd521a30feb88a1372e3c8.tar.gz
Only disable OpenSSL if not using a builtin implementation.
-rw-r--r--archivers/bsdtar/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/archivers/bsdtar/Makefile b/archivers/bsdtar/Makefile
index 5fc3274e2d9..0fc7c953302 100644
--- a/archivers/bsdtar/Makefile
+++ b/archivers/bsdtar/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2013/06/13 16:25:19 jperkin Exp $
+# $NetBSD: Makefile,v 1.20 2013/06/13 21:36:46 jperkin Exp $
#
DISTNAME= bsdtar-2.8.4
@@ -19,6 +19,9 @@ GNU_CONFIGURE= yes
.include "../../archivers/bzip2/builtin.mk"
.include "../../devel/zlib/builtin.mk"
+CHECK_BUILTIN.openssl:= yes
+.include "../../security/openssl/builtin.mk"
+CHECK_BUILTIN.openssl:= no
.if empty(USE_BUILTIN.bzip2:M[yY][eE][sS])
CPPFLAGS+= -I${WRKDIR}/bzip2
@@ -28,14 +31,16 @@ LDFLAGS+= -L${WRKDIR}/bzip2
CPPFLAGS+= -I${WRKDIR}/zlib
LDFLAGS+= -L${WRKDIR}/zlib
.endif
+.if empty(USE_BUILTIN.openssl:M[yY][eE][sS])
+CONFIGURE_ARGS+= --without-openssl
+.endif
FILESDIR.bzip2?= ${.CURDIR}/../../archivers/bzip2/files
FILESDIR.libarchive?= ${.CURDIR}/../../archivers/libarchive/files
FILESDIR.zlib?= ${.CURDIR}/../../devel/zlib/files
CONFIGURE_ARGS+= --enable-bsdtar=static --disable-cpio \
- --disable-shared --without-xml2 --without-expat \
- --without-openssl
+ --disable-shared --without-xml2 --without-expat
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1