mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 02:36:34 +02:00
45 lines
1.3 KiB
Text
45 lines
1.3 KiB
Text
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
|
|
pkgname=devil
|
|
pkgver=1.8.0
|
|
pkgrel=0
|
|
pkgdesc="A full featured cross-platform image library"
|
|
arch="all"
|
|
url="https://openil.sourceforge.net/"
|
|
license="LGPL-2.1-only"
|
|
makedepends="$depends_dev
|
|
cmake
|
|
jasper-dev
|
|
lcms2-dev
|
|
libjpeg-turbo-dev
|
|
libpng-dev
|
|
samurai
|
|
"
|
|
source="
|
|
https://downloads.sourceforge.net/openil/DevIL-$pkgver.tar.gz
|
|
|
|
fix_mismatching_signatures.patch
|
|
"
|
|
subpackages="$pkgname-dev"
|
|
builddir="$srcdir/DevIL/DevIL"
|
|
options="!check" # no unit tests provided
|
|
|
|
build() {
|
|
# "register" storage class specifier is no longer allowed in modern C++
|
|
# standards. Until upstream removes the qualifier, we can just ignore the
|
|
# warning.
|
|
export CXXFLAGS="$CXXFLAGS -Wno-register"
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
103fa51f4094af0fe988bf9520e1b9178900f980b72226e64ede60b6b0938a646c670a37372214edb557e492947cd5af5012a3ac906734a5ea83e072f81db583 DevIL-1.8.0.tar.gz
|
|
779ab33b29c792aa737a858e85b6ece26e9b88818ba734ac7eee9655c447f0f32ec5fe6e520db712e903fc2c945b933a173b149759cd764dcb4af3fcf94dc6c0 fix_mismatching_signatures.patch
|
|
"
|