Files
haikuports/dev-games/physfs/physfs-3.2.0.recipe

72 lines
1.9 KiB
Bash

SUMMARY="A library to access multiple forms of archives"
DESCRIPTION="Physfs is short for PhysicsFS. It's a C library that provides \
abstract access to various archives. It is intended for use in video games, \
and the design was somewhat inspired by Quake 3's file subsystem.
The programmer defines a \"write directory\" on the physical filesystem to \
which all writing through the PhysicsFS is restricted for security reasons.
PhysicsFS gives you platform-abstracted means to determine if CD-ROMs are \
available, the user's home directory (where in the real filesystem your \
game is running), etc."
HOMEPAGE="https://icculus.org/physfs"
COPYRIGHT="2001-2022 Ryan C. Gordon"
LICENSE="PHYSFS"
REVISION="1"
SOURCE_URI="https://github.com/icculus/physfs/archive/refs/tags/release-$portVersion.tar.gz"
CHECKSUM_SHA256="1991500eaeb8d5325e3a8361847ff3bf8e03ec89252b7915e1f25b3f8ab5d560"
SOURCE_DIR="physfs-release-$portVersion"
PATCHES="physfs-$portVersion.patchset"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= 1"
PROVIDES="
physfs$secondaryArchSuffix = $portVersion
cmd:test_physfs$secondaryArchSuffix = $portVersion compat >= 3.2
lib:libphysfs$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
physfs${secondaryArchSuffix}_devel = $portVersion
devel:libphysfs$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
physfs$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs \
-DPHYSFS_BUILD_STATIC=OFF
make -C build $jobArgs
}
INSTALL()
{
make -C build install
prepareInstalledDevelLib libphysfs
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$libDir/cmake
}