[Lunar-commits] <moonbase> freedroid: add desktop file/icon&fix dependency problem with vorbis

Michael 'v4hn' Goerner v4hn at lunar-linux.org
Thu Jun 28 16:38:15 CEST 2012


commit 26fa4ce665ccc6a14296574ac588224272508981
Author: Michael 'v4hn' Goerner <v4hn at lunar-linux.org>
Date:   Thu Jun 28 16:38:15 2012 +0200

    freedroid: add desktop file/icon&fix dependency problem with vorbis
---
 games/freedroid/BUILD   |   24 +++++++++++++++++++++++-
 games/freedroid/DEPENDS |    4 ++++
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/games/freedroid/BUILD b/games/freedroid/BUILD
index 18b4aea..d3b4470 100644
--- a/games/freedroid/BUILD
+++ b/games/freedroid/BUILD
@@ -1,5 +1,27 @@
 (
 
-  default_game_build
+  #libvorbis moved the important function
+  sedit 's:vorbis:vorbisfile:' configure.ac &&
+  sedit 's:HAVE_LIBVORBIS:HAVE_LIBVORBISFILE:' src/sound.c &&
+  autoreconf . &&
+
+  default_game_build &&
+
+  bmptopnm graphics/paraicon.bmp > paraicon.pnm  &&
+  pnmtopng paraicon.pnm > $MODULE.png  &&
+  install -D -m644 $MODULE.png /usr/share/pixmaps/$MODULE.png &&
+
+  # Desktop menu entry
+  cat > $MODULE.desktop << EOF  &&
+[Desktop Entry]
+Type=Application
+Name=Freedroid
+Comment=$SHORT
+Exec=$MODULE
+Icon=$MODULE
+Categories=Game;ArcadeGame;
+EOF
+
+  install -D -m644 $MODULE.desktop /usr/share/applications/$MODULE.desktop
 
 ) > $C_FIFO 2>&1
diff --git a/games/freedroid/DEPENDS b/games/freedroid/DEPENDS
index 88f8cc7..d67e974 100644
--- a/games/freedroid/DEPENDS
+++ b/games/freedroid/DEPENDS
@@ -1,4 +1,8 @@
 depends SDL_image
 depends SDL_net
 
+#for desktop icon
+depends netpbm
+
 optional_depends "SDL_mixer" "" "" "for Audio support"
+optional_depends "libvorbis" "" "" "for the Intro theme"


More information about the Lunar-commits mailing list