diff options
author | Eric Hameleers <alien@slackware.com> | 2008-12-06 22:06:34 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2008-12-06 22:06:34 +0000 |
commit | b971afd7d06357b86530d4324b90d787c8666b25 (patch) | |
tree | 8074c0042481aa02433399487f7921579ec74360 /wine | |
parent | 11833994363b7b573172089b166f53ce2397bd76 (diff) | |
download | asb-b971afd7d06357b86530d4324b90d787c8666b25.tar.gz asb-b971afd7d06357b86530d4324b90d787c8666b25.tar.xz |
Cleanups. Also remove '--disable-debug' since that is not longer an accepted parameter, and change '--disable-opengl' to '--without-opengl'
Diffstat (limited to 'wine')
-rwxr-xr-x | wine/build/wine.SlackBuild | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/wine/build/wine.SlackBuild b/wine/build/wine.SlackBuild index 379d1b0e..de1951ab 100755 --- a/wine/build/wine.SlackBuild +++ b/wine/build/wine.SlackBuild @@ -129,7 +129,7 @@ set -u P1=${1:-1} # Slackware 11 and up need other option (gcc > 3.3.x) -if [ `gcc -dumpversion | tr -d '.' |cut -c 1-2` -gt 33 ]; then +if [ $(gcc -dumpversion | tr -d '.' |cut -c 1-2) -gt 33 ]; then MOPT=tune else MOPT=cpu @@ -164,17 +164,17 @@ mkdir -p $OUTPUT # place for the package to be saved if ! [ -f ${SOURCE} ]; then if ! [ "x${SRCURL}" == "x" ]; then # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/`basename $SOURCE`" - echo "Source '`basename ${SOURCE}`' not available yet..." - echo "Will download file to `dirname $SOURCE`" + [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" + echo "Source '$(basename ${SOURCE})' not available yet..." + echo "Will download file to $(dirname $SOURCE)" wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then - echo "Downloading '`basename ${SOURCE}`' failed... aborting the build." + echo "Downloading '$(basename ${SOURCE})' failed... aborting the build." mv -f "${SOURCE}" "${SOURCE}".FAIL exit 1 fi else - echo "File '`basename ${SOURCE}`' not available... aborting the build." + echo "File '$(basename ${SOURCE})' not available... aborting the build." exit 1 fi fi @@ -216,7 +216,7 @@ fi cd $TMP/tmp-$PRGNAM echo "Extracting the source archive(s) for $PRGNAM..." -if `file ${SOURCE} | grep -q ": bzip2"`; then +if $(file ${SOURCE} | grep -q ": bzip2"); then tar -xjvf ${SOURCE} else tar -xzvf ${SOURCE} @@ -232,7 +232,7 @@ chmod -R u+w,go+r-w,a-s . echo Building ... -[ "${OPENGL}" = "YES" ] && do_opengl="en" || do_opengl="dis" +[ "${OPENGL}" = "YES" ] && do_opengl="" || do_opengl="out" LDFLAGS="$SLKLDFLAGS" \ CFLAGS="$SLKCFLAGS" \ @@ -243,8 +243,7 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --mandir=/usr/man \ --with-x \ - --disable-debug \ - --${do_opengl}able-opengl \ + --with${do_opengl}-opengl \ --program-prefix="" \ --program-suffix="" \ --build=$ARCH-slackware-linux \ @@ -286,7 +285,7 @@ find $PKG/usr/doc -type f -exec chmod 644 {} \; if [ -d $PKG/usr/man ]; then cd $PKG/usr/man find . -type f -name "*.?" -exec gzip -9f {} \; - for i in `find . -type l -name "*.?"` ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + for i in $(find . -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done fi # Strip binaries |