diff --git a/dev-games/flatzebra/flatzebra-0.1.6.recipe b/dev-games/flatzebra/flatzebra-0.1.6.recipe index 970e333e1..1823788cd 100644 --- a/dev-games/flatzebra/flatzebra-0.1.6.recipe +++ b/dev-games/flatzebra/flatzebra-0.1.6.recipe @@ -1,9 +1,9 @@ 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="2009 Pierre Sarrazin" LICENSE="GNU GPL v2" -REVISION="2" +REVISION="3" SOURCE_URI="http://perso.b2b2c.ca/sarrazip/dev/flatzebra-$portVersion.tar.gz" CHECKSUM_SHA256="4e7bb0a77136ec3b81e0f73c1d08e828d38ef011095d5ce7068a94f3bb21d67a" SOURCE_DIR="flatzebra-$portVersion" @@ -12,7 +12,7 @@ ARCHITECTURES="!x86_gcc2 ?x86_64 ?x86" SECONDARY_ARCHITECTURES="x86" PROVIDES=" - flatzebra = $portVersion + flatzebra$secondaryArchSuffix = $portVersion lib:libflatzebra_0.1$secondaryArchSuffix = $portVersion " REQUIRES=" @@ -24,12 +24,21 @@ REQUIRES=" lib:libsdl_mixer$secondaryArchSuffix " +PROVIDES_devel=" + flatzebra_devel$secondaryArchSuffix = $portVersion + devel:libflatzebra_0.1$secondaryArchSuffix = $portVersion + " +REQUIRES_devel=" + haiku$secondaryArchSuffix + lib:libflatzebra_0.1$secondaryArchSuffix == $portVersion + " + BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel + devel:libjpeg$secondaryArchSuffix devel:libsdl$secondaryArchSuffix devel:libsdl_image$secondaryArchSuffix devel:libsdl_mixer$secondaryArchSuffix - devel:libjpeg$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:aclocal @@ -42,18 +51,19 @@ BUILD_PREREQUIRES=" BUILD() { - ./configure -prefix=$prefix + runConfigure ./configure make $jobArgs } INSTALL() { make install - mkdir -p $includeDir/flatzebra - mkdir -p $libDir/ - mv $prefix/include/flatzebra-0.1/flatzebra/*.h $includeDir/flatzebra/ - mv $prefix/lib/libflatzebra* $libDir/ - rm $libDir/libflatzebra-0.1.la - rm -rf $prefix/include \ - $prefix/share + fixPkgconfig + + #move the flatzebra headers to the place specified in pkgconfig + mv $includeDir/flatzebra-0.1/flatzebra $includeDir + rm -rf $includeDir/flatzebra-0.1 + + rm -rf $libDir/libflatzebra-0.1.la + packageEntries devel $developDir }