mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
33 lines
1.1 KiB
Bash
33 lines
1.1 KiB
Bash
# 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.
|
|
|
|
pkgname=freeimage
|
|
pkgver=3.18.0
|
|
pkgrel=2
|
|
pkgdesc="Library project for developers who would like to support popular graphics image formats."
|
|
arch=('x86_64')
|
|
license=('GPL' 'custom:FIPL')
|
|
url="http://freeimage.sourceforge.net/"
|
|
depends=('libjpeg-turbo' 'openexr' 'openjpeg2' 'libwebp' 'libraw' 'jxrlib')
|
|
makedepends=('mesa' 'glu')
|
|
categories=('programming')
|
|
source=("https://downloads.sourceforge.net/project/freeimage/Source%20Distribution/${pkgver}/FreeImage${pkgver//./}.zip")
|
|
md5sums=('f8ba138a3be233a3eed9c456e42e2578')
|
|
|
|
build() {
|
|
cd FreeImage
|
|
sh gensrclist.sh
|
|
sh genfipsrclist.sh
|
|
make -f Makefile.gnu
|
|
make -f Makefile.fip
|
|
}
|
|
|
|
package() {
|
|
cd FreeImage
|
|
make -f Makefile.gnu DESTDIR=${pkgdir} install
|
|
make -f Makefile.fip DESTDIR=${pkgdir} install
|
|
|
|
install -D -m644 ${srcdir}/FreeImage/license-fi.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|