Quick fixes for physfs on primary and secondary

This commit is contained in:
Chris Roberts
2013-12-19 21:35:46 -07:00
parent 8c6f1734a4
commit f37a1491f9

View File

@@ -12,19 +12,17 @@ SECONDARY_ARCHITECTURES="x86_gcc2 x86"
REVISION="1"
PROVIDES="
physfs$secondaryArchSuffix = $portVersion
lib:libphysfs$secondaryArchSuffix = $portVersion
cmd:test_physfs
physfs$secondaryArchSuffix = $portVersion compat >= 2.0
lib:libphysfs$secondaryArchSuffix = $portVersion compat >= 2.0
cmd:test_physfs$secondaryArchSuffix = $portVersion compat >= 2.0
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:libz$secondaryArchSuffix >= 1.0.4
"
BUILD_PREREQUIRES="
@@ -33,9 +31,16 @@ BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
"
PATCH()
{
sed -i "s,DESTINATION include,DESTINATION $relativeIncludeDir," CMakeLists.txt
sed -i "s,DESTINATION bin,DESTINATION $relativeBinDir," CMakeLists.txt
}
BUILD()
{
cmake . -DCMAKE_INSTALL_PREFIX=$prefix
cmake . -DCMAKE_INSTALL_PREFIX=$prefix \
-DLIB_SUFFIX="/${secondaryArchSuffix/_/}"
make $jobArgs
}
@@ -46,10 +51,6 @@ INSTALL()
prepareInstalledDevelLib libphysfs
fixPkgconfig
mkdir -p $includeDir
mv $prefix/include/*.h $includeDir
rm -rf $prefix/include
# devel package
packageEntries devel \
$developDir
@@ -57,8 +58,7 @@ INSTALL()
PROVIDES_devel="
physfs$secondaryArchSuffix_devel = $portVersion compat >= 2.0
devel:physfs$secondaryArchSuffix = $portVersion compat >= 2.0
devel:libphysfs$secondaryArchSuffix = 2.0.3 compat >= 2.0
devel:libphysfs$secondaryArchSuffix = $portVersion compat >= 2.0
"
REQUIRES_devel="