aboutsummaryrefslogtreecommitdiffstats
path: root/games/openalchemist
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2008-05-17 02:59:51 +0800
committermiwi <miwi@FreeBSD.org>2008-05-17 02:59:51 +0800
commit6a7fdb6cec66ab8557a9b74e2d48cb0939d4f589 (patch)
tree542a4b28750b46395c3f2bee73a595bc7bb03d36 /games/openalchemist
parentd09a1c352ba0fea988dc3740da024b3acef36613 (diff)
downloadfreebsd-ports-gnome-6a7fdb6cec66ab8557a9b74e2d48cb0939d4f589.tar.gz
freebsd-ports-gnome-6a7fdb6cec66ab8557a9b74e2d48cb0939d4f589.tar.zst
freebsd-ports-gnome-6a7fdb6cec66ab8557a9b74e2d48cb0939d4f589.zip
- Update to 0.2.2
PR: 123277 Submitted by: Ganael Laplanche <ganael.laplanche@martymac.com> (maintainer)
Diffstat (limited to 'games/openalchemist')
-rw-r--r--games/openalchemist/Makefile7
-rw-r--r--games/openalchemist/distinfo6
-rw-r--r--games/openalchemist/files/patch-KeyboardKey.h11
-rw-r--r--games/openalchemist/files/patch-Makefile37
-rw-r--r--games/openalchemist/files/patch-game.h82
-rw-r--r--games/openalchemist/files/patch-includes-piece.h (renamed from games/openalchemist/files/patch-piece.h)0
-rw-r--r--games/openalchemist/pkg-plist9
7 files changed, 26 insertions, 126 deletions
diff --git a/games/openalchemist/Makefile b/games/openalchemist/Makefile
index ee28f04e7a21..79e2d3d7b1ea 100644
--- a/games/openalchemist/Makefile
+++ b/games/openalchemist/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= openalchemist
-PORTVERSION= 0.2
+PORTVERSION= 0.2.2
CATEGORIES= games
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
@@ -18,10 +18,11 @@ BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip
LIB_DEPENDS= clanCore-0.8:${PORTSDIR}/devel/clanlib
USE_GNOME= pkgconfig
-MAKE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}"
+MAKE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" \
+ DATADIR="${DATADIR}"
# Allow relocation of skins (by default, must be in the skins/ sub-dir)
post-patch:
- @${REINPLACE_CMD} -E -e 's|CL_System::get_exe_path\(\) \+ "skins/|"${PREFIX}/share/games/${PORTNAME}/skins/|g' ${WRKSRC}/src/*.cpp
+ @${REINPLACE_CMD} -E -e 's|CL_System::get_exe_path\(\) \+ "skins/|"${DATADIR}/skins/|g' ${WRKSRC}/src/*.cpp
.include <bsd.port.mk>
diff --git a/games/openalchemist/distinfo b/games/openalchemist/distinfo
index 92bf227bb413..42d86d7b5b60 100644
--- a/games/openalchemist/distinfo
+++ b/games/openalchemist/distinfo
@@ -1,3 +1,3 @@
-MD5 (openalchemist-0.2-src.tar.gz) = fc2ddfa6b37a6573fb262363804f0c84
-SHA256 (openalchemist-0.2-src.tar.gz) = 5b81dead3532394683a3cec3f5164543ba9fd191ad54f5c1d8329442cea89b29
-SIZE (openalchemist-0.2-src.tar.gz) = 2468509
+MD5 (openalchemist-0.2.2-src.tar.gz) = 1fe3e74e100906258396694f40a8e7cd
+SHA256 (openalchemist-0.2.2-src.tar.gz) = 11c60f4e53fe42f349fe248eea09cfa8a984ff395c533d9874d8ccbd293ec1cc
+SIZE (openalchemist-0.2.2-src.tar.gz) = 2472519
diff --git a/games/openalchemist/files/patch-KeyboardKey.h b/games/openalchemist/files/patch-KeyboardKey.h
deleted file mode 100644
index 09feb62199a1..000000000000
--- a/games/openalchemist/files/patch-KeyboardKey.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- includes/KeyboardKey.h.orig 2008-03-18 17:51:54.744835728 +0100
-+++ includes/KeyboardKey.h 2008-03-18 17:52:13.290787518 +0100
-@@ -38,7 +38,7 @@
- /**
- * Constructor
- */
-- KeyboardKey::KeyboardKey(int key, bool repeat = false)
-+ KeyboardKey(int key, bool repeat = false)
- {
- this->key = key;
- this->repeat = repeat;
diff --git a/games/openalchemist/files/patch-Makefile b/games/openalchemist/files/patch-Makefile
index be4c2f6ef8d2..81ca550e7f16 100644
--- a/games/openalchemist/files/patch-Makefile
+++ b/games/openalchemist/files/patch-Makefile
@@ -1,30 +1,23 @@
---- Makefile.orig 2006-08-13 19:18:16.000000000 +0200
-+++ Makefile 2008-03-26 19:27:29.000000000 +0100
-@@ -1,15 +1,13 @@
+--- Makefile.orig 2006-09-03 20:17:13.000000000 +0200
++++ Makefile 2008-04-30 19:57:29.216855616 +0200
+@@ -1,12 +1,10 @@
PACKAGES = clanCore-0.8 clanDisplay-0.8 clanApp-0.8 clanGL-0.8 clanSDL-0.8
-LIBS = `pkg-config --libs $(PACKAGES)`
-OPTIONS = -Iincludes -Wall -g
+LIBS = `pkg-config --libs $(PACKAGES)` $(PTHREAD_LIBS)
-+OPTIONS = -Iincludes -I/usr/local/include -Wall -g
++OPTIONS = -Iincludes -I/usr/local/include -Wall -g
LINKER_OPTIONS = #-u malloc -lefence
STATIC_LIBS = `pkg-config --libs $(PACKAGES) --static`
CFLAGS = `pkg-config --cflags $(PACKAGES)`
-INSTALL_DIR = /usr/local/games/openalchemist
-
- all: openalchemist
+ all: openalchemist skins/aqua.zip skins/brushed.zip
@echo "OK"
--
-+
- test:
- @echo "Test dependances installation"
- pkg-config --exists $(PACKAGES)
-@@ -60,20 +58,13 @@
- -rm openalchemist
- -rm skins/aqua.zip
+
+@@ -83,18 +81,11 @@
-rm skins/brushed.zip
--
-+
+
install: openalchemist
- mkdir $(INSTALL_DIR)
- mkdir $(INSTALL_DIR)/skins
@@ -37,12 +30,12 @@
- rm $(INSTALL_DIR)/* -R
- rmdir $(INSTALL_DIR)
- rm /usr/local/bin/openalchemist
--
-+ mkdir -p $(PREFIX)/bin
-+ mkdir -p $(PREFIX)/share/games/openalchemist/skins
-+ cp openalchemist $(PREFIX)/bin/
-+ cp skins/aqua.zip $(PREFIX)/share/games/openalchemist/skins/aqua.zip
-+ cp skins/brushed.zip $(PREFIX)/share/games/openalchemist/skins/brushed.zip
+-
++ install -d -o root -g wheel -m 755 $(PREFIX)/bin
++ install -d -o root -g wheel -m 755 $(DATADIR)/skins
++ install -s -o root -g wheel -m 555 openalchemist $(PREFIX)/bin/
++ install -o root -g wheel -m 444 skins/aqua.zip $(DATADIR)/skins/aqua.zip
++ install -o root -g wheel -m 444 skins/brushed.zip $(DATADIR)/skins/brushed.zip
- static: includes/*.h bin/main.o bin/game.o bin/key_events.o bin/detect_to_destroy.o bin/detect_to_fall.o bin/drawing.o bin/hightscores.o bin/pause.o bin/preferences.o bin/skins-selector.o skins/aqua.zip skins/brushed.zip
+ static: includes/*.h bin/misc.o bin/main.o bin/game.o bin/key_events.o bin/detect_to_destroy.o bin/detect_to_fall.o bin/drawing.o bin/hightscores.o bin/pause.o bin/preferences.o bin/skins-selector.o skins/aqua.zip skins/brushed.zip
@echo "On assemble le fichier final"
diff --git a/games/openalchemist/files/patch-game.h b/games/openalchemist/files/patch-game.h
deleted file mode 100644
index e01c655c3aba..000000000000
--- a/games/openalchemist/files/patch-game.h
+++ /dev/null
@@ -1,82 +0,0 @@
---- includes/game.h.orig 2008-03-18 17:50:34.816043102 +0100
-+++ includes/game.h 2008-03-18 17:50:57.531984095 +0100
-@@ -219,47 +219,47 @@
- public:
-
- //Constructor
-- Game::Game(CL_DisplayWindow *window, bool opengl);
-+ Game(CL_DisplayWindow *window, bool opengl);
- //Destructor
-- Game::~Game();
-+ ~Game();
-
- // Some methods
-- void Game::choose_skin();
-- void Game::load_gfx();
-- void Game::unload_gfx();
-- void Game::toggle_screen();
-- void Game::main_loop();
-+ void choose_skin();
-+ void load_gfx();
-+ void unload_gfx();
-+ void toggle_screen();
-+ void main_loop();
-
- // Methods to draw the game
-- void Game::draw_game();
-- void Game::draw_playing();
-- void Game::draw_falling();
-- void Game::draw_destroying();
-- void Game::draw_to_playing();
-- void Game::draw_game_over();
-- void Game::draw_new_hightscore();
-- void Game::draw_pause();
-+ void draw_game();
-+ void draw_playing();
-+ void draw_falling();
-+ void draw_destroying();
-+ void draw_to_playing();
-+ void draw_game_over();
-+ void draw_new_hightscore();
-+ void draw_pause();
-
-- void Game::draw_progress_bar();
-- void Game::draw_skins_selector();
-+ void draw_progress_bar();
-+ void draw_skins_selector();
-
-- void Game::calc_score();
-+ void calc_score();
-
-- void Game::load_preferences();
-- void Game::save_preferences();
-- void Game::read_scores();
-- void Game::save_scores();
-- void Game::key_events();
-- void Game::key_events_playing();
-- void Game::key_events_pause();
-- void Game::key_events_skins_selector();
-- void Game::undo_last();
-- void Game::new_game(short difficulty);
-- void Game::fall();
-- void Game::detect_to_destroy();
-- void Game::detect_to_fall();
-+ void load_preferences();
-+ void save_preferences();
-+ void read_scores();
-+ void save_scores();
-+ void key_events();
-+ void key_events_playing();
-+ void key_events_pause();
-+ void key_events_skins_selector();
-+ void undo_last();
-+ void new_game(short difficulty);
-+ void fall();
-+ void detect_to_destroy();
-+ void detect_to_fall();
-
-- void Game::stop();
-+ void stop();
-
- };
-
diff --git a/games/openalchemist/files/patch-piece.h b/games/openalchemist/files/patch-includes-piece.h
index df77222a0af5..df77222a0af5 100644
--- a/games/openalchemist/files/patch-piece.h
+++ b/games/openalchemist/files/patch-includes-piece.h
diff --git a/games/openalchemist/pkg-plist b/games/openalchemist/pkg-plist
index f224fe4cf4ba..af306d6a8e65 100644
--- a/games/openalchemist/pkg-plist
+++ b/games/openalchemist/pkg-plist
@@ -1,6 +1,5 @@
bin/openalchemist
-share/games/openalchemist/skins/aqua.zip
-share/games/openalchemist/skins/brushed.zip
-@dirrm share/games/openalchemist/skins
-@dirrm share/games/openalchemist
-@dirrmtry share/games
+%%DATADIR%%/skins/aqua.zip
+%%DATADIR%%/skins/brushed.zip
+@dirrm %%DATADIR%%/skins
+@dirrm %%DATADIR%%