Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=interim.git;a=commitdiff;h=4e768cdf905631cd79a286f40427235ceeef7b28

commit 4e768cdf905631cd79a286f40427235ceeef7b28
Author: Devil505 <[EMAIL PROTECTED]>
Date:   Wed Jul 30 21:16:07 2008 +0200

openastromenace-1.2.0-1-x86_64
* new package from gholafox
* closed review thread in ML -devel

diff --git a/source/games-extra/openastromenace/FrugalBuild 
b/source/games-extra/openastromenace/FrugalBuild
new file mode 100755
index 0000000..4cfd656
--- /dev/null
+++ b/source/games-extra/openastromenace/FrugalBuild
@@ -0,0 +1,53 @@
+# Compiling Time: 0.35 SBU
+# Maintainer: Devil505 <[EMAIL PROTECTED]>
+# Contributor: gholafox <[EMAIL PROTECTED]>
+
+pkgname=openastromenace
+pkgver=1.2.0
+pkgrel=1
+pkgdesc="Hardcore 3D space shooter with spaceship upgrade possibilities"
+_F_sourceforge_name="openamenace-src"
+_F_sourceforge_broken_up2date="1"
+_F_sourceforge_ext=".tar.bz2"
+Finclude sourceforge cmake
+_F_cd_path="OpenAstroMenaceSVN"
+makedepends=('cmake')
+depends=('sdl' 'libjpeg' 'mesa' 'libsm' 'freealut' 'libvorbis' 'libstdc++')
+source=($source $pkgname.png $pkgname-$pkgver-cmake.patch 
${source/openamenace-src/oamenace-data} 
${source/openamenace-src/oamenace-lang-en} 
${source/openamenace-src/oamenace-lang-de} 
${source/openamenace-src/oamenace-lang-ru})
+groups=('games-extra')
+archs=('i686' 'x86_64')
+sha1sums=('135a235cc35130edd3808c88fac202c57e8aafbf' \
+          'b9435d1a898d2c0fd5e00b3e2fb39e2a2aa666e8' \
+          '8a372a8e2f8053546925b7ccdf1c573cc89b5cf2' \
+          '0f27e8fbce90d979118f37014a4ca4f97e2bfb4e' \
+          '4fea8918b9e5212d576f97dd055dc1d6fdf0730f' \
+          '8a3be279ca79aff7153f8f24a893b921fa8a8a6b' \
+          'd02891c29f94ddec71993caf077d22657005a212')
+_F_desktop_name="Open Astro Menace"
+_F_desktop_icon="$pkgname.png"
+_F_desktop_categories="Game;Arcade;"
+
+build()
+{
+       #building
+       CMake_make
+
+       #installing datas
+       Fmkdir usr/share/games/openastromenace/DATA/SCRIPT
+       Finstall 755 DATA/SCRIPT/* usr/share/games/$pkgname/DATA/SCRIPT
+       Finstall 755 gamedata.vfs usr/share/games/$pkgname
+
+       #installing languages files
+       Fmkdir usr/share/games/$pkgname
+       Finstall 755 gamelang_en.vfs /usr/share/games/$pkgname
+       Finstall 755 gamelang_de.vfs /usr/share/games/$pkgname
+       Finstall 755 gamelang_ru.vfs /usr/share/games/$pkgname
+
+       #desktop stuff
+       Ficon $pkgname.png
+       Fmkdir usr/share/games/$pkgname
+       Finstallrel 755 AstroMenace usr/share/games/$pkgname
+       Fwrapper "cd /usr/share/games/openastromenace && ./AstroMenace" $pkgname
+       Fdesktop2
+}
+# optimization OK
diff --git 
a/source/games-extra/openastromenace/openastromenace-1.2.0-cmake.patch 
b/source/games-extra/openastromenace/openastromenace-1.2.0-cmake.patch
new file mode 100755
index 0000000..88096fb
--- /dev/null
+++ b/source/games-extra/openastromenace/openastromenace-1.2.0-cmake.patch
@@ -0,0 +1,23 @@
+Submitted By: <From a patch of Gentoo>
+Upstream Status: 
<http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/openastromenace/files/openastromenace-1.2.0-cmake.patch?view=markup>
+Description: <Fix build errors with cmake 2.6>
+
+--- CMakeLists.txt     2008/02/15 09:55:15     33
++++ CMakeLists.txt     2008/05/19 08:11:36     36
+
+@@ -43,9 +45,12 @@
+  IF(DEFINED DATADIR)
+       ADD_DEFINITIONS(-DDATADIR=\\"${DATADIR}\\")
+  ENDIF(DEFINED DATADIR)
+- ADD_DEFINITIONS(`${SDL_CONFIG} --cflags` -Wall)
++ EXEC_PROGRAM(${SDL_CONFIG} ARGS "--cflags" OUTPUT_VARIABLE SDL_CFLAGS)
++ EXEC_PROGRAM(${SDL_CONFIG} ARGS "--libs" OUTPUT_VARIABLE SDL_LIBS)
++
++ ADD_DEFINITIONS(${SDL_CFLAGS})
+  ADD_EXECUTABLE(AstroMenace ${astromenace_SRCS})
+- TARGET_LINK_LIBRARIES(AstroMenace `${SDL_CONFIG} --libs` 
${OPENGL_gl_LIBRARY} ${OPENAL_LIBRARY} ${JPEG_LIBRARY} ${GLU_LIBRARY} -lalut 
-lvorbis -lvorbisfile)
++ TARGET_LINK_LIBRARIES(AstroMenace ${SDL_LIBS} ${OPENGL_gl_LIBRARY} 
${OPENAL_LIBRARY} ${JPEG_LIBRARY} ${GLU_LIBRARY} -lalut -lvorbis -lvorbisfile)
+  IF(CYGWIN)
+       TARGET_LINK_LIBRARIES(AstroMenace -lGL.dll  -lGLU.dll -lglfw -lX11.dll)
+ #     ADD_DEFINITIONS(-mno-cygwin)
+
diff --git a/source/games-extra/openastromenace/openastromenace.png 
b/source/games-extra/openastromenace/openastromenace.png
new file mode 100755
index 0000000..caef2f2
Binary files /dev/null and 
b/source/games-extra/openastromenace/openastromenace.png differ
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to