mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
libraries/FreeImage: Updated for version 3.11.0
This commit is contained in:
parent
dbbfd32409
commit
5784f75823
3 changed files with 16 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue