summaryrefslogtreecommitdiffstats
path: root/yasm/build/yasm.SlackBuild
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2008-06-16 09:50:33 +0000
committer Eric Hameleers <alien@slackware.com>2008-06-16 09:50:33 +0000
commit8fe1300ae417f147a7194f02b7fcdcb0e3dd2c35 (patch)
tree6d880a0b77be44b2b2d1a8844bbade7b63ac84c4 /yasm/build/yasm.SlackBuild
parentb1545b624b59ae55f70263186c572d2dcab4f9e7 (diff)
downloadasb-8fe1300ae417f147a7194f02b7fcdcb0e3dd2c35.tar.gz
asb-8fe1300ae417f147a7194f02b7fcdcb0e3dd2c35.tar.xz
Make python support a parameter (default NO)
Diffstat (limited to 'yasm/build/yasm.SlackBuild')
-rwxr-xr-xyasm/build/yasm.SlackBuild13
1 files changed, 11 insertions, 2 deletions
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 \