mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-20 10:40:05 +02:00
121 lines
3.2 KiB
Bash
121 lines
3.2 KiB
Bash
SUMMARY="An advanced replacement library for libraries like libXpm"
|
|
DESCRIPTION="A library that does image file loading and saving as well as \
|
|
rendering, manipulation, arbitrary polygon support, etc.
|
|
|
|
It does ALL of these operations FAST. Imlib2 also tries to be highly \
|
|
intelligent about doing them, so writing naive programs can be done easily, \
|
|
without sacrificing speed.
|
|
|
|
This is a complete rewrite over the Imlib 1.x series. The architecture is more \
|
|
modular, simple, and flexible. See index.html in the doc/ directory for more \
|
|
information."
|
|
HOMEPAGE="https://www.enlightenment.org/"
|
|
COPYRIGHT="2002 Project Enlightenment"
|
|
LICENSE="IMLIB2"
|
|
SOURCE_URI="http://downloads.sourceforge.net/enlightenment/imlib2-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="3f698cd285cbbfc251c1d6405f249b99fafffafa5e0a5ecf0ca7ae49bbc0a272"
|
|
REVISION="1"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
imlib2$secondaryArchSuffix = $portVersion compat >= 1
|
|
lib:libimlib2$secondaryArchSuffix = $portVersion compat >= 1
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libbz2$secondaryArchSuffix
|
|
lib:libfreetype$secondaryArchSuffix
|
|
lib:libgif$secondaryArchSuffix
|
|
lib:libid3tag$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libpng$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix >= 5
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
imlib2${secondaryArchSuffix}_devel = $portVersion compat >= 1
|
|
devel:libimlib2$secondaryArchSuffix = $portVersion compat >= 1
|
|
cmd:imlib2_config$secondaryArchSuffix = $portVersion
|
|
cmd:imlib2_conv$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
imlib2$secondaryArchSuffix == $portVersion base
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libbz2$secondaryArchSuffix
|
|
devel:libfreetype$secondaryArchSuffix
|
|
devel:libgif$secondaryArchSuffix
|
|
devel:libid3tag$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libpng$secondaryArchSuffix
|
|
devel:libtiff$secondaryArchSuffix >= 5
|
|
devel:libz$secondaryArchSuffix
|
|
haiku$secondaryArchSuffix
|
|
lib:libbz2$secondaryArchSuffix
|
|
lib:libfreetype$secondaryArchSuffix
|
|
lib:libgif$secondaryArchSuffix
|
|
lib:libid3tag$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libpng$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix >= 5
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libbz2$secondaryArchSuffix
|
|
devel:libfreetype$secondaryArchSuffix
|
|
devel:libgif$secondaryArchSuffix
|
|
devel:libid3tag$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libpng$secondaryArchSuffix
|
|
devel:libtiff$secondaryArchSuffix >= 5
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:ranlib$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
libtoolize --force --copy --install
|
|
aclocal
|
|
autoconf
|
|
automake --add-missing
|
|
runConfigure ./configure --without-x
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool files
|
|
rm $libDir/*.la
|
|
rm $libDir/imlib2/filters/*.la
|
|
rm $libDir/imlib2/loaders/*.la
|
|
|
|
prepareInstalledDevelLib libImlib2
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$binDir \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|