desktop/freeimage/PKGBUILD

33 lines
1.1 KiB
Bash
Raw Permalink Normal View History

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
2018-08-12 12:33:39 +08:00
pkgver=3.18.0
pkgrel=2
2011-02-26 22:58:38 +08:00
pkgdesc="Library project for developers who would like to support popular graphics image formats."
arch=('x86_64')
2011-02-26 22:58:38 +08:00
license=('GPL' 'custom:FIPL')
url="http://freeimage.sourceforge.net/"
2018-08-12 12:33:39 +08:00
depends=('libjpeg-turbo' 'openexr' 'openjpeg2' 'libwebp' 'libraw' 'jxrlib')
makedepends=('mesa' 'glu')
categories=('programming')
2018-08-12 12:33:39 +08:00
source=("https://downloads.sourceforge.net/project/freeimage/Source%20Distribution/${pkgver}/FreeImage${pkgver//./}.zip")
md5sums=('f8ba138a3be233a3eed9c456e42e2578')
2011-02-26 22:58:38 +08:00
build() {
cd FreeImage
2018-08-12 12:33:39 +08:00
sh gensrclist.sh
sh genfipsrclist.sh
make -f Makefile.gnu
2011-02-26 22:58:38 +08:00
make -f Makefile.fip
}
package() {
cd FreeImage
2018-08-12 12:33:39 +08:00
make -f Makefile.gnu DESTDIR=${pkgdir} install
make -f Makefile.fip DESTDIR=${pkgdir} install
2011-02-26 22:58:38 +08:00
2018-08-12 12:33:39 +08:00
install -D -m644 ${srcdir}/FreeImage/license-fi.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
2011-02-26 22:58:38 +08:00
}