libraries/FreeImage: Updated for version 3.11.0

This commit is contained in:
Phil Warner 2010-05-12 17:40:11 +02:00 committed by David Somero
parent dbbfd32409
commit 5784f75823
3 changed files with 16 additions and 11 deletions

View file

@ -19,10 +19,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
@ -43,14 +46,16 @@ find . \
patch -p1 < $CWD/Makefile.gnu.DESTDIR.diff
patch -p1 < $CWD/Makefile.fip.DESTDIR.diff
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" make
make install DESTDIR=$PKG
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" make -f Makefile.fip
make -f Makefile.fip install DESTDIR=$PKG
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" make INSTALLDIR=/usr/lib${LIBDIRSUFFIX}
make install INSTALLDIR=/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" make -f Makefile.fip INSTALLDIR=/usr/lib${LIBDIRSUFFIX}
make -f Makefile.fip install INSTALLDIR=/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG
( 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
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
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -5,4 +5,4 @@ DOWNLOAD="http://downloads.sourceforge.net/freeimage/FreeImage3110.zip"
MD5SUM="ad1db36414391417654ba7bf1c0277d3"
MAINTAINER="Phil Warner"
EMAIL="pc_warner@yahoo.com"
APPROVED="David Somero"
APPROVED="dsomero,rworkman"

View file

@ -13,7 +13,7 @@ FreeImage: want to support popular graphics image formats like PNG, BMP,
FreeImage: JPEG, TIFF and others needed by today's multimedia applications.
FreeImage: FreeImage is easy to use, fast, and multithreading safe.
FreeImage: FreeImagePlus is a C++ wrapper for FreeImage.
FreeImage:
FreeImage: http://freeimage.sourceforge.net/
FreeImage:
FreeImage:
FreeImage:
FreeImage: Homepage: http://freeimage.sourceforge.net/
FreeImage:
FreeImage: