diff options
author | Eric Hameleers <alien@slackware.com> | 2009-10-09 10:04:53 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2009-10-09 10:04:53 +0000 |
commit | 43ae7a8038511a4fb956de49cf546a80ce546d09 (patch) | |
tree | ba4c6c253489fe28b3022bd47e2ea590d3dcafd4 /wxGTK/build | |
parent | e3e757b4db455b8e136788de0a1dffb87e1b3e70 (diff) | |
download | asb-43ae7a8038511a4fb956de49cf546a80ce546d09.tar.gz asb-43ae7a8038511a4fb956de49cf546a80ce546d09.tar.xz |
Polish this script a bit for Slackware 13.0
Diffstat (limited to '')
-rwxr-xr-x | wxGTK/build/wxGTK.SlackBuild | 56 |
1 files changed, 23 insertions, 33 deletions
diff --git a/wxGTK/build/wxGTK.SlackBuild b/wxGTK/build/wxGTK.SlackBuild index a959565a..1920d5ac 100755 --- a/wxGTK/build/wxGTK.SlackBuild +++ b/wxGTK/build/wxGTK.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh # $Id$ -# Copyright (c) 2007-2008 Eric Hameleers <alien@slackware.com> +# Copyright (c) 2007-2009 Eric Hameleers, Eindhoven, NL # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -100,9 +100,6 @@ case "$ARCH" in x86_64) SLKCFLAGS="-O2 -fPIC" SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" ;; - athlon-xp) SLKCFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; esac # Create working directories: @@ -158,21 +155,21 @@ echo Building ... LDFLAGS="$SLKLDFLAGS" \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -./configure --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --localstatedir=/var \ - --sysconfdir=/etc \ - --with-gtk \ - --with-sdl \ - --${do_opengl}-opengl \ - --${do_unicode}able-unicode \ - --program-prefix="" \ - --program-suffix="" \ - --build=$ARCH-slackware-linux \ - 2>&1 | tee $OUTPUT/configure-${PRGNAM}.log -make 2>&1 | tee $OUTPUT/make-${PRGNAM}.log +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --localstatedir=/var \ + --sysconfdir=/etc \ + --with-gtk \ + --with-sdl \ + --${do_opengl}-opengl \ + --${do_unicode}able-unicode \ + --program-prefix= \ + --program-suffix= \ + --build=$ARCH-slackware-linux \ + 2>&1 | tee $OUTPUT/configure-${PRGNAM}.log -# Install all the needed stuff to the package dir +make 2>&1 | tee $OUTPUT/make-${PRGNAM}.log make DESTDIR=$PKG install 2>&1 |tee $OUTPUT/install-${PRGNAM}.log # Fix wrong link @@ -190,7 +187,11 @@ rm -f $PKG/usr/bin/wx-config # Add documentation: mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true -cp -a $SRCDIR/$(basename $0) $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +cat $SRCDIR/$(basename $0) | sed \ + -e "/^VERSION=/s/:-.*}/:-$VERSION}/" \ + -e "/^ARCH=/s/:-.*}/:-$ARCH}/" \ + -e "/^BUILD=/s/:-.*}/:-$BUILD}/" \ + > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild find $PKG/usr/doc -type f -exec chmod 644 {} \; # Compress the man page(s): @@ -199,24 +200,13 @@ if [ -d $PKG/usr/man ]; then for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done fi -# Compress info pages and remove the package's dir file: -if [ -d $PKG/usr/info ]; then - rm -rf $PKG/usr/info/dir - gzip -9f $PKG/usr/info/*.info* -fi - -# Strip binaries: -cd $PKG -find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -cd - +# Strip binaries (if any): +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true # Add a package description: mkdir -p $PKG/install cat $SRCDIR/slack-desc > $PKG/install/slack-desc -if [ -f $SRCDIR/doinst.sh ]; then - cat $SRCDIR/doinst.sh >> $PKG/install/doinst.sh -fi # Build the package: cd $PKG |