Files
haikuports/media-libs/sdl_image/sdl_image-1.2.12.recipe

86 lines
1.9 KiB
Plaintext

SUMMARY="Simple Direct Media Layer Image Library"
DESCRIPTION="Simple Direct Media Layer Image Library"
HOMEPAGE="http://www.libsdl.org/projects/SDL_image"
SRC_URI="http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.12.tar.gz"
CHECKSUM_MD5="a0f9098ebe5400f0bdc9b62e60797ecb"
REVISION="2"
LICENSE="Zlib"
COPYRIGHT="1997-2012 Sam Lantinga"
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
sdl_image$secondaryArchSuffix = $portVersion compat >= 1.2
lib:libSDL_image#secondaryArchSuffix = 1.2_0.8.4 compat >= 1.2_0
lib:libSDL_image_1.2 = $portVersion compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
libsdl$secondaryArchSuffix
lib:libjpeg
"
BUILD_REQUIRES="
devel:libsdl$secondaryArchSuffix
lib:libjpeg
lib:libpng
lib:libtiff
# lib:giflib
# lib:libwebp
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:aclocal
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtool
cmd:make
cmd:pkg_config
cmd:sdl_config$secondaryArchSuffix
devel:libpng
devel:libjpeg
# devel:libtiff
# devel:libwebp
"
SOURCE_DIR="SDL_image-1.2.12"
BUILD()
{
libtoolize --force --copy --install
aclocal --install -I acinclude
./autogen.sh
runConfigure ./configure \
--enable-bmp --enable-lbm --enable-pcx \
--enable-pnm --enable-tga --enable-xcf --enable-xpm --enable-xv \
--enable-gif --enable-jpg --disable-jpg-shared
make
}
INSTALL()
{
make install
prepareInstalledDevelLibs libSDL_image \
libSDL_image-1.2
fixPkgconfig
packageEntries devel \
$developDir
}
PROVIDES_devel="
sdl_image${secondaryArchSuffix} = $portVersion compat >= 1.2
devel:sdl_image$secondaryArchSuffix = 0.8.4 compat >= 0
devel:libSDL_image$secondaryArchSuffix = 1.2_0.8.4 compat >= 0
devel:libSDL_image_1.2$secondaryArchSuffix = 0.8.4 compat >= 0
"
REQUIRES_devel="
sdl_image$secondaryArchSuffix == $portVersion base
"