diff options
author | Juan Valencia Escalante <jvalenciae@gmail.com> | 2010-05-13 00:30:44 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:30:44 +0200 |
commit | 647f801774296f07d834e0d3ba15e9440dd3aa38 (patch) | |
tree | daf743092fdf04f81bf788edb8cfb969ffb3e016 /libraries/libglademm/libglademm.SlackBuild | |
parent | 3c09fc558d117a35729fe9c811f4c548a7dabf14 (diff) | |
download | slackbuilds-647f801774296f07d834e0d3ba15e9440dd3aa38.tar.gz |
libraries/libglademm: Updated for version 2.6.7
Diffstat (limited to 'libraries/libglademm/libglademm.SlackBuild')
-rw-r--r-- | libraries/libglademm/libglademm.SlackBuild | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/libraries/libglademm/libglademm.SlackBuild b/libraries/libglademm/libglademm.SlackBuild index 3d6f25bca5..d0ed88a4db 100644 --- a/libraries/libglademm/libglademm.SlackBuild +++ b/libraries/libglademm/libglademm.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. APP=libglademm -VERSION=2.6.6 +VERSION=2.6.7 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -35,19 +35,22 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" - elif [ "$ARCH" = "i686" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-02 -march=i686 -mtune=i686" - elif [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e -rm -rf $PKG +rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT rm -rf $TMP/$APP-$VERSION cd $TMP -tar xvf $CWD/$APP-$VERSION.tar.gz +tar xvf $CWD/$APP-$VERSION.tar.bz2 cd $APP-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -56,6 +59,7 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" ./configure \ --prefix=/usr \ + --libdir=/usr/lib$LIBDIRSUFFIX \ --sysconfdir=/etc \ --localstatedir=/var \ --docdir=/usr/doc/$PRGNAM-$VERSION \ @@ -68,17 +72,6 @@ CXXFLAGS="$SLKCFLAGS" make make install DESTDIR=$PKG -mkdir -p $PKG/usr/doc/$APP-$VERSION -cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README TODO \ - $PKG/usr/doc/$APP-$VERSION -cat $CWD/$APP.SlackBuild > $PKG/usr/doc/$APP-$VERSION/$APP.SlackBuild -find $PKG/usr/doc/$APP-$VERSION -type f -exec chmod 644 {} \; -# We don't need all the reference docs - they're in the source -rm -rf $PKG/usr/share/doc - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -86,7 +79,7 @@ if [ -d $PKG/usr/man ]; then ( cd $PKG/usr/man find . -type f -exec gzip -9 {} \; for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done - ) + ) fi if [ -d $PKG/usr/info ]; then @@ -94,5 +87,16 @@ if [ -d $PKG/usr/info ]; then rm -f $PKG/usr/info/dir fi +mkdir -p $PKG/usr/doc/$APP-$VERSION +cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README TODO \ + $PKG/usr/doc/$APP-$VERSION +cat $CWD/$APP.SlackBuild > $PKG/usr/doc/$APP-$VERSION/$APP.SlackBuild +find $PKG/usr/doc/$APP-$VERSION -type f -exec chmod 644 {} \; +# We don't need all the reference docs - they're in the source +rm -rf $PKG/usr/share/doc + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$APP-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$APP-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |