aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoraz <az@FreeBSD.org>2005-10-04 20:07:06 +0800
committeraz <az@FreeBSD.org>2005-10-04 20:07:06 +0800
commit2cd5b1b219c88489ac73f45f9356ebbcc794eec1 (patch)
treeacf1f6ed22fd18c69682af4d2ce4414473337f53 /games
parenta1d264825625e3a44c157f1cfc8f601e5714bb50 (diff)
downloadfreebsd-ports-gnome-2cd5b1b219c88489ac73f45f9356ebbcc794eec1.tar.gz
freebsd-ports-gnome-2cd5b1b219c88489ac73f45f9356ebbcc794eec1.tar.zst
freebsd-ports-gnome-2cd5b1b219c88489ac73f45f9356ebbcc794eec1.zip
Biloba is a turn-based game for 2 to 4 players.
PR: ports/86846 Submitted by: Dmitry Marakasov <amdmi3@mail.ru> Approved by: sem (mentor)
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/biloba/Makefile27
-rw-r--r--games/biloba/distinfo2
-rw-r--r--games/biloba/files/patch-src-keyboard.c12
-rw-r--r--games/biloba/files/patch-src-player.c18
-rw-r--r--games/biloba/files/patch-src-util.c10
-rw-r--r--games/biloba/pkg-descr11
-rw-r--r--games/biloba/pkg-plist108
8 files changed, 189 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 9c921f40cb52..9dbdb083b5c1 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -52,6 +52,7 @@
SUBDIR += bastet
SUBDIR += battalion
SUBDIR += battleball
+ SUBDIR += biloba
SUBDIR += biorythm
SUBDIR += blackjack
SUBDIR += blobwars
diff --git a/games/biloba/Makefile b/games/biloba/Makefile
new file mode 100644
index 000000000000..896cf4a083f9
--- /dev/null
+++ b/games/biloba/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: biloba
+# Date created: 02 Oct 2005
+# Whom: Dmitry Marakasov <amdmi3@mail.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= biloba
+PORTVERSION= 0.3
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= amdmi3@mail.ru
+COMMENT= A strategy board game for 2 to 4 players
+
+USE_SDL= image sdl
+USE_GMAKE= yes
+USE_REINPLACE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \
+ ${WRKSRC}/src/Makefile.server
+
+.include <bsd.port.mk>
diff --git a/games/biloba/distinfo b/games/biloba/distinfo
new file mode 100644
index 000000000000..055b1db3bd24
--- /dev/null
+++ b/games/biloba/distinfo
@@ -0,0 +1,2 @@
+MD5 (biloba-0.3.tar.gz) = a2d1d989b8de7d430fc0d0db0ce51df4
+SIZE (biloba-0.3.tar.gz) = 1406467
diff --git a/games/biloba/files/patch-src-keyboard.c b/games/biloba/files/patch-src-keyboard.c
new file mode 100644
index 000000000000..0e045cb25064
--- /dev/null
+++ b/games/biloba/files/patch-src-keyboard.c
@@ -0,0 +1,12 @@
+--- src/keyboard.c.orig Fri Sep 23 15:45:22 2005
++++ src/keyboard.c Mon Oct 3 03:52:28 2005
+@@ -60,8 +60,8 @@
+ int mcode = 0;
+ SDL_LockMutex(keyb_mutex);
+ if (event_list) {
+- mcode = (int)event_list->data;
+ LList *next = event_list->next;
++ mcode = (int)event_list->data;
+ free(event_list);
+ event_list = next;
+ #ifdef DEBUG
diff --git a/games/biloba/files/patch-src-player.c b/games/biloba/files/patch-src-player.c
new file mode 100644
index 000000000000..6e18b480cb68
--- /dev/null
+++ b/games/biloba/files/patch-src-player.c
@@ -0,0 +1,18 @@
+--- src/player.c.orig Fri Sep 23 19:09:02 2005
++++ src/player.c Mon Oct 3 03:53:01 2005
+@@ -259,6 +259,7 @@
+ {
+ int i;
+ char *msg;
++ char num[2] = {((int)player->color)+1+'0', 0};
+ for (i = 0; i < game_num_players(); i++) {
+ LList *pawns = pawn_get_all((PawnColor)i);
+ for (; pawns; pawns = pawns->next) {
+@@ -268,7 +269,6 @@
+ }
+ pawn_show_eaten();
+ }
+- char num[2] = {((int)player->color)+1+'0', 0};
+ if (player->name == NULL) {
+ msg = malloc(strlen(get_msg(M_PLAYER_LEAVES))+1);
+ strcpy(msg, get_msg(M_PLAYER));
diff --git a/games/biloba/files/patch-src-util.c b/games/biloba/files/patch-src-util.c
new file mode 100644
index 000000000000..f87dc193739a
--- /dev/null
+++ b/games/biloba/files/patch-src-util.c
@@ -0,0 +1,10 @@
+--- src/utils.c.orig Sat Sep 24 23:02:41 2005
++++ src/utils.c Sun Oct 2 23:53:53 2005
+@@ -239,7 +239,6 @@
+ }
+ #endif
+
+-#define DEBUG_IMG_LOAD
+ static SDL_Surface *load_image_prefix(const char *prefix, const char *name)
+ {
+ SDL_Surface *surface = NULL;
diff --git a/games/biloba/pkg-descr b/games/biloba/pkg-descr
new file mode 100644
index 000000000000..496d5cbc17a4
--- /dev/null
+++ b/games/biloba/pkg-descr
@@ -0,0 +1,11 @@
+Biloba is a turn-based game for 2 to 4 players. Each player moves
+pawns on a hexagonal board and attempts to eliminate opponents'
+pawns. Biloba includes an AI opponent, and supports local or network
+play.
+
+WWW: http://sourceforge.net/projects/biloba
+
+Biloba homepage, in French:
+WWW: http://perso.wanadoo.fr/biloba
+
+- Dmitry Marakasov <amdmi3@mail.ru>
diff --git a/games/biloba/pkg-plist b/games/biloba/pkg-plist
new file mode 100644
index 000000000000..a24a59628208
--- /dev/null
+++ b/games/biloba/pkg-plist
@@ -0,0 +1,108 @@
+bin/biloba
+%%DATADIR%%/en/2play.png
+%%DATADIR%%/en/3play.png
+%%DATADIR%%/en/4play.png
+%%DATADIR%%/en/aide1.png
+%%DATADIR%%/en/aide2.png
+%%DATADIR%%/en/aide3.png
+%%DATADIR%%/en/aide4.png
+%%DATADIR%%/en/aide5.png
+%%DATADIR%%/en/aide6.png
+%%DATADIR%%/en/arrow-down-left.png
+%%DATADIR%%/en/arrow-down.png
+%%DATADIR%%/en/arrow-down-right.png
+%%DATADIR%%/en/arrow-left.png
+%%DATADIR%%/en/arrow-right.png
+%%DATADIR%%/en/arrow-up-left.png
+%%DATADIR%%/en/arrow-up.png
+%%DATADIR%%/en/arrow-up-right.png
+%%DATADIR%%/en/biloba-title.png
+%%DATADIR%%/en/black-highlighter.png
+%%DATADIR%%/en/border.png
+%%DATADIR%%/en/fr.png
+%%DATADIR%%/en/computer.png
+%%DATADIR%%/en/create-game.png
+%%DATADIR%%/en/cursor.png
+%%DATADIR%%/en/demo.png
+%%DATADIR%%/en/empty_200_40.png
+%%DATADIR%%/en/empty_200_50.png
+%%DATADIR%%/en/empty_40_40.png
+%%DATADIR%%/en/font.png
+%%DATADIR%%/en/game-name.png
+%%DATADIR%%/en/help.png
+%%DATADIR%%/en/highlighter.png
+%%DATADIR%%/en/join-game.png
+%%DATADIR%%/en/local.png
+%%DATADIR%%/en/network-games.png
+%%DATADIR%%/en/nplay.png
+%%DATADIR%%/en/pawn-blue.png
+%%DATADIR%%/en/pawn-green.png
+%%DATADIR%%/en/pawn-highlighter.png
+%%DATADIR%%/en/pawn-orange.png
+%%DATADIR%%/en/pawn-red.png
+%%DATADIR%%/en/player.png
+%%DATADIR%%/en/en.png
+%%DATADIR%%/en/reseau.png
+%%DATADIR%%/en/start.png
+%%DATADIR%%/en/tile-center.png
+%%DATADIR%%/en/tile-down-left.png
+%%DATADIR%%/en/tile-down-right.png
+%%DATADIR%%/en/tile-no-tile.png
+%%DATADIR%%/en/tile.png
+%%DATADIR%%/en/tile-up-left.png
+%%DATADIR%%/en/tile-up-right.png
+%%DATADIR%%/fr/2play.png
+%%DATADIR%%/fr/3play.png
+%%DATADIR%%/fr/4play.png
+%%DATADIR%%/fr/aide1.png
+%%DATADIR%%/fr/aide2.png
+%%DATADIR%%/fr/aide3.png
+%%DATADIR%%/fr/aide4.png
+%%DATADIR%%/fr/aide5.png
+%%DATADIR%%/fr/aide6.png
+%%DATADIR%%/fr/arrow-down-left.png
+%%DATADIR%%/fr/arrow-down.png
+%%DATADIR%%/fr/arrow-down-right.png
+%%DATADIR%%/fr/arrow-left.png
+%%DATADIR%%/fr/arrow-right.png
+%%DATADIR%%/fr/arrow-up-left.png
+%%DATADIR%%/fr/arrow-up.png
+%%DATADIR%%/fr/arrow-up-right.png
+%%DATADIR%%/fr/biloba-title.png
+%%DATADIR%%/fr/black-highlighter.png
+%%DATADIR%%/fr/border.png
+%%DATADIR%%/fr/fr.png
+%%DATADIR%%/fr/computer.png
+%%DATADIR%%/fr/create-game.png
+%%DATADIR%%/fr/cursor.png
+%%DATADIR%%/fr/demo.png
+%%DATADIR%%/fr/empty_200_40.png
+%%DATADIR%%/fr/empty_200_50.png
+%%DATADIR%%/fr/empty_40_40.png
+%%DATADIR%%/fr/font.png
+%%DATADIR%%/fr/game-name.png
+%%DATADIR%%/fr/help.png
+%%DATADIR%%/fr/highlighter.png
+%%DATADIR%%/fr/join-game.png
+%%DATADIR%%/fr/local.png
+%%DATADIR%%/fr/network-games.png
+%%DATADIR%%/fr/nplay.png
+%%DATADIR%%/fr/pawn-blue.png
+%%DATADIR%%/fr/pawn-green.png
+%%DATADIR%%/fr/pawn-highlighter.png
+%%DATADIR%%/fr/pawn-orange.png
+%%DATADIR%%/fr/pawn-red.png
+%%DATADIR%%/fr/player.png
+%%DATADIR%%/fr/en.png
+%%DATADIR%%/fr/reseau.png
+%%DATADIR%%/fr/start.png
+%%DATADIR%%/fr/tile-center.png
+%%DATADIR%%/fr/tile-down-left.png
+%%DATADIR%%/fr/tile-down-right.png
+%%DATADIR%%/fr/tile-no-tile.png
+%%DATADIR%%/fr/tile.png
+%%DATADIR%%/fr/tile-up-left.png
+%%DATADIR%%/fr/tile-up-right.png
+@dirrm %%DATADIR%%/en
+@dirrm %%DATADIR%%/fr
+@dirrm %%DATADIR%%