2012-11-01 07:08:10 +08:00
|
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# maintainer abveritas@chakra-project.org
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
pkgname=imlib2
|
2012-08-29 15:31:09 +08:00
|
|
|
pkgver=1.4.5
|
2013-07-28 00:51:03 +08:00
|
|
|
pkgrel=3
|
2010-03-14 23:48:48 +08:00
|
|
|
pkgdesc="Library that does image file loading and saving as well as rendering, manipulation, arbitrary polygon support"
|
|
|
|
url="http://sourceforge.net/projects/enlightenment/"
|
2012-11-01 07:08:10 +08:00
|
|
|
arch=('x86_64')
|
2010-03-14 23:48:48 +08:00
|
|
|
license=('BSD')
|
2012-11-01 07:08:10 +08:00
|
|
|
depends=('libtiff' 'giflib' 'bzip2' 'freetype2' 'libxext' 'libpng>=1.5.0' 'libid3tag' 'libjpeg-turbo')
|
2010-03-14 23:48:48 +08:00
|
|
|
options=('!libtool')
|
2010-05-17 15:50:50 +08:00
|
|
|
source=("http://downloads.sourceforge.net/enlightenment/$pkgname-$pkgver.tar.bz2")
|
2012-08-29 15:31:09 +08:00
|
|
|
sha1sums=('af86a2c38f4bc3806db57e64e74dc9814ad474a0')
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
build() {
|
2012-08-29 15:31:09 +08:00
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
2010-03-14 23:48:48 +08:00
|
|
|
|
2012-11-01 07:08:10 +08:00
|
|
|
# disable optimizations, they cause problems
|
|
|
|
EXTRAOPTS="--disable-amd64"
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
# Configure and Build
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc/imlib2 \
|
2012-08-29 15:31:09 +08:00
|
|
|
--x-libraries=/usr/lib $EXTRAOPTS
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
|
|
|
|
make DESTDIR="$pkgdir" install
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
# Install License
|
2012-08-29 15:31:09 +08:00
|
|
|
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
2010-03-14 23:48:48 +08:00
|
|
|
}
|