- update to castle-combat-0.8.1
This commit is contained in:
parent
fc84584951
commit
fd8e570f6e
@ -1,9 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.12 2007/09/15 18:01:01 simon Exp $
|
||||
# $OpenBSD: Makefile,v 1.13 2007/12/04 14:43:17 ajacoutot Exp $
|
||||
|
||||
COMMENT= Rampart arcade game clone for X11
|
||||
|
||||
VERSION= 0.7.2
|
||||
DISTNAME= castle-combat-${VERSION}
|
||||
DISTNAME= castle-combat-0.8.1
|
||||
CATEGORIES= games x11
|
||||
|
||||
HOMEPAGE= http://www.linux-games.com/castle-combat/
|
||||
@ -13,19 +12,40 @@ PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
WANTLIB= X11 Xext c m pthread usbhid z
|
||||
|
||||
LIB_DEPENDS= SDL::devel/sdl \
|
||||
SDL_mixer::devel/sdl-mixer \
|
||||
SDL_net::devel/sdl-net \
|
||||
png.>=2::graphics/png
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=castle-combat/}
|
||||
|
||||
MASTER_SITES= http://user.cs.tu-berlin.de/~karlb/castle-combat/
|
||||
MODULES= lang/python
|
||||
|
||||
USE_X11= Yes
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ARGS+= --with-png
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/libpng -I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
RUN_DEPENDS= ::devel/pygame \
|
||||
::devel/py-twisted/core
|
||||
|
||||
NO_BUILD= Yes
|
||||
NO_REGRESS= Yes
|
||||
|
||||
pre-configure:
|
||||
@perl -pi -e 's,!!MODPY_BIN!!,${MODPY_BIN},g' \
|
||||
${WRKSRC}/castle-combat.py
|
||||
@perl -pi -e 's,!!PREFIX!!,${PREFIX},g' \
|
||||
${WRKSRC}/castle-combat.py \
|
||||
${WRKSRC}/src/common.py \
|
||||
${WRKSRC}/src/menu.py
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/castle-combat/{gfx,sound,src}
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/castle-combat
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/castle-combat.py \
|
||||
${PREFIX}/bin/castle-combat
|
||||
${INSTALL_DATA} ${WRKSRC}/data/colourba.ttf \
|
||||
${PREFIX}/share/castle-combat
|
||||
${INSTALL_DATA} ${WRKSRC}/src/*.py \
|
||||
${PREFIX}/share/castle-combat/src
|
||||
${INSTALL_DATA} ${WRKSRC}/data/gfx/* \
|
||||
${PREFIX}/share/castle-combat/gfx
|
||||
${INSTALL_DATA} ${WRKSRC}/data/sound/* \
|
||||
${PREFIX}/share/castle-combat/sound
|
||||
${INSTALL_DATA} ${WRKSRC}/data/doc/rules.html \
|
||||
${WRKSRC}/data/font_read_me.html \
|
||||
${PREFIX}/share/doc/castle-combat
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,5 +1,5 @@
|
||||
MD5 (castle-combat-0.7.2.tar.gz) = LDGaEbZBSR17h0ceLX6law==
|
||||
RMD160 (castle-combat-0.7.2.tar.gz) = Xf+a92DnRieSkX75FTH+2Z9o8BQ=
|
||||
SHA1 (castle-combat-0.7.2.tar.gz) = gAfZV3cBh06SDLB5mpX1cvXaVuw=
|
||||
SHA256 (castle-combat-0.7.2.tar.gz) = V75rmu2v23m/077th7g7LYHeapFvfrGdczUZgGn6ktY=
|
||||
SIZE (castle-combat-0.7.2.tar.gz) = 1671462
|
||||
MD5 (castle-combat-0.8.1.tar.gz) = YzgOn8PU2d54CzzFLIIupg==
|
||||
RMD160 (castle-combat-0.8.1.tar.gz) = SEqkINXlcd7jjHkH5u9hIE4Ic90=
|
||||
SHA1 (castle-combat-0.8.1.tar.gz) = VjRZMgfJZ2vddZp+5h6w9A7bxRA=
|
||||
SHA256 (castle-combat-0.8.1.tar.gz) = M+78FAI2OnexoC3TPMONFMmXp4q4EUjISxIh+Vrx5MI=
|
||||
SIZE (castle-combat-0.8.1.tar.gz) = 1721393
|
||||
|
14
games/castle-combat/patches/patch-castle-combat_py
Normal file
14
games/castle-combat/patches/patch-castle-combat_py
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-castle-combat_py,v 1.1 2007/12/04 14:43:17 ajacoutot Exp $
|
||||
--- castle-combat.py.orig Sun Jan 9 19:04:37 2005
|
||||
+++ castle-combat.py Tue Dec 4 15:24:18 2007
|
||||
@@ -1,8 +1,6 @@
|
||||
-#!/usr/bin/python
|
||||
+#!!!MODPY_BIN!!
|
||||
import sys
|
||||
-sys.path.append('src')
|
||||
-
|
||||
-print "Castle-Combat requires pygame and twisted. If the game doesn't start up correctly, please verify that these are installed."
|
||||
+sys.path.append('!!PREFIX!!/share/castle-combat/src')
|
||||
|
||||
import main
|
||||
main.main()
|
@ -1,28 +0,0 @@
|
||||
$OpenBSD: patch-configure,v 1.1 2003/03/06 01:09:28 pvalchev Exp $
|
||||
--- configure.orig Wed Mar 5 17:58:58 2003
|
||||
+++ configure Wed Mar 5 17:58:51 2003
|
||||
@@ -2033,7 +2033,7 @@ fi
|
||||
|
||||
######## Set compiler flags and libraries
|
||||
CFLAGS="$CFLAGS $SDL_CFLAGS -DDATADIR=\"\\\"$datadir/castle-combat\\\"\" -Wall"
|
||||
-LIBS="-LSDL_net -lSDL_net $SDL_LIBS $LIBS $INETLIB"
|
||||
+LIBS="-lSDL_net $SDL_LIBS $LIBS $INETLIB"
|
||||
|
||||
|
||||
|
||||
@@ -2154,7 +2154,6 @@ ac_given_INSTALL="$INSTALL"
|
||||
trap 'rm -fr `echo "
|
||||
Makefile
|
||||
src/Makefile
|
||||
-src/SDL_net/Makefile
|
||||
data/Makefile
|
||||
data/gfx/Makefile
|
||||
data/sound/Makefile
|
||||
@@ -2274,7 +2273,6 @@ cat >> $CONFIG_STATUS <<EOF
|
||||
|
||||
CONFIG_FILES=\${CONFIG_FILES-"Makefile
|
||||
src/Makefile
|
||||
-src/SDL_net/Makefile
|
||||
data/Makefile
|
||||
data/gfx/Makefile
|
||||
data/sound/Makefile
|
12
games/castle-combat/patches/patch-data_doc_rules_html
Normal file
12
games/castle-combat/patches/patch-data_doc_rules_html
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-data_doc_rules_html,v 1.1 2007/12/04 14:43:17 ajacoutot Exp $
|
||||
--- data/doc/rules.html.orig Tue Dec 4 15:21:32 2007
|
||||
+++ data/doc/rules.html Tue Dec 4 15:21:47 2007
|
||||
@@ -64,7 +64,7 @@
|
||||
<p>
|
||||
Coding and Graphics: <a href="mailto:karlb@gmx.net">Karl Bartel</a> (comments are always welcome)<br/>
|
||||
Music: Crystal Crew<br/>
|
||||
- Fonts: <a href="http://larabiefonts.com">Larabie Fonts</a> (<a href="../font_read_me.html">font readme</a>)<br/>
|
||||
+ Fonts: <a href="http://larabiefonts.com">Larabie Fonts</a> (<a href="font_read_me.html">font readme</a>)<br/>
|
||||
</p>
|
||||
<h2>Links</h2>
|
||||
<p>
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-src_Makefile_in,v 1.1 2003/03/06 01:09:28 pvalchev Exp $
|
||||
--- src/Makefile.in.orig Wed Mar 5 18:01:41 2003
|
||||
+++ src/Makefile.in Wed Mar 5 18:01:30 2003
|
||||
@@ -77,7 +77,7 @@ install_sh = @install_sh@
|
||||
|
||||
bin_PROGRAMS = castle-combat castle-combat-server
|
||||
|
||||
-SUBDIRS = SDL_net
|
||||
+SUBDIRS =
|
||||
|
||||
castle_combat_LDADD = -lz -lpng @SOUND@
|
||||
|
12
games/castle-combat/patches/patch-src_common_py
Normal file
12
games/castle-combat/patches/patch-src_common_py
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_common_py,v 1.1 2007/12/04 14:43:17 ajacoutot Exp $
|
||||
--- src/common.py.orig Tue Dec 4 14:12:03 2007
|
||||
+++ src/common.py Tue Dec 4 14:12:34 2007
|
||||
@@ -10,7 +10,7 @@ screen_undraws = []
|
||||
block_size = 20
|
||||
field_size = array((40, 30))
|
||||
#data_path = "../data"
|
||||
-data_path = "data"
|
||||
+data_path = "!!PREFIX!!/share/castle-combat"
|
||||
|
||||
###### Exceptions ######
|
||||
|
@ -1,13 +0,0 @@
|
||||
$OpenBSD: patch-src_main_c,v 1.1 2003/03/06 01:09:28 pvalchev Exp $
|
||||
--- src/main.c.orig Wed Mar 6 07:05:39 2002
|
||||
+++ src/main.c Wed Mar 5 18:02:28 2003
|
||||
@@ -24,8 +24,8 @@
|
||||
#include "main.h"
|
||||
#include "options.h"
|
||||
#include "time.h"
|
||||
-#include "SDL_net/SDL_net.h"
|
||||
#include "server.h"
|
||||
+#include <SDL/SDL_net.h>
|
||||
|
||||
int fullscreen=1, CityDestroyed[6]={0,0,0,0,0,0},
|
||||
CannonDestroyed[3]={0,0,0}, Score=0, HWCursor=0, NetworkOpen=0;
|
12
games/castle-combat/patches/patch-src_menu_py
Normal file
12
games/castle-combat/patches/patch-src_menu_py
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_menu_py,v 1.1 2007/12/04 14:43:17 ajacoutot Exp $
|
||||
--- src/menu.py.orig Tue Dec 4 15:19:36 2007
|
||||
+++ src/menu.py Tue Dec 4 15:20:12 2007
|
||||
@@ -132,7 +132,7 @@ class MenuState(WidgetState):
|
||||
def help():
|
||||
from webbrowser import open
|
||||
from os.path import abspath
|
||||
- file = "file://" + abspath("data/doc/rules.html")
|
||||
+ file = "file://" + abspath("!!PREFIX!!/share/doc/castle-combat/rules.html")
|
||||
print file
|
||||
open(file, new=True)
|
||||
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-src_net_c,v 1.1 2003/03/06 01:09:28 pvalchev Exp $
|
||||
--- src/net.c.orig Wed Mar 6 10:17:42 2002
|
||||
+++ src/net.c Wed Mar 5 18:02:41 2003
|
||||
@@ -1,7 +1,7 @@
|
||||
-#include "SDL_net/SDL_net.h"
|
||||
#include "main.h"
|
||||
#include "server.h"
|
||||
#include "string.h"
|
||||
+#include <SDL/SDL_net.h>
|
||||
|
||||
static TCPsocket tcpsock = NULL;
|
||||
static SDLNet_SocketSet socketset = NULL;
|
@ -1,9 +1,10 @@
|
||||
@comment $OpenBSD: PLIST,v 1.2 2004/09/15 00:46:08 espie Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.3 2007/12/04 14:43:17 ajacoutot Exp $
|
||||
bin/castle-combat
|
||||
bin/castle-combat-server
|
||||
share/castle-combat/
|
||||
share/castle-combat/colourba.ttf
|
||||
share/castle-combat/gfx/
|
||||
share/castle-combat/gfx/Font.png
|
||||
share/castle-combat/gfx/arrow.png
|
||||
share/castle-combat/gfx/back.jpg
|
||||
share/castle-combat/gfx/back.png
|
||||
share/castle-combat/gfx/bigcannon0001.png
|
||||
share/castle-combat/gfx/bigcannon0002.png
|
||||
@ -36,6 +37,7 @@ share/castle-combat/gfx/bigcannon0028.png
|
||||
share/castle-combat/gfx/bigcannon0029.png
|
||||
share/castle-combat/gfx/bigcannon0030.png
|
||||
share/castle-combat/gfx/bigcastle.png
|
||||
share/castle-combat/gfx/box.png
|
||||
share/castle-combat/gfx/cannon0001.png
|
||||
share/castle-combat/gfx/cannon0002.png
|
||||
share/castle-combat/gfx/cannon0003.png
|
||||
@ -80,9 +82,11 @@ share/castle-combat/gfx/destroyed-cannon2.png
|
||||
share/castle-combat/gfx/destroyed-cannon3.png
|
||||
share/castle-combat/gfx/destroyed-cannon4.png
|
||||
share/castle-combat/gfx/destroyed-cannon5.png
|
||||
share/castle-combat/gfx/garbage-med.png
|
||||
share/castle-combat/gfx/garbage-new.png
|
||||
share/castle-combat/gfx/garbage-old.png
|
||||
share/castle-combat/gfx/garbage.png
|
||||
share/castle-combat/gfx/gradient.png
|
||||
share/castle-combat/gfx/gradient.xcf
|
||||
share/castle-combat/gfx/ground.png
|
||||
share/castle-combat/gfx/house.png
|
||||
share/castle-combat/gfx/land.png
|
||||
@ -97,7 +101,33 @@ share/castle-combat/gfx/waitblock.png
|
||||
share/castle-combat/gfx/wall.png
|
||||
share/castle-combat/gfx/water.png
|
||||
share/castle-combat/sound/
|
||||
share/castle-combat/sound/FARMOR8.XM
|
||||
share/castle-combat/sound/FDREAM.XM
|
||||
share/castle-combat/sound/cannon.wav
|
||||
share/castle-combat/sound/drop.wav
|
||||
share/castle-combat/sound/farmor8.xm
|
||||
share/castle-combat/sound/fdream.xm
|
||||
share/castle-combat/src/
|
||||
share/castle-combat/src/ai.py
|
||||
share/castle-combat/src/battleplayer.py
|
||||
share/castle-combat/src/buildplayer.py
|
||||
share/castle-combat/src/cannon.py
|
||||
share/castle-combat/src/castle-combat_bootstrap.py
|
||||
share/castle-combat/src/client.py
|
||||
share/castle-combat/src/common.py
|
||||
share/castle-combat/src/config.py
|
||||
share/castle-combat/src/field.py
|
||||
share/castle-combat/src/game.py
|
||||
share/castle-combat/src/gamephases.py
|
||||
share/castle-combat/src/main.py
|
||||
share/castle-combat/src/map.py
|
||||
share/castle-combat/src/menu.py
|
||||
share/castle-combat/src/network.py
|
||||
share/castle-combat/src/placeplayer.py
|
||||
share/castle-combat/src/player.py
|
||||
share/castle-combat/src/selectplayer.py
|
||||
share/castle-combat/src/server.py
|
||||
share/castle-combat/src/sound.py
|
||||
share/castle-combat/src/state.py
|
||||
share/castle-combat/src/widget.py
|
||||
share/doc/castle-combat/
|
||||
share/doc/castle-combat/font_read_me.html
|
||||
share/doc/castle-combat/rules.html
|
||||
|
Loading…
x
Reference in New Issue
Block a user