Files
haikuports/games-engines/scummvm-tools/scummvm_tools-2.1.0.recipe
2020-06-11 09:17:40 +10:00

87 lines
2.7 KiB
Bash

SUMMARY="Tools for ScummVM"
DESCRIPTION="This is a collection of various tools that may be useful to use \
in conjunction with ScummVM. Please note that although a tool may support a \
feature, certain ScummVM versions may not. ScummVM 0.6.x does not support \
FLAC audio, for example."
HOMEPAGE="https://www.scummvm.org/"
COPYRIGHT="2001-2013 ScummVM Team"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://www.scummvm.org/frs/scummvm-tools/$portVersion/scummvm-tools-$portVersion.tar.xz"
CHECKSUM_SHA256="cfc62d285d0e304061db72691cdfb8ce4ead868cffb2658b1f1c81934f404665"
SOURCE_DIR="scummvm-tools-$portVersion"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
scummvm_tools$secondaryArchSuffix = $portVersion
cmd:construct_mohawk = $portVersion
cmd:create_sjisfnt = $portVersion
cmd:decine = $portVersion
cmd:degob = $portVersion
cmd:dekyra = $portVersion
cmd:deprince = $portVersion
cmd:deriven = $portVersion
cmd:descumm = $portVersion
cmd:desword2 = $portVersion
cmd:extract_mohawk = $portVersion
cmd:gob_loadcalc = $portVersion
#cmd:scummvm_tools = $portVersion # not working yet for Qt
cmd:scummvm_tools_cli = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libbz2$secondaryArchSuffix
lib:libflac$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libmad$secondaryArchSuffix
lib:libogg$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
#lib:libqt5$secondaryArchSuffix # not working yet for Qt
#lib:libQt5Core$secondaryArchSuffix # not working yet for Qt
#lib:libQt5Gui$secondaryArchSuffix # not working yet for Qt
#lib:libQt5Widgets$secondaryArchSuffix # not working yet for Qt
lib:libvorbis$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libbz2$secondaryArchSuffix
devel:libflac$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libmad$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
devel:libpng$secondaryArchSuffix
#devel:libqt5$secondaryArchSuffix # not working yet for Qt
#devel:libQt5Core$secondaryArchSuffix # not working yet for Qt
#devel:libQt5Gui$secondaryArchSuffix # not working yet for Qt
#devel:libQt5Widgets$secondaryArchSuffix # not working yet for Qt
devel:libvorbis$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
#cmd:wx_config$secondaryArchSuffix # not working yet for Qt
"
BUILD()
{
libtoolize -fci
./configure --prefix=$prefix --datadir=$dataDir
make $jobArgs
}
INSTALL()
{
make install
# data files are not needed as long as we don't
# have a graphical interface for the tools
rm -r $dataDir/scummvm-tools
}