diff options
Diffstat (limited to 'system/xen/xen.SlackBuild')
-rw-r--r-- | system/xen/xen.SlackBuild | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/system/xen/xen.SlackBuild b/system/xen/xen.SlackBuild index fc7746cb1f..91d44d50c2 100644 --- a/system/xen/xen.SlackBuild +++ b/system/xen/xen.SlackBuild @@ -40,7 +40,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ $ARCH == "x86_64" ] && [ ! -f /usr/include/gnu/stubs-32.h ]; then +if [ "$ARCH" = "x86_64" ] && [ ! -f /usr/include/gnu/stubs-32.h ]; then cat << EOF For a 32bit guest support 32bit libs are required to build the @@ -69,18 +69,21 @@ else LIBDIRSUFFIX="" fi -USE_LIBSSH2=${USE_LIBSSH2:-no} -case "$LIBSSH2" in +case "${USE_LIBSSH2:-no}" in yes) LIBSSH2="en" ;; *) LIBSSH2="dis" ;; esac -USE_BLUEZ=${USE_BLUEZ:-no} -case "$BLUEZ" in +case "${USE_BLUEZ:-no}" in yes) BLUEZ="en" ;; *) BLUEZ="dis" ;; esac +case "${BUILD_STUBDOM:-no}" in + yes) STUBDOM="en" ;; + *) STUBDOM="dis" ;; +esac + set -e rm -rf $PKG @@ -139,6 +142,7 @@ CXXFLAGS="$SLKCFLAGS" \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --disable-qemu-traditional \ --disable-rombios \ + --${STUBDOM}able-stubdom \ --build=$ARCH-slackware-linux make install-xen \ @@ -155,12 +159,14 @@ make install-tools \ MANDIR=/usr/man \ DESTDIR=$PKG -make install-stubdom \ - docdir=/usr/doc/$PRGNAM-$VERSION \ - DOCDIR=/usr/doc/$PRGNAM-$VERSION \ - mandir=/usr/man \ - MANDIR=/usr/man \ - DESTDIR=$PKG +if [ "$STUBDOM" = "en" ]; then + make install-stubdom \ + docdir=/usr/doc/$PRGNAM-$VERSION \ + DOCDIR=/usr/doc/$PRGNAM-$VERSION \ + mandir=/usr/man \ + MANDIR=/usr/man \ + DESTDIR=$PKG +fi make install-docs \ docdir=/usr/doc/$PRGNAM-$VERSION \ |