diff --git a/games/xscorch/Makefile b/games/xscorch/Makefile new file mode 100644 index 00000000000..11ef29d58a5 --- /dev/null +++ b/games/xscorch/Makefile @@ -0,0 +1,38 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2007/06/06 19:32:25 jasper Exp $ + +COMMENT= Scorced Earth-clone + +DISTNAME= xscorch-0.2.0 +CATEGORIES= games + +HOMEPAGE= http://www.xscorch.org/ + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes +WANTLIB= X11 Xau Xdmcp Xext Xi c glib gmodule iconv intl m + +MASTER_SITES= ${HOMEPAGE}/releases/ +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ + xscorch-0.2.0-64bit.patch.gz \ + xscorch-0.2.0-stack-smash.patch.gz + +LIB_DEPENDS= mikmod::audio/libmikmod \ + gtk.>=1.2,gdk.>=1.2::x11/gtk+ + +USE_X11= Yes +USE_LIBTOOL= Yes + +CONFIGURE_STYLE= gnu +CONFIGURE_ARGS+= --with-x \ + --with-gtk \ + --without-gnome + +post-extract: + cd ${WRKSRC} && patch < ${WRKDIR}/xscorch-0.2.0-64bit.patch + cd ${WRKSRC} && patch < ${WRKDIR}/xscorch-0.2.0-stack-smash.patch + find ${WRKDIST} -name \*.orig -print0 | xargs -0 rm + +.include diff --git a/games/xscorch/distinfo b/games/xscorch/distinfo new file mode 100644 index 00000000000..52b732007d2 --- /dev/null +++ b/games/xscorch/distinfo @@ -0,0 +1,15 @@ +MD5 (xscorch-0.2.0-64bit.patch.gz) = AMa15naDrIViSIVHZZpy8w== +MD5 (xscorch-0.2.0-stack-smash.patch.gz) = Q89iKeDwNMI1gF7IpU5nGA== +MD5 (xscorch-0.2.0.tar.gz) = QoYtveHQ6/h74w9+BEYqZg== +RMD160 (xscorch-0.2.0-64bit.patch.gz) = KX/XmjQXqGqW3r02wNXDuxqax4k= +RMD160 (xscorch-0.2.0-stack-smash.patch.gz) = /93wBXxI/TcumdMWCTsYc10KSyY= +RMD160 (xscorch-0.2.0.tar.gz) = JDqX6q3Wspw1TG4P5nkFXAzbU+I= +SHA1 (xscorch-0.2.0-64bit.patch.gz) = SxCfDbvsDSFpQ+j7lu2fLvTjmrk= +SHA1 (xscorch-0.2.0-stack-smash.patch.gz) = yPou/sx8mfI9McNv4Ld9WkDpxqk= +SHA1 (xscorch-0.2.0.tar.gz) = ttNuK2jobh+CjRMSv3eJr9QIU4Y= +SHA256 (xscorch-0.2.0-64bit.patch.gz) = IMC+xBkHu7Vgqai96pVTwuiXK2zbfkWt5pt60QLkaXA= +SHA256 (xscorch-0.2.0-stack-smash.patch.gz) = qjjNUZG2iHdxjsdyEMEw0y+AyfSjz3cL13Orj7iCSUg= +SHA256 (xscorch-0.2.0.tar.gz) = +R69rz0Ry1aB0bzKdUD6s7AmLNC0N1eFEi/fJpzKxoo= +SIZE (xscorch-0.2.0-64bit.patch.gz) = 3122 +SIZE (xscorch-0.2.0-stack-smash.patch.gz) = 727 +SIZE (xscorch-0.2.0.tar.gz) = 818449 diff --git a/games/xscorch/patches/patch-Makefile_in b/games/xscorch/patches/patch-Makefile_in new file mode 100644 index 00000000000..01d26f67486 --- /dev/null +++ b/games/xscorch/patches/patch-Makefile_in @@ -0,0 +1,18 @@ +$OpenBSD: patch-Makefile_in,v 1.1.1.1 2007/06/06 19:32:25 jasper Exp $ +--- Makefile.in.orig Wed Jun 6 17:26:10 2007 ++++ Makefile.in Wed Jun 6 17:26:46 2007 +@@ -153,12 +153,12 @@ bin_PROGRAMS = $(GTK_PROGRAM) $(NETWORK_PROGRAM) + + xscorch_SOURCES = xscorch.c + +-xscorch_LDADD = -lm $(GTK_LIBS) $(LIBMIKMOD_LIBS) sgame/libscorch_game.a sgtk/libscorch_gtk.a sgtk/swidgets/libscorch_widget_gtk.a sai/libscorch_ai.a $(MIKMOD_LD_ADD) $(NETWORK_LD_ADD) sutil/libscorch_util.a sgame/libscorch_game.a libj/jreg/libjreg.a libj/jstr/libjstr.a ++xscorch_LDADD = -lm $(GTK_LIBS) $(LIBMIKMOD_LIBS) sgame/libscorch_game_dup.a sgtk/libscorch_gtk.a sgtk/swidgets/libscorch_widget_gtk.a sai/libscorch_ai.a $(MIKMOD_LD_ADD) $(NETWORK_LD_ADD) sutil/libscorch_util.a sgame/libscorch_game.a libj/jreg/libjreg.a libj/jstr/libjstr.a + + + xscorch_server_SOURCES = xscorch.c + +-xscorch_server_LDADD = -lm $(LIBREADLINE_LIBS) sgame/libscorch_game.a sconsole/libscorch_console.a sai/libscorch_ai.a ssound/libscorch_sound_null.a $(NETWORK_LD_ADD) sutil/libscorch_util.a sgame/libscorch_game.a libj/jreg/libjreg.a libj/jstr/libjstr.a ++xscorch_server_LDADD = -lm $(LIBREADLINE_LIBS) sgame/libscorch_game_dup.a sconsole/libscorch_console.a sai/libscorch_ai.a ssound/libscorch_sound_null.a $(NETWORK_LD_ADD) sutil/libscorch_util.a sgame/libscorch_game.a libj/jreg/libjreg.a libj/jstr/libjstr.a + + + INCLUDES = -Isgame -Isgtk diff --git a/games/xscorch/patches/patch-sgame_Makefile_in b/games/xscorch/patches/patch-sgame_Makefile_in new file mode 100644 index 00000000000..e652dd0f052 --- /dev/null +++ b/games/xscorch/patches/patch-sgame_Makefile_in @@ -0,0 +1,11 @@ +$OpenBSD: patch-sgame_Makefile_in,v 1.1.1.1 2007/06/06 19:32:25 jasper Exp $ +--- sgame/Makefile.in.orig Wed Jun 6 14:32:03 2007 ++++ sgame/Makefile.in Wed Jun 6 14:32:44 2007 +@@ -253,6 +253,7 @@ libscorch_game.a: $(libscorch_game_a_OBJECTS) $(libsco + -rm -f libscorch_game.a + $(AR) cru libscorch_game.a $(libscorch_game_a_OBJECTS) $(libscorch_game_a_LIBADD) + $(RANLIB) libscorch_game.a ++ -ln -s libscorch_game.a libscorch_game_dup.a + + tags: TAGS + diff --git a/games/xscorch/pkg/DESCR b/games/xscorch/pkg/DESCR new file mode 100644 index 00000000000..a7d2e5084a1 --- /dev/null +++ b/games/xscorch/pkg/DESCR @@ -0,0 +1,5 @@ +Xscorch is a clone of the classic DOS game, "Scorched Earth". The basic +goal is to annihilate enemy tanks using overpowered guns. Basically, you +buy weapons, you target the enemy by adjusting the angle of your turret +and firing power, and you hope to destroy their tank before they destroy +yours. diff --git a/games/xscorch/pkg/PLIST b/games/xscorch/pkg/PLIST new file mode 100644 index 00000000000..fe6091e4397 --- /dev/null +++ b/games/xscorch/pkg/PLIST @@ -0,0 +1,16 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2007/06/06 19:32:25 jasper Exp $ +bin/xscorch +bin/xscorch-server +@man man/man6/xscorch.6 +share/xscorch/ +share/xscorch/accessories.def +share/xscorch/copying.txt +share/xscorch/images/ +share/xscorch/images/xscorch-icon.xpm +share/xscorch/images/xscorch-logo.xpm +share/xscorch/profiles.def +share/xscorch/scorings.def +share/xscorch/sounds/ +share/xscorch/sounds/README +share/xscorch/weapons.def +share/xscorch/xscorch.txt