mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
Update openttd, openttd_gfx, openttd_sfx, openttd_msx (#7052)
* Update openttd, openttd_gfx, openttd_sfx, openttd_msx
This commit is contained in:
@@ -4,11 +4,11 @@ game \"Transport Tycoon Deluxe\", written by Chris Sawyer. It attempts to \
|
||||
mimic the original game as closely as possible while extending it with new \
|
||||
features."
|
||||
HOMEPAGE="http://www.openttd.org"
|
||||
COPYRIGHT="2005-2016 OpenTTD Team"
|
||||
COPYRIGHT="2005-2022 OpenTTD Team"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="2"
|
||||
SOURCE_URI="http://binaries.openttd.org/releases/$portVersion/openttd-$portVersion-source.tar.xz"
|
||||
CHECKSUM_SHA256="61190952a98d494d3fd62e395dd6c359609914d0ba8fe80eaeb585b7d62a1b36"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://cdn.openttd.org/openttd-releases/$portVersion/openttd-$portVersion-source.tar.xz"
|
||||
CHECKSUM_SHA256="81508f0de93a0c264b216ef56a05f8381fff7bffa6d010121a21490b4dace95c"
|
||||
ADDITIONAL_FILES="openttd.rdef"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
@@ -24,10 +24,11 @@ REQUIRES="
|
||||
openttd_sfx
|
||||
timgmsoundfont
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:liblzma$secondaryArchSuffix
|
||||
lib:liblzo2$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libsdl$secondaryArchSuffix
|
||||
lib:libSDL_1.2$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
@@ -37,7 +38,7 @@ BUILD_REQUIRES="
|
||||
devel:liblzma$secondaryArchSuffix
|
||||
devel:liblzo2$secondaryArchSuffix
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libsdl$secondaryArchSuffix
|
||||
devel:libSDL_1.2$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
@@ -45,32 +46,23 @@ BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:git
|
||||
cmd:make
|
||||
cmd:cmake
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export includeDir=/system/$relativeIncludeDir
|
||||
export CFLAGS=-O1
|
||||
# Non-autotools script, can't use runConfigure.
|
||||
./configure --prefix=$prefix --binary-dir=$relativeAppsDir \
|
||||
--data-dir=$relativeDataDir/openttd --doc-dir=$relativeDocDir/openttd \
|
||||
--man-dir=$relativeManDir --icon-dir=trash --menu-dir=trash \
|
||||
--with-freetype=2
|
||||
make $jobArgs
|
||||
cmake -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
$cmakeDirArgs \
|
||||
-DCMAKE_INSTALL_BINDIR=$appsDir
|
||||
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
# The install script leaves some mess all around, let's clean it up...
|
||||
rm -r $prefix/trash
|
||||
rm -r $prefix/16x16
|
||||
rm -r $prefix/32x32
|
||||
rm -r $prefix/48x48
|
||||
rm -r $prefix/64x64
|
||||
rm -r $prefix/128x128
|
||||
rm -r $prefix/256x256
|
||||
make -C build install
|
||||
rm -r $dataDir/{applications,icons,pixmaps}
|
||||
|
||||
addResourcesToBinaries $portDir/additional-files/openttd.rdef $appsDir/openttd
|
||||
addAppDeskbarSymlink $appsDir/openttd "OpenTTD"
|
||||
@@ -9,11 +9,11 @@ This package provides free to use graphics file. You can use them if you \
|
||||
don't have the files from the original Transport Tycoon Deluxe game.
|
||||
"
|
||||
HOMEPAGE="http://www.openttd.org"
|
||||
COPYRIGHT="2005-2013 OpenTTD Team"
|
||||
COPYRIGHT="2005-2022 OpenTTD Team"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://bundles.openttdcoop.org/opengfx/releases/$portVersion/opengfx-$portVersion.zip#noarchive"
|
||||
CHECKSUM_SHA256="3d136d776906dbe8b5df1434cb9a68d1249511a3c4cfaca55cc24cc0028ae078"
|
||||
SOURCE_URI="https://cdn.openttd.org/opengfx-releases/$portVersion/opengfx-$portVersion-all.zip#noarchive"
|
||||
CHECKSUM_SHA256="928fcf34efd0719a3560cbab6821d71ce686b6315e8825360fba87a7a94d7846"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
@@ -22,20 +22,17 @@ PROVIDES="
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:tar
|
||||
cmd:unzip
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
rm -Rf opengfx-$portVersion
|
||||
unzip -o opengfx-$portVersion.zip
|
||||
tar xvf opengfx-$portVersion.tar
|
||||
rm opengfx-$portVersion.tar
|
||||
unzip -o opengfx-$portVersion-all.zip
|
||||
rm opengfx-$portVersion-all.zip
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $dataDir/openttd/baseset/opengfx
|
||||
cp opengfx-$portVersion/* $dataDir/openttd/baseset/opengfx
|
||||
mkdir -p $dataDir/openttd/baseset
|
||||
cp opengfx-$portVersion.tar $dataDir/openttd/baseset/
|
||||
}
|
||||
@@ -10,9 +10,8 @@ HOMEPAGE="http://www.openttd.org"
|
||||
COPYRIGHT="2005-2013 OpenTTD Team"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="2"
|
||||
SOURCE_URI="http://binaries.openttd.org/extra/openmsx/$portVersion/openmsx-$portVersion-all.zip"
|
||||
CHECKSUM_SHA256="92e293ae89f13ad679f43185e83fb81fb8cad47fe63f4af3d3d9f955130460f5"
|
||||
SOURCE_DIR="openmsx-$portVersion"
|
||||
SOURCE_URI="https://cdn.openttd.org/openmsx-releases/$portVersion/openmsx-$portVersion-all.zip#noarchive"
|
||||
CHECKSUM_SHA256="5a4277a2e62d87f2952ea5020dc20fb2f6ffafdccf9913fbf35ad45ee30ec762"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
DISABLE_SOURCE_PACKAGE="yes"
|
||||
@@ -20,21 +19,19 @@ DISABLE_SOURCE_PACKAGE="yes"
|
||||
PROVIDES="
|
||||
openttd_msx = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:unzip
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
true
|
||||
unzip -o openmsx-$portVersion-all.zip
|
||||
rm openmsx-$portVersion-all.zip
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $dataDir/openttd/baseset/openmsx
|
||||
cp * $dataDir/openttd/baseset/openmsx
|
||||
mkdir -p $dataDir/openttd/baseset
|
||||
cp openmsx-$portVersion.tar $dataDir/openttd/baseset/
|
||||
}
|
||||
@@ -11,8 +11,8 @@ HOMEPAGE="http://www.openttd.org"
|
||||
COPYRIGHT="2005-2013 OpenTTD Team"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://binaries.openttd.org/extra/opensfx/$portVersion/opensfx-$portVersion-all.zip"
|
||||
CHECKSUM_SHA256="6831b651b3dc8b494026f7277989a1d757961b67c17b75d3c2e097451f75af02"
|
||||
SOURCE_URI="https://cdn.openttd.org/opensfx-releases/$portVersion/opensfx-$portVersion-all.zip#noarchive"
|
||||
CHECKSUM_SHA256="e0a218b7dd9438e701503b0f84c25a97c1c11b7c2f025323fb19d6db16ef3759"
|
||||
SOURCE_DIR="opensfx-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
@@ -21,21 +21,19 @@ DISABLE_SOURCE_PACKAGE="yes"
|
||||
PROVIDES="
|
||||
openttd_sfx = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:unzip
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
true
|
||||
unzip -o opensfx-$portVersion-all.zip
|
||||
rm opensfx-$portVersion-all.zip
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $dataDir/openttd/baseset/opensfx
|
||||
cp * $dataDir/openttd/baseset/opensfx
|
||||
mkdir -p $dataDir/openttd/baseset
|
||||
cp opensfx-$portVersion.tar $dataDir/openttd/baseset/
|
||||
}
|
||||
Reference in New Issue
Block a user