mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
flatzebra, bump version (#6241)
This commit is contained in:
@@ -1,24 +1,25 @@
|
||||
SUMMARY="Generic game engine"
|
||||
DESCRIPTION="A generic game engine for 2D double-buffering animation"
|
||||
HOMEPAGE="http://sarrazip.com/dev/burgerspace.html"
|
||||
COPYRIGHT="2009 Pierre Sarrazin"
|
||||
COPYRIGHT="1999-2019 Pierre Sarrazin"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="6"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://perso.b2b2c.ca/~sarrazip/dev/flatzebra-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="4e7bb0a77136ec3b81e0f73c1d08e828d38ef011095d5ce7068a94f3bb21d67a"
|
||||
CHECKSUM_SHA256="8809a655cd85b25701de3c627cdacfa49f59af13680d609730386fc402f14df4"
|
||||
SOURCE_DIR="flatzebra-$portVersion"
|
||||
|
||||
ARCHITECTURES="?all !x86_gcc2"
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="2.0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
flatzebra$secondaryArchSuffix = $portVersion
|
||||
lib:libflatzebra_0.1$secondaryArchSuffix = $portVersion
|
||||
lib:libflatzebra_0.1$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libSDL_1.2$secondaryArchSuffix
|
||||
lib:libSDL_image_1.2$secondaryArchSuffix
|
||||
lib:libSDL_mixer_1.2$secondaryArchSuffix
|
||||
@@ -26,16 +27,14 @@ REQUIRES="
|
||||
|
||||
PROVIDES_devel="
|
||||
flatzebra${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libflatzebra_0.1$secondaryArchSuffix = $portVersion
|
||||
devel:libflatzebra_0.1$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libflatzebra_0.1$secondaryArchSuffix == $portVersion
|
||||
flatzebra$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libSDL_1.2$secondaryArchSuffix
|
||||
devel:libSDL_image_1.2$secondaryArchSuffix
|
||||
devel:libSDL_mixer_1.2$secondaryArchSuffix
|
||||
@@ -45,10 +44,14 @@ BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure ./configure
|
||||
@@ -58,12 +61,27 @@ BUILD()
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# remove libtool file
|
||||
rm -rf $libDir/libflatzebra-0.1.la
|
||||
|
||||
prepareInstalledDevelLib libflatzebra-0.1
|
||||
fixPkgconfig
|
||||
|
||||
#move the flatzebra headers to the place specified in pkgconfig
|
||||
mv $includeDir/flatzebra-0.1/flatzebra $includeDir
|
||||
rm -rf $includeDir/flatzebra-0.1
|
||||
# fixPkgconfig
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
sed -i 's,\${prefix}/develop/headers/x86,\${prefix}/develop/headers/x86/flatzebra-0.1,g' \
|
||||
$prefix/$relativeDevelopLibDir/pkgconfig/flatzebra-0.1.pc
|
||||
else
|
||||
sed -i 's,\${prefix}/develop/headers,\${prefix}/develop/headers/flatzebra-0.1,g' \
|
||||
$prefix/$relativeDevelopLibDir/pkgconfig/flatzebra-0.1.pc
|
||||
fi
|
||||
|
||||
rm -rf $libDir/libflatzebra-0.1.la
|
||||
packageEntries devel $developDir
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user