diff options
Diffstat (limited to 'libraries/jasper/jasper.SlackBuild')
-rw-r--r-- | libraries/jasper/jasper.SlackBuild | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/libraries/jasper/jasper.SlackBuild b/libraries/jasper/jasper.SlackBuild index 1cf84f4e2a..ac6639a0f7 100644 --- a/libraries/jasper/jasper.SlackBuild +++ b/libraries/jasper/jasper.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for JasPer -# Copyright 2007 Frank Caraballo <fecaraballo[AT]gmail.com> +# Copyright 2007, 2008 Frank Caraballo <fecaraballo{at}gmail{dot}com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,24 +22,23 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Modified by the SlackBuilds.org project - PRGNAM=jasper -VERSION=1.900.1 +VERSION=${VERSION:-1.900.1} ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -PDOCS="ChangeLog COPYRIGHT INSTALL LICENSE NEWS README doc" - if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi rm -rf $PKG @@ -49,7 +48,11 @@ rm -rf $PRGNAM-$VERSION unzip $CWD/$PRGNAM-$VERSION.zip || exit 1 cd $PRGNAM-$VERSION || exit 1 chown -R root:root . -chmod -R u+w,go+r-w,a-s . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -57,8 +60,9 @@ CXXFLAGS="$SLKCFLAGS" \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ - --enable-shared \ - --disable-static \ + --enable-shared=yes \ + --enable-static=no \ + --build=$ARCH-slackware-linux \ || exit 1 make || exit 1 @@ -70,7 +74,8 @@ make install-strip DESTDIR=$PKG || exit 1 ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $PDOCS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a ChangeLog COPYRIGHT INSTALL LICENSE NEWS README doc \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |