Merge pull request #2166 from pullmoll/devil

devil: fix cross compiling by disabling openexr
This commit is contained in:
Jürgen Buchmüller 2015-08-03 22:19:27 +02:00
commit e57ab5434d

View file

@ -1,12 +1,12 @@
# Template file for 'devil'
pkgname=devil
version=1.7.8
revision=1
revision=2
build_style=gnu-configure
configure_args="--enable-ILU --enable-ILUT --with-examples"
hostmakedepends="pkg-config"
hostmakedepends="automake libtool pkg-config"
makedepends="lcms-devel libpng-devel libmng-devel jasper-devel
libopenexr-devel glew-devel libfreeglut-devel SDL_image-devel"
glew-devel libfreeglut-devel SDL_image-devel"
short_desc="Developer's Image Library"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="LGPL-2.1"
@ -14,7 +14,12 @@ homepage="http://openil.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/openil/DevIL-${version}.tar.gz"
checksum=682ffa3fc894686156337b8ce473c954bf3f4fb0f3ecac159c73db632d28a8fd
if [ -z "$CROSS_BUILD" ]; then
makedepends+=" libopenexr-devel"
fi
pre_configure() {
autoreconf -if
# Replace obsolete libpng function names
sed -e "s;png_set_gray_1_2_4_to_8;png_set_expand_gray_1_2_4_to_8;" \
-i ${wrksrc}/src-IL/src/il_png.c