mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Merged in AdrianArroyoCalle/haikuports (pull request #114)
FreedroidRPG 0.15.1
This commit is contained in:
125
games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe
Normal file
125
games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe
Normal file
@@ -0,0 +1,125 @@
|
||||
SUMMARY="A role playing game battling roboters"
|
||||
DESCRIPTION="
|
||||
The game tells the story of a world destroyed by a conflict between robots and\
|
||||
their human masters. Play as Tux in a quest to save the world from the \
|
||||
murderous rebel bots who know no mercy. You get to choose which path you wish \
|
||||
to follow, and freedom of choice is everywhere in the game. \
|
||||
\
|
||||
FreedroidRPG features a real time combat system with melee and ranged weapons, \
|
||||
fairly similar to the proprietary game Diablo. There is an innovative system of\
|
||||
programs that can be run in order to take control of enemy robots, alter their \
|
||||
behavior, or improve one's characteristics. You can use over 50 different kinds\
|
||||
of items and fight countless enemies on your way to your destiny. An advanced \
|
||||
dialog system provides story background and immersive role playing situations.\
|
||||
\
|
||||
The game is complete, fully playable, and can provide about 10 hours of fun. \
|
||||
It is still being actively developed, and help is welcome in many areas. People\
|
||||
having - or trying to acquire - programming, map editing, or writing skills \
|
||||
will find FreedroidRPG to be an exciting, fast-moving project in which they can\
|
||||
fully express their creativity."
|
||||
HOMEPAGE="http://freedroid.org"
|
||||
SRC_URI="http://sourceforge.net/projects/freedroid/files/freedroidRPG/freedroidRPG-0.15/freedroidRPG-0.15.1.tar.gz/download"
|
||||
CHECKSUM_MD5="b95ea6abae46bea6ee3ace9a1902f682"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2002-2010 The Freedroid team"
|
||||
REVISION="1"
|
||||
|
||||
ARCHITECTURES="x86 x86_64"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
freedroidrpg$secondaryArchSuffix = $portVersion
|
||||
app:freedroidrpg$secondaryArchSuffix = $portVersion
|
||||
cmd:pngtoico$secondaryArchSuffix = $portVersion
|
||||
cmd:croppy$secondaryArchSuffix = $portVersion
|
||||
cmd:explode_atlas$secondaryArchSuffix = $portVersion
|
||||
cmd:explodefont$secondaryArchSuffix = $portVersion
|
||||
cmd:gluefont$secondaryArchSuffix = $portVersion
|
||||
cmd:make_atlas$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
freedroidrpg_data == $portVersion
|
||||
lib:libsdl$secondaryArchSuffix
|
||||
#lib:libsdl_mixer$secondaryArchSuffix
|
||||
lib:libsdl_image$secondaryArchSuffix
|
||||
lib:libsdl_gfx$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
lib:libogg$secondaryArchSuffix
|
||||
lib:libvorbis$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libpng$secondaryArchSuffix
|
||||
lib:libglu$secondaryArchSuffix
|
||||
lib:libgl$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
devel:libsdl$secondaryArchSuffix
|
||||
#devel:libsdl_mixer$secondaryArchSuffix
|
||||
devel:libsdl_image$secondaryArchSuffix
|
||||
devel:libsdl_gfx$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
devel:libogg$secondaryArchSuffix
|
||||
devel:libvorbis$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libpng$secondaryArchSuffix
|
||||
devel:libglu$secondaryArchSuffix
|
||||
devel:libgl$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:libtoolize
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:pkg_config
|
||||
cmd:python
|
||||
"
|
||||
SOURCE_DIR="freedroidrpg-0.15.1"
|
||||
|
||||
PATCHES="
|
||||
configure.ac.patch
|
||||
configure.2.ac.patch
|
||||
"
|
||||
PATCH()
|
||||
{
|
||||
sed -i 's/lua.h/..\/lua\/lua.h/g' src/*.c
|
||||
sed -i 's/lua.h/..\/lua\/lua.h/g' src/*.h
|
||||
sed -i 's/lauxlib.h/..\/lua\/lauxlib.h/g' src/*.c
|
||||
sed -i 's/lauxlib.h/..\/lua\/lauxlib.h/g' src/*.h
|
||||
sed -i 's/lualib.h/..\/lua\/lualib.h/g' src/*.c
|
||||
sed -i 's/lualib.h/..\/lua\/lualib.h/g' src/*.h
|
||||
}
|
||||
BUILD()
|
||||
{
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
automake
|
||||
./configure --disable-sdltest --with-embedded-lua --libdir=$libDir --includedir=$includeDir \
|
||||
--bindir=$binDir --datadir=$dataDir --mandir=$manDir
|
||||
make
|
||||
}
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
mkdir -p $appsDir
|
||||
|
||||
mv $binDir/freedroidRPG $appsDir
|
||||
|
||||
packageEntries data $dataDir
|
||||
addAppDeskbarSymlink $appsDir/freedroidRPG "FreedroidRPG"
|
||||
}
|
||||
PROVIDES_data="
|
||||
freedroidrpg_data = $portVersion
|
||||
"
|
||||
REQUIRES_data="
|
||||
haiku >= $haikuVersion
|
||||
"
|
||||
SUMMARY_data="FreedroidRPG data files"
|
||||
ARCHITECTURES_data="any"
|
||||
94
games-rpg/freedroidrpg/patches/configure.2.ac.patch
Normal file
94
games-rpg/freedroidrpg/patches/configure.2.ac.patch
Normal file
@@ -0,0 +1,94 @@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 73a762a..faf7cb9 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -51,7 +51,7 @@ case "$target" in
|
||||
|
||||
*)
|
||||
CFLAGS="$CFLAGS -DFD_DATADIR='\"\$(pkgdatadir)\"'" #avoid expansion of $pkgdatadir !
|
||||
- LDFLAGS="$LDFLAGS -rdynamic"
|
||||
+ LDFLAGS="$LDFLAGS -lGL"
|
||||
SYS_GL_LIB=GL
|
||||
;;
|
||||
esac
|
||||
@@ -105,53 +105,24 @@ AM_PATH_SDL($SDL_VERSION,
|
||||
CFLAGS="$CFLAGS $SDL_CFLAGS"
|
||||
LIBS="$LIBS $SDL_LIBS"
|
||||
|
||||
-AC_CHECK_LIB([jpeg], [jpeg_start_compress],,
|
||||
- AC_MSG_ERROR([libjpeg needed to run FreedroidRPG!
|
||||
-see http://www.ijg.org/]))
|
||||
+AC_CHECK_LIB([jpeg], [jpeg_start_compress])
|
||||
|
||||
-AC_CHECK_LIB([z], [compress],,
|
||||
- AC_MSG_ERROR([zlib is needed to run FreedroidRPG!
|
||||
-see http://www.gzip.org/zlib/]))
|
||||
+AC_CHECK_LIB([z], [compress])
|
||||
|
||||
-AC_CHECK_LIB([png], [png_read_png],,
|
||||
- AC_MSG_ERROR([libpng needed to run FreedroidRPG
|
||||
-see http://www.libpng.org/pub/png/libpng.html]))
|
||||
+AC_CHECK_LIB([png], [png_read_png])
|
||||
|
||||
-AC_CHECK_LIB([SDL_image], [IMG_LoadJPG_RW],,
|
||||
- AC_MSG_ERROR([SDL_image library needed for FreedroidRPG!
|
||||
-see http://www.libsdl.org/]))
|
||||
+AC_CHECK_LIB([SDL_image], [IMG_LoadJPG_RW])
|
||||
|
||||
-AC_CHECK_LIB([SDL_gfx], [zoomSurface],,
|
||||
- AC_MSG_ERROR([SDL_gfx library needed for FreedroidRPG!
|
||||
-Please refer to the INSTALL file]))
|
||||
+AC_CHECK_LIB([SDL_gfx], [zoomSurface])
|
||||
|
||||
AC_MSG_NOTICE([[Checking for optional SDL libraries:]])
|
||||
summary_sound="yes"
|
||||
-AC_CHECK_LIB([SDL_mixer], [Mix_ChannelFinished],, AC_MSG_WARN([
|
||||
---------------------------------------------------
|
||||
-libSDL_mixer not found!
|
||||
-You need the SDL_mixer library (version >= 1.2.1) if you want sound!
|
||||
-(see see http://www.libsdl.org/)
|
||||
---> compiling without sound support
|
||||
---------------------------------------------------])
|
||||
-summary_sound="SDL_mixer not found")
|
||||
+AC_CHECK_LIB([SDL_mixer], [Mix_ChannelFinished])
|
||||
|
||||
if test x$want_vorbis = xyes; then
|
||||
-AC_CHECK_LIB([ogg], [oggpack_read],, AC_MSG_WARN([
|
||||
---------------------------------------------------
|
||||
-libogg not found!
|
||||
-You need the Ogg libs installed if you want
|
||||
-Freedroid to be able to play Ogg files (e.g. the Intro theme)
|
||||
---------------------------------------------------])
|
||||
-summary_sound="no libogg")
|
||||
+AC_CHECK_LIB([ogg], [oggpack_read])
|
||||
|
||||
-AC_CHECK_LIB([vorbis], [vorbis_block_init],, AC_MSG_WARN([
|
||||
---------------------------------------------------
|
||||
-libvorbis not found!
|
||||
-You need the Vorbis libs installed if you want
|
||||
-Freedroid to be able to play Ogg files (e.g. the Intro theme)
|
||||
---------------------------------------------------])
|
||||
-summary_sound="no libvorbis")
|
||||
+AC_CHECK_LIB([vorbis], [vorbis_block_init])
|
||||
else
|
||||
AC_DEFINE(HAVE_LIBOGG,0, [Define to 1 if ogg libs were found])
|
||||
AC_DEFINE(HAVE_LIBVORBIS,0, [Define to 1 if Vorbis libs were found])
|
||||
@@ -219,7 +190,17 @@ AC_TYPE_SIZE_T
|
||||
AC_HEADER_TIME
|
||||
|
||||
# Checks for library functions.
|
||||
-AC_CHECK_FUNCS([alarm getcwd gettimeofday memset sqrt strstr strtok alphasort scandir nl_langinfo dirname])
|
||||
+AC_DEFINE([HAVE_ALARM],[1],[Haiku has alarm])
|
||||
+AC_DEFINE([HAVE_DIRNAME],[1],[Haiku has dirname])
|
||||
+AC_DEFINE([HAVE_GETCWD],[1],[Haiku has getcwd])
|
||||
+AC_DEFINE([HAVE_GETTIMEOFDAY],[1],[Haiku has gettimeofday])
|
||||
+AC_DEFINE([HAVE_STRSTR],[1],[Haiku has strstr])
|
||||
+AC_DEFINE([HAVE_STRTOK],[1],[Haiku has strtok])
|
||||
+AC_DEFINE([HAVE_SQRT],[1],[Haiku has sqrt])
|
||||
+AC_DEFINE([HAVE_MEMSET],[1],[Haiku has memset])
|
||||
+AC_DEFINE([HAVE_SCANDIR],[1],[Haiku has scandir])
|
||||
+AC_DEFINE([HAVE_ALPHASORT],[1],[Haiku has alphashort])
|
||||
+AC_DEFINE([PACKAGE_BUGREPORT],["http://bitbucket.org/haikuports/haikuports"],[Haikuports bugs])
|
||||
|
||||
if test x$want_backtrace = xyes; then
|
||||
AC_CHECK_FUNCS([backtrace])
|
||||
25
games-rpg/freedroidrpg/patches/configure.ac.patch
Normal file
25
games-rpg/freedroidrpg/patches/configure.ac.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index dad2e72..73a762a 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -8,7 +8,7 @@ AC_CANONICAL_TARGET
|
||||
dnl Setup for automake
|
||||
AM_INIT_AUTOMAKE([tar-ustar dist-bzip2])
|
||||
|
||||
-AM_CONFIG_HEADER(config.h)
|
||||
+AC_CONFIG_HEADERS(config.h)
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
@@ -17,9 +17,8 @@ AC_PROG_MAKE_SET
|
||||
|
||||
AC_HEADER_STDC
|
||||
# Checks for libraries.
|
||||
-AC_CHECK_LIB([m], [sin],,
|
||||
- AC_MSG_ERROR([libm not found!!
|
||||
-No maths library?? What kinda crazy system is that??]))
|
||||
+AC_CHECK_LIB(m, sin)
|
||||
+AC_SUBST(LIBM)
|
||||
|
||||
AC_PATH_X
|
||||
AC_PATH_XTRA
|
||||
Reference in New Issue
Block a user