2014-04-02 05:25:32 +08:00
|
|
|
# Maintainer: UtG <utg.chakra.linux[AT]gmail[dot]com>
|
2011-02-26 22:58:38 +08:00
|
|
|
|
2016-05-22 17:05:29 +08:00
|
|
|
# Note: Using clang due to the following issue with latest GCC:
|
|
|
|
# https://sourceforge.net/p/freeimage/discussion/36110/thread/605ef8e4/
|
|
|
|
# Linked patch is not compatible with the libwebp version that freeimage uses.
|
|
|
|
|
2011-02-26 22:58:38 +08:00
|
|
|
pkgname=freeimage
|
2016-05-22 17:05:29 +08:00
|
|
|
pkgver=3.17.0
|
2011-02-26 22:58:38 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Library project for developers who would like to support popular graphics image formats."
|
2013-02-21 04:44:41 +08:00
|
|
|
arch=('x86_64')
|
2011-02-26 22:58:38 +08:00
|
|
|
license=('GPL' 'custom:FIPL')
|
|
|
|
url="http://freeimage.sourceforge.net/"
|
|
|
|
depends=('gcc-libs')
|
2016-05-22 17:05:29 +08:00
|
|
|
makedepends=('hd2u' 'clang')
|
2012-03-16 22:51:37 +08:00
|
|
|
categories=('programming')
|
2014-04-02 05:25:32 +08:00
|
|
|
source=(
|
|
|
|
"http://downloads.sourceforge.net/project/freeimage/Source%20Distribution/${pkgver}/FreeImage${pkgver//./}.zip")
|
|
|
|
md5sums=('1a2d1fff6204adbd479cc98818892fc1')
|
2011-02-26 22:58:38 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cp -r FreeImage FreeImagefip
|
|
|
|
|
2016-05-22 17:05:29 +08:00
|
|
|
export CC="clang"
|
|
|
|
export CXX="clang++"
|
|
|
|
|
2011-02-26 22:58:38 +08:00
|
|
|
cd FreeImage
|
|
|
|
make
|
|
|
|
|
|
|
|
cd ${srcdir}/FreeImagefip
|
|
|
|
make -f Makefile.fip
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd FreeImage
|
2011-09-05 01:52:25 +08:00
|
|
|
make DESTDIR=$pkgdir install
|
2011-02-26 22:58:38 +08:00
|
|
|
|
2011-09-05 01:52:25 +08:00
|
|
|
cd $srcdir/FreeImagefip
|
|
|
|
make -f Makefile.fip DESTDIR=$pkgdir install
|
2011-02-26 22:58:38 +08:00
|
|
|
|
2014-04-02 05:25:32 +08:00
|
|
|
# License
|
2011-09-05 01:52:25 +08:00
|
|
|
install -D -m644 $srcdir/FreeImage/license-fi.txt \
|
|
|
|
$pkgdir/usr/share/licenses/$pkgname/license-fi.txt
|
2011-02-26 22:58:38 +08:00
|
|
|
}
|
2016-05-22 17:05:29 +08:00
|
|
|
md5sums=('459e15f0ec75d6efa3c7bd63277ead86')
|