mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
DEVIL: updated recipe, bump version (#1299)
This commit is contained in:
@@ -7,44 +7,57 @@ developer, so unnecessary conversions, etc. are not performed. DevIL utilizes \
|
||||
a simple, yet powerful, syntax. DevIL can load, save, convert, manipulate, \
|
||||
filter and display a wide variety of image formats."
|
||||
HOMEPAGE="http://openil.sourceforge.net/"
|
||||
COPYRIGHT="2009 Denton Woods"
|
||||
COPYRIGHT="2017 Denton Woods"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
REVISION="3"
|
||||
SOURCE_URI="http://sourceforge.net/projects/openil/files/DevIL/1.7.8/DevIL-1.7.8.tar.gz"
|
||||
CHECKSUM_SHA256="682ffa3fc894686156337b8ce473c954bf3f4fb0f3ecac159c73db632d28a8fd"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://sourceforge.net/projects/openil/files/DevIL/$portVersion/DevIL-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="0075973ee7dd89f0507873e2580ac78336452d29d34a07134b208f44e2feb709"
|
||||
SOURCE_DIR="DevIL"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
ARCHITECTURES="?x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
PROVIDES="
|
||||
devil$secondaryArchSuffix = $portVersion
|
||||
lib:libIL$secondaryArchSuffix
|
||||
lib:libILU$secondaryArchSuffix
|
||||
lib:libILUT$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libjasper$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:liblcms2$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libtiff$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
devil${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libIL$secondaryArchSuffix
|
||||
devel:libILU$secondaryArchSuffix
|
||||
devel:libILUT$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES_devel="
|
||||
haiku$secondaryArchSuffix
|
||||
devil$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libgl$secondaryArchSuffix
|
||||
devel:libilmimf$secondaryArchSuffix #openexr
|
||||
devel:libjasper$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:liblcms2$secondaryArchSuffix
|
||||
devel:libmng$secondaryArchSuffix
|
||||
devel:libIlmImf$secondaryArchSuffix
|
||||
devel:libpng$secondaryArchSuffix
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libtiff$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
cmd:awk
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
@@ -54,20 +67,33 @@ BUILD_PREREQUIRES="
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure ./configure CFLAGS=-Dpng_set_gray_1_2_4_to_8=png_set_expand_gray_1_2_4_to_8
|
||||
cd DevIL
|
||||
mkdir -p haiku-build
|
||||
cd haiku-build
|
||||
|
||||
cmake .. \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$prefix \
|
||||
-DCMAKE_CXX_FLAGS="-fpermissive"
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd DevIL/haiku-build
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLib libIL
|
||||
fixPkgconfig
|
||||
|
||||
mv $prefix/include/* $includeDir
|
||||
rmdir $prefix/include
|
||||
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd DevIL/haiku-build
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user