cruxports/libfreeimage-lite/Pkgfile
2022-02-05 15:39:19 -05:00

20 lines
622 B
Plaintext

# Description: library for multiple image formats
# URL: https://github.com/WohlSoft/libFreeImage
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: libpng libjpeg-turbo
name=libfreeimage-lite
version=3.18
release=1
source=(https://github.com/WohlSoft/libFreeImage/archive/refs/heads/master.zip)
renames=($name-$version.zip)
build() {
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX="/usr/" -DCMAKE_BUILD_TYPE=Release \
-DFREEIMAGE_STATIC="off" -DFREEIMAGE_USE_SYSTEM_LIBPNG="on" \
-DFREEIMAGE_USE_SYSTEM_LIBJPEG="on" ../libFreeImage-*
cmake --build .
make DESTDIR=$PKG install
}