From 854083a8a907ea86a4c0d62231f34531c14c1329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Arroyo=20Calle?= Date: Thu, 2 Jan 2014 23:44:04 +0000 Subject: [PATCH 1/4] FreedroidRPG --- .../freedroidrpg/freedroidrpg-0.15.1.recipe | 114 ++++++++++++++++++ .../freedroidrpg/patches/configure.2.ac.patch | 94 +++++++++++++++ .../freedroidrpg/patches/configure.ac.patch | 25 ++++ 3 files changed, 233 insertions(+) create mode 100644 games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe create mode 100644 games-rpg/freedroidrpg/patches/configure.2.ac.patch create mode 100644 games-rpg/freedroidrpg/patches/configure.ac.patch diff --git a/games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe b/games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe new file mode 100644 index 000000000..fe2dc2415 --- /dev/null +++ b/games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe @@ -0,0 +1,114 @@ +SUMMARY="FreedroidRPG is a open source role playing game" +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" + +DISABLE_SOURCE_PACKAGE=yes + +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" diff --git a/games-rpg/freedroidrpg/patches/configure.2.ac.patch b/games-rpg/freedroidrpg/patches/configure.2.ac.patch new file mode 100644 index 000000000..df1d7c334 --- /dev/null +++ b/games-rpg/freedroidrpg/patches/configure.2.ac.patch @@ -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]) diff --git a/games-rpg/freedroidrpg/patches/configure.ac.patch b/games-rpg/freedroidrpg/patches/configure.ac.patch new file mode 100644 index 000000000..a2b7e08a0 --- /dev/null +++ b/games-rpg/freedroidrpg/patches/configure.ac.patch @@ -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 From aca3fd94cca8b6e4272f81b2a0daf62bc1e376b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Arroyo=20Calle?= Date: Thu, 2 Jan 2014 23:47:50 +0000 Subject: [PATCH 2/4] Enable source package --- games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe | 2 -- 1 file changed, 2 deletions(-) diff --git a/games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe b/games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe index fe2dc2415..0b26bad1f 100644 --- a/games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe +++ b/games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe @@ -11,8 +11,6 @@ LICENSE="GNU GPL v2" COPYRIGHT="2002-2010 The Freedroid team" REVISION="1" -DISABLE_SOURCE_PACKAGE=yes - ARCHITECTURES="x86 x86_64" if [ $effectiveTargetArchitecture != x86_gcc2 ]; then ARCHITECTURES="$ARCHITECTURES x86_gcc2" From 8dac4ed9c75c072618fa3ed648c71c6ff57cd916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Arroyo=20Calle?= Date: Thu, 2 Jan 2014 23:49:57 +0000 Subject: [PATCH 3/4] Enable _data dependencie --- games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe b/games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe index 0b26bad1f..182b33843 100644 --- a/games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe +++ b/games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe @@ -29,7 +29,7 @@ PROVIDES=" " REQUIRES=" haiku$secondaryArchSuffix >= $haikuVersion - #freedroidrpg_data == $portVersion + freedroidrpg_data == $portVersion lib:libsdl$secondaryArchSuffix #lib:libsdl_mixer$secondaryArchSuffix lib:libsdl_image$secondaryArchSuffix From 8e659866b6c432768687e9eb41d91f96dc905c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Arroyo=20Calle?= Date: Fri, 3 Jan 2014 00:11:04 +0000 Subject: [PATCH 4/4] Update summary and description --- .../freedroidrpg/freedroidrpg-0.15.1.recipe | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe b/games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe index 182b33843..bf3b97059 100644 --- a/games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe +++ b/games-rpg/freedroidrpg/freedroidrpg-0.15.1.recipe @@ -1,9 +1,22 @@ -SUMMARY="FreedroidRPG is a open source role playing game" -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." +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"