81 lines
2.2 KiB
Bash
81 lines
2.2 KiB
Bash
SUMMARY="An open source engine for Heroes or Migh and Magic III"
|
|
DESCRIPTION="
|
|
We want to rewrite the entire H3 engine (VCMI is NOT another mod) giving it \
|
|
new possibilities. Few years of intensive work resulted in creating an \
|
|
application with an impressive amount of features.
|
|
|
|
You'll require the original game files to use this port."
|
|
HOMEPAGE="https://vcmi.eu"
|
|
COPYRIGHT="2005-2013 VCMI Team"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="5"
|
|
SOURCE_URI="http://download.vcmi.eu/vcmi-0.94.tar.gz"
|
|
CHECKSUM_SHA256="2a1ad60cd64e7d5cb0a9eda11c6bc1cbf8866035f95597e467591c958dfde4d7"
|
|
PATCHES="vcmi-0.94.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
vcmi$secondaryArchSuffix = $portVersion
|
|
cmd:vcmibuilder
|
|
cmd:vcmiclient
|
|
cmd:vcmiserver
|
|
lib:libminizip$secondaryArchSuffix
|
|
lib:libvcmi$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libavcodec$secondaryArchSuffix
|
|
lib:libboost_filesystem$secondaryArchSuffix
|
|
lib:libboost_program_options$secondaryArchSuffix
|
|
lib:libboost_system$secondaryArchSuffix
|
|
lib:libboost_thread$secondaryArchSuffix
|
|
lib:libboost_unit_test_framework$secondaryArchSuffix
|
|
lib:libSDL_1.2$secondaryArchSuffix
|
|
lib:libsdl_image$secondaryArchSuffix
|
|
lib:libsdl_mixer$secondaryArchSuffix
|
|
lib:libsdl_ttf$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libavcodec$secondaryArchSuffix
|
|
devel:libboost_filesystem$secondaryArchSuffix
|
|
devel:libboost_program_options$secondaryArchSuffix
|
|
devel:libboost_system$secondaryArchSuffix
|
|
devel:libboost_thread$secondaryArchSuffix
|
|
devel:libboost_unit_test_framework$secondaryArchSuffix
|
|
devel:libSDL$secondaryArchSuffix
|
|
devel:libsdl_image$secondaryArchSuffix
|
|
devel:libsdl_mixer$secondaryArchSuffix
|
|
devel:libsdl_ttf$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:as$secondaryArchSuffix
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build
|
|
cd build
|
|
export CFLAGS=-DUSE_FILE32API
|
|
export CXXFLAGS=$CFLAGS
|
|
cmake .. -DDATA_DIR=$relativeDataDir/vcmi -DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DLIB_DIR=$relativeLibDir
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
rm -r $prefix/share # desktop file and png icons we don't care about
|
|
}
|