Updated physfs to 2.0.3, removed old .recipe

This commit is contained in:
Scott McCreary
2013-10-27 12:52:30 -07:00
parent 4caaa33843
commit c070d57237
2 changed files with 58 additions and 33 deletions

View File

@@ -1,33 +0,0 @@
DESCRIPTION="PhysicsFS is a library to provide abstract access to various archives"
HOMEPAGE="http://icculus.org/physfs"
SRC_URI="hg+http://hg.icculus.org/icculus/physfs/#release-2.0.1"
#SRC_URI="http://icculus.org/physfs/downloads/physfs-2.0.1.tar.gz"
#CHECKSUM_MD5="df00465fcfa80e87f718961c6dd6b928"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-util/cmake >= 2.8.0
dev-util/mercurial >= 1.4"
BUILD()
{
cd physfs-2.0.1
cmake . -DLIBRARY_OUTPUT_PATH:=`finddir B_COMMON_LIB_DIRECTORY`
make
}
INSTALL()
{
cd physfs-2.0.1
make install
if [ -n "$(setgcc | grep '4')" ]; then
if [ -e "${DESTDIR}" ]; then
mkdir -p ${DESTDIR}/tmp-phy
mv -v ${DESTDIR}/boot/common/lib ${DESTDIR}/tmp-phy
mkdir -p ${DESTDIR}/boot/common/lib
mv -v ${DESTDIR}/tmp-phy/lib/* ${DESTDIR}/boot/common/lib
else
mv -v /boot/common/lib/libphysfs.* /boot/common/lib
fi
fi
}
LICENSE="PHYSFS"
COPYRIGHT="2001-2010 Ryan C. Gordon"

View File

@@ -0,0 +1,58 @@
SUMMARY="Physfs"
DESCRIPTION="PhysicsFS is a library to provide abstract access to various archives"
HOMEPAGE="http://icculus.org/physfs"
SRC_URI="http://icculus.org/physfs/downloads/physfs-2.0.3.tar.bz2"
CHECKSUM_MD5="c2c727a8a8deb623b521b52d0080f613"
LICENSE="PHYSFS"
COPYRIGHT="2001-2012 Ryan C. Gordon"
ARCHITECTURES="x86_gcc2 x86 x86_64"
REVISION="1"
PROVIDES="
physfs = $portVersion
lib:libphysfs = $portVersion
"
REQUIRES="
haiku
lib:libz
"
BUILD_REQUIRES="
devel:libz
"
BUILD_PREREQUIRES="
haiku_devel
cmd:cmake
cmd:make
cmd:gcc
"
BUILD()
{
cmake . -DLIBRARY_OUTPUT_PATH:=$libDir
make
}
INSTALL()
{
make install
fixPkgconfig
prepareInstalledDevelLib libphysfs
packageEntries devel \
$developDir
}
PROVIDES_devel="
devel:physfs = $portVersion compat >= 2.0
devel:libphysfs = 2.0.3 compat >= 2.0
"
REQUIRES_devel="
physfs == $portVersion base
"