mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
76 lines
1.9 KiB
Bash
76 lines
1.9 KiB
Bash
SUMMARY="A C++ GUI library designed for games"
|
|
DESCRIPTION="Fifechan is a C++ GUI library designed for games. It comes with a \
|
|
standard set of 'widgets' and can use several different objects for displaying \
|
|
graphics and capturing user input."
|
|
HOMEPAGE="http://fifengine.github.com/fifechan/"
|
|
COPYRIGHT="2004-2014 fifechan developers"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="4"
|
|
SOURCE_URI="https://github.com/fifengine/fifechan/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="4a4239314ae33c5413e4d7d3e5f2f1a7e53fb596fd1480ea7443ee78041e6b2d"
|
|
SOURCE_FILENAME="$portName-$portVersion.tar.gz"
|
|
PATCHES="fifechan-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
fifechan$secondaryArchSuffix = $portVersion
|
|
lib:libfifechan$secondaryArchSuffix = $portVersion
|
|
lib:libfifechan_opengl$secondaryArchSuffix = $portVersion
|
|
lib:libfifechan_sdl$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libSDL_1.2$secondaryArchSuffix
|
|
lib:libSDL_image_1.2$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
fifechan${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libfifechan$secondaryArchSuffix = $portVersion
|
|
devel:libfifechan_opengl$secondaryArchSuffix = $portVersion
|
|
devel:libfifechan_sdl$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
fifechan$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libSDL$secondaryArchSuffix
|
|
devel:libSDL_image$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build && cd build
|
|
cmake \
|
|
-DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DLIB_INSTALL_DIR=$libDir \
|
|
-DINCLUDE_INSTALL_DIR=$includeDir \
|
|
..
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
prepareInstalledDevelLibs \
|
|
libfifechan libfifechan_opengl libfifechan_sdl
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|