mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
111 lines
3.4 KiB
Bash
111 lines
3.4 KiB
Bash
SUMMARY="An open source engine for Heroes or Might 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-2023 VCMI Team"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="5"
|
|
SOURCE_URI="https://github.com/vcmi/vcmi/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="1c714487a6c3c7b9fd956fc2a50d05a1ebcc9431c6b9c72f256143be38f4e0da"
|
|
PATCHES="vcmi-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libtbbVersion="2"
|
|
|
|
PROVIDES="
|
|
vcmi$secondaryArchSuffix = $portVersion
|
|
cmd:vcmibuilder
|
|
cmd:vcmiclient
|
|
cmd:vcmieditor
|
|
cmd:vcmilauncher
|
|
cmd:vcmiserver
|
|
lib:libvcmi$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
cmd:innoextract
|
|
lib:libavcodec$secondaryArchSuffix
|
|
lib:libboost_date_time$secondaryArchSuffix
|
|
lib:libboost_filesystem$secondaryArchSuffix
|
|
lib:libboost_program_options$secondaryArchSuffix
|
|
lib:libboost_system$secondaryArchSuffix
|
|
lib:libboost_thread$secondaryArchSuffix
|
|
lib:libexecinfo$secondaryArchSuffix
|
|
lib:libfuzzylite$secondaryArchSuffix
|
|
lib:libminizip$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
lib:libSDL2_2.0$secondaryArchSuffix
|
|
lib:libSDL2_image_2.0$secondaryArchSuffix
|
|
lib:libSDL2_mixer_2.0$secondaryArchSuffix
|
|
lib:libSDL2_ttf_2.0$secondaryArchSuffix
|
|
lib:libstdc++$secondaryArchSuffix
|
|
lib:libtbb$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
# dependency of devel:libQt5Gui
|
|
devel:libavcodec$secondaryArchSuffix >= 60
|
|
devel:libboost_filesystem$secondaryArchSuffix >= 1.85.0
|
|
devel:libboost_program_options$secondaryArchSuffix >= 1.85.0
|
|
devel:libboost_system$secondaryArchSuffix >= 1.85.0
|
|
devel:libboost_thread$secondaryArchSuffix >= 1.85.0
|
|
devel:libboost_unit_test_framework$secondaryArchSuffix >= 1.85.0
|
|
devel:libexecinfo$secondaryArchSuffix
|
|
devel:libfuzzylite$secondaryArchSuffix
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libminizip$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5Network$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
devel:libSDL2_2.0$secondaryArchSuffix
|
|
devel:libSDL2_image_2.0$secondaryArchSuffix
|
|
devel:libSDL2_mixer_2.0$secondaryArchSuffix
|
|
devel:libSDL2_ttf_2.0$secondaryArchSuffix
|
|
devel:libtbb$secondaryArchSuffix >= $libtbbVersion
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:as$secondaryArchSuffix
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:lrelease$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
export CFLAGS=-DUSE_FILE32API
|
|
export CXXFLAGS="$CFLAGS -DBOOST_NO_CXX11_CONSTEXPR"
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
|
-DDATA_DIR=$relativeDataDir/vcmi \
|
|
-DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DLIB_DIR=$relativeLibDir \
|
|
-DFORCE_BUNDLED_FL=0 \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
rm -r $prefix/share # desktop file and png icons we don't care about
|
|
|
|
addAppDeskbarSymlink $prefix/bin/vcmilauncher "VCMI (Heroes Of Might And Magic III)"
|
|
}
|