mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
- Update to 0.2.2
PR: 123277 Submitted by: Ganael Laplanche <ganael.laplanche@martymac.com> (maintainer)
This commit is contained in:
parent
1d28e396f4
commit
1b00179852
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=213160
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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;
|
@ -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"
|
||||
|
@ -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();
|
||||
|
||||
};
|
||||
|
@ -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%%
|
||||
|
Loading…
Reference in New Issue
Block a user