| 1 | # Description: A fast image manipulation library |
| 2 | # URL: http://freshmeat.net/projects/imlib2/ |
| 3 | # Packager: Matt Housh jaeger at morpheus dot net |
| 4 | # Maintainer: Jose V Beneyto sepen at users dot sourceforge dot net |
| 5 | # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org |
| 6 | # Depends on: freetype libpng libtiff libungif xorg-libsm xorg-libxext |
| 7 | |
| 8 | name=imlib2 |
| 9 | version=1.4.2 |
| 10 | release=1 |
| 11 | source=(http://dl.sourceforge.net/sourceforge/enlightenment/$name-$version.tar.bz2) |
| 12 | |
| 13 | build() { |
| 14 | cd $name-$version |
| 15 | |
| 16 | export DEFAULT_LIBS="-L$CLFS/usr/lib" |
| 17 | export DEFAULT_CFLAGS="-I$CLFS/usr/include" |
| 18 | export PNG_LIBS="$DEFAULT_LIBS -lpng12" |
| 19 | export PNG_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/libpng12" |
| 20 | export TIFFLIBS="$DEFAULT_LIBS" |
| 21 | export GIFLIBS="$DEFAULT_LIBS" |
| 22 | export JPEGLIBS="$DEFAULT_LIBS" |
| 23 | export BZ2LIBS="$DEFAULT_LIBS" |
| 24 | export ZLIBLIBS="$DEFAULT_LIBS" |
| 25 | export X_LIBS="$DEFAULT_LIBS -lX11 -lXext -lSM" |
| 26 | |
| 27 | ./configure --build=$CHOST \ |
| 28 | --host=$CTARGET \ |
| 29 | --prefix=/usr \ |
| 30 | --with-png \ |
| 31 | --with-tiff \ |
| 32 | --with-gif \ |
| 33 | --with-jpeg \ |
| 34 | --with-bzip2 \ |
| 35 | --with-zlib \ |
| 36 | --with-x \ |
| 37 | --without-id3 |
| 38 | |
| 39 | make |
| 40 | make DESTDIR=$PKG install |
| 41 | } |