[pkg-opensc-commit] [opensc] 107/295: only build opensc when needed

Eric Dorland eric at moszumanska.debian.org
Sat Jun 24 21:11:21 UTC 2017


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository opensc.

commit c4a99517afb7e0e275752fd0f7c21f07b9bcc9c1
Author: Frank Morgner <morgner at informatik.hu-berlin.de>
Date:   Wed Oct 12 14:52:48 2016 +0200

    only build opensc when needed
---
 MacOSX/build-package.in | 50 +++++++++++++++++++++++++------------------------
 1 file changed, 26 insertions(+), 24 deletions(-)

diff --git a/MacOSX/build-package.in b/MacOSX/build-package.in
index 2939024..1b60542 100755
--- a/MacOSX/build-package.in
+++ b/MacOSX/build-package.in
@@ -41,30 +41,32 @@ if ! pkg-config libcrypto --atleast-version=1.0.1; then
 	export OPENSSL_LIBS="`  env PKG_CONFIG_PATH=$BUILDPATH/openssl_bin/$PREFIX/lib/pkgconfig PKG_CONFIG_SYSROOT_DIR=$BUILDPATH/openssl_bin pkg-config --static --libs   libcrypto`"
 fi
 
-./configure --prefix=$PREFIX \
---sysconfdir=$PREFIX/etc \
---disable-dependency-tracking \
---enable-shared \
---disable-static \
---enable-strict \
---disable-assert \
---enable-sm # TODO: remove this (must be sensible default in master)
-
-# always make clean
-make clean
-
-# compile
-make -j 2
-
-# copy files
-rm -rf target
-make install DESTDIR=${BUILDPATH}/target
-
-# remove garbage
-rm -f target/$PREFIX/lib/*.la
-
-# generate .bundle (required by Adobe Acrobat)
-./MacOSX/libtool-bundle target/$PREFIX/lib/opensc-pkcs11.so target/$PREFIX/lib
+if ! test -e ${BUILDPATH}/target/$PREFIX/lib/pkgconfig; then
+	./configure --prefix=$PREFIX \
+		--sysconfdir=$PREFIX/etc \
+		--disable-dependency-tracking \
+		--enable-shared \
+		--disable-static \
+		--enable-strict \
+		--disable-assert \
+		--enable-sm # TODO: remove this (must be sensible default in master)
+
+	# always make clean
+	make clean
+
+	# compile
+	make -j 2
+
+	# copy files
+	rm -rf target
+	make install DESTDIR=${BUILDPATH}/target
+
+	# remove garbage
+	rm -f target/$PREFIX/lib/*.la
+
+	# generate .bundle (required by Adobe Acrobat)
+	./MacOSX/libtool-bundle target/$PREFIX/lib/opensc-pkcs11.so target/$PREFIX/lib
+fi
 
 # Check out OpenSC.tokend, if not already fetched.
 if ! test -e OpenSC.tokend; then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/opensc.git



More information about the pkg-opensc-commit mailing list