mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
scummvm 1.8.1 new recipe (#619)
This commit is contained in:
@@ -2,15 +2,13 @@
|
||||
resource app_flags B_SINGLE_LAUNCH | B_ARGV_ONLY;
|
||||
|
||||
resource app_version {
|
||||
major = 1,
|
||||
middle = 7,
|
||||
minor = 0,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
|
||||
short_info = "ScummVM",
|
||||
long_info = "Script Creation Utility for Maniac Mansion Virtual Machine"
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
short_info = "ScummVM",
|
||||
long_info = "Script Creation Utility for Maniac Mansion Virtual Machine"
|
||||
};
|
||||
|
||||
resource app_signature "application/x-vnd.scummvm";
|
||||
|
||||
109
games-engines/scummvm/scummvm-1.8.1.recipe
Normal file
109
games-engines/scummvm/scummvm-1.8.1.recipe
Normal file
@@ -0,0 +1,109 @@
|
||||
SUMMARY="Script Creation Utility for Maniac Mansion Virtual Machine"
|
||||
DESCRIPTION="ScummVM is a program which allows you to run certain classic \
|
||||
graphical point-and-click adventure games, provided you already have their \
|
||||
data files. The clever part about this: ScummVM just replaces the executables \
|
||||
shipped with the games, allowing you to play them on systems for which they \
|
||||
were never designed!"
|
||||
HOMEPAGE="http://scummvm.org"
|
||||
COPYRIGHT="2001-2014 ScummVM Team"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://scummvm.org/frs/scummvm/$portVersion/scummvm-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="935f53d7e4c460fbc22c58fee5007d4858891e4961831f53f575a3594b7f612a"
|
||||
ADDITIONAL_FILES="scummvm.rdef"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
scummvm$secondaryArchSuffix = $portVersion
|
||||
app:scummvm$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libbz2$secondaryArchSuffix
|
||||
lib:libfaad$secondaryArchSuffix
|
||||
lib:libflac$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libfluidsynth$secondaryArchSuffix
|
||||
lib:libgl$secondaryArchSuffix
|
||||
lib:libglu$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libmad$secondaryArchSuffix
|
||||
lib:libmpeg2$secondaryArchSuffix
|
||||
lib:libogg$secondaryArchSuffix
|
||||
lib:libpng$secondaryArchSuffix
|
||||
lib:libSDL$secondaryArchSuffix
|
||||
lib:libtheora$secondaryArchSuffix
|
||||
lib:libvorbis$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libbz2$secondaryArchSuffix
|
||||
devel:libfaad$secondaryArchSuffix
|
||||
devel:libflac$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libfluidsynth$secondaryArchSuffix
|
||||
devel:libgl$secondaryArchSuffix
|
||||
devel:libglu$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libmad$secondaryArchSuffix
|
||||
devel:libmpeg2$secondaryArchSuffix
|
||||
devel:libogg$secondaryArchSuffix
|
||||
devel:libpng$secondaryArchSuffix
|
||||
devel:libSDL$secondaryArchSuffix
|
||||
devel:libtheora$secondaryArchSuffix
|
||||
devel:libvorbis$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:nasm
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
libtoolize --force --copy --install
|
||||
CPPFLAGS=`freetype-config --cflags` ./configure --prefix=$prefix \
|
||||
--bindir=$appsDir --libdir=$libDir --datarootdir=$dataDir \
|
||||
--mandir=$manDir --docdir=$docDir \
|
||||
--disable-debug --enable-release --disable-eventrecorder \
|
||||
#--disable-all-engines #can be used to compile scummvm without \
|
||||
#engines, which makes it build faster (to test), those that \
|
||||
#are still under construction can be built with --enable-all-engines \
|
||||
#for testing purposes
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
mv $appsDir/scummvm $appsDir/ScummVM
|
||||
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
$portDir/additional-files/scummvm.rdef > scummvm.rdef
|
||||
|
||||
addResourcesToBinaries scummvm.rdef \
|
||||
$appsDir/ScummVM
|
||||
|
||||
addAppDeskbarSymlink $appsDir/ScummVM
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user