summaryrefslogtreecommitdiffstats
path: root/yasm/build/yasm.SlackBuild
diff options
context:
space:
mode:
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 \