diff options
author | nobody <nobody@nowhere> | 2010-05-13 00:30:40 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:30:40 +0200 |
commit | 0e68d2c1ffc6bf189c3e159ea489a6e5c29470e6 (patch) | |
tree | d5c0d2c36731c9c8e84c06c46b1a6429f274f47c /libraries/libgdiplus/libgdiplus.SlackBuild | |
parent | 215f73da14e626e16c7bea31d299c9217b9be127 (diff) | |
download | slackbuilds-0e68d2c1ffc6bf189c3e159ea489a6e5c29470e6.tar.gz |
libraries/libgdiplus: Updated for version 2.4.2
Diffstat (limited to 'libraries/libgdiplus/libgdiplus.SlackBuild')
-rw-r--r-- | libraries/libgdiplus/libgdiplus.SlackBuild | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/libraries/libgdiplus/libgdiplus.SlackBuild b/libraries/libgdiplus/libgdiplus.SlackBuild index 0baeacc2a7..942f876edb 100644 --- a/libraries/libgdiplus/libgdiplus.SlackBuild +++ b/libraries/libgdiplus/libgdiplus.SlackBuild @@ -25,10 +25,11 @@ # Modified by the SlackBuilds.org project PRGNAM=libgdiplus -VERSION=1.2.4 +VERSION=2.4.2 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -36,8 +37,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e @@ -48,7 +54,6 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION -patch -p1 < $CWD/cairo-type1-include.patch chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -57,13 +62,19 @@ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ - --localstatedir=/var + --localstatedir=/var \ + --mandir=/usr/man \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --disable-static \ + --build=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog INSTALL LICENSE MPL-1.1.html NEWS README TODO \ +cp -a \ + AUTHORS COPYING ChangeLog INSTALL LICENSE MPL-1.1.html NEWS README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -71,4 +82,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |