62 lines
1.6 KiB
Bash
62 lines
1.6 KiB
Bash
SUMMARY="Tool for creating Simutrans paksets"
|
|
DESCRIPTION="Makeobj is a tool for graphics/pakset developers \
|
|
and is not needed for playing the game.
|
|
Makeobj joins both the image and the data files in a single \
|
|
compressed pak-file that will then be read by the game engine."
|
|
HOMEPAGE="http://www.simutrans.com"
|
|
COPYRIGHT="1997-2004 Hj. Malthaner
|
|
2005-2018 The Simutrans Team"
|
|
LICENSE="Artistic"
|
|
REVISION="1"
|
|
GitRevision="27760d73138e1e059611577ccbc75fc9ab82f8d8"
|
|
SOURCE_URI="https://github.com/aburch/simutrans/archive/$GitRevision.tar.gz"
|
|
CHECKSUM_SHA256="084e5eec094f6d96212a8dd616d026caf5916febc58202af1c1f2802cedf8b5d"
|
|
SOURCE_FILENAME="makeobj-$portVersion.tar.gz"
|
|
SOURCE_DIR="simutrans-$GitRevision"
|
|
|
|
ARCHITECTURES="all !x86_gcc2 ?x86"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
makeobj$secondaryArchSuffix = $portVersion
|
|
cmd:makeobj$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libbz2$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libbz2$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libSDL2_2.0$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoreconf
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:sdl2_config$secondaryArchSuffix >= 2.0
|
|
cmd:strip$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf configure.ac
|
|
runConfigure ./configure
|
|
make makeobj $jobArgs
|
|
strip makeobj/makeobj
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $binDir
|
|
cp -r makeobj/makeobj $binDir/
|
|
}
|