From 8fe1300ae417f147a7194f02b7fcdcb0e3dd2c35 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Mon, 16 Jun 2008 09:50:33 +0000 Subject: Make python support a parameter (default NO) --- yasm/build/yasm.SlackBuild | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'yasm/build/yasm.SlackBuild') diff --git a/yasm/build/yasm.SlackBuild b/yasm/build/yasm.SlackBuild index a18fe7b1..b8567235 100755 --- a/yasm/build/yasm.SlackBuild +++ b/yasm/build/yasm.SlackBuild @@ -49,6 +49,10 @@ TAG=${TAG:-alien} DOCS="ABOUT-NLS AUTHORS ChangeLog COPYING GNU_* NEWS README *.txt" +# If you want to enable python bindings, set ENABLE_PYTHON to "YES". +# It will fail on Slackware 12.0 btw (missing Pyrex). +ENABLE_PYTHON=${ENABLE_PYTHON:NO} + # Where do we look for sources? SRCDIR=$(cd $(dirname $0); pwd) @@ -144,6 +148,12 @@ cd ${PRGNAM}-${VERSION} chown -R root:root . chmod -R u+w,go+r-w,a-s . +if [ "$ENABLE_PYTHON" = "NO" ]; then + PYTHONSTUFF="" +else + PYTHONSTUFF="--enable-python --enable-python-bindings" +fi + echo Building ... LDFLAGS="$SLKLDFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -153,8 +163,7 @@ CFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --sysconfdir=/etc \ --mandir=/usr/man \ - --enable-python \ - --enable-python-bindings \ + ${PYTHONSTUFF} \ --program-prefix="" \ --program-suffix="" \ --build=$ARCH-slackware-linux \ -- cgit v1.2.3-65-gdbad