summaryrefslogtreecommitdiff
path: root/games/asc
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2003-07-13 22:23:13 +0000
committerwiz <wiz@pkgsrc.org>2003-07-13 22:23:13 +0000
commitede96e20b62f9a130c0cfecd325644e2f7641b20 (patch)
tree8e1a85378cd9f0472e1403a115a9fa77f1c422d6 /games/asc
parent33f6166a52c072ba2c70d280a3d538d5ae3a1b6f (diff)
downloadpkgsrc-ede96e20b62f9a130c0cfecd325644e2f7641b20.tar.gz
Initial import asc, Advanced Strategic Command, a turn based
strategy game in the tradition of Battle Isle.
Diffstat (limited to 'games/asc')
-rw-r--r--games/asc/DESCR3
-rw-r--r--games/asc/Makefile38
-rw-r--r--games/asc/PLIST24
-rw-r--r--games/asc/distinfo12
-rw-r--r--games/asc/patches/patch-aa28
-rw-r--r--games/asc/patches/patch-ab25
6 files changed, 130 insertions, 0 deletions
diff --git a/games/asc/DESCR b/games/asc/DESCR
new file mode 100644
index 00000000000..ebcb8c90aab
--- /dev/null
+++ b/games/asc/DESCR
@@ -0,0 +1,3 @@
+ASC is a free, turn based strategy game.
+
+It is designed in the tradition of Battle Isle from Bluebyte.
diff --git a/games/asc/Makefile b/games/asc/Makefile
new file mode 100644
index 00000000000..7d32d5cdf93
--- /dev/null
+++ b/games/asc/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/07/13 22:23:13 wiz Exp $
+#
+
+DISTNAME= asc-source-1.13.7
+PKGNAME= ${DISTNAME:S/-source//}
+WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=asc-hq/}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${AUDIO_FILES}
+
+MAINTAINER= wiz@netbsd.org
+HOMEPAGE= http://asc-hq.sourceforge.net/
+COMMENT= turn based strategy game
+
+AUDIO_FILES= frontiers.mp3 machine_wars.mp3 time_to_strike.mp3
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+
+USE_BUILDLINK2= yes
+USE_PKGLOCALEDIR= yes
+USE_LIBTOOL= yes
+USE_GMAKE= yes
+LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+GNU_CONFIGURE= yes
+
+# ../weaponguide.cpp:1205: virtual memory exhausted
+UNLIMIT_RESOURCES= datasize
+
+post-extract:
+.for fil in ${AUDIO_FILES}
+ ${CP} ${DISTDIR}/${fil} ${WRKSRC}/data/music
+.endfor
+
+.include "../../audio/SDL_mixer/buildlink2.mk"
+.include "../../devel/SDLmm/buildlink2.mk"
+.include "../../devel/smpeg/buildlink2.mk"
+.include "../../graphics/SDL_image/buildlink2.mk"
+.include "../../x11/paragui/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/asc/PLIST b/games/asc/PLIST
new file mode 100644
index 00000000000..c249d269cb9
--- /dev/null
+++ b/games/asc/PLIST
@@ -0,0 +1,24 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/07/13 22:23:13 wiz Exp $
+bin/asc
+bin/asc_bin2text
+bin/asc_demount
+bin/asc_makegfx
+bin/asc_map2pcx
+bin/asc_mapedit
+bin/asc_mount
+bin/asc_raw2pcx
+bin/asc_viewid
+bin/asc_weaponguide
+share/games/asc/asc.gfx
+share/games/asc/asc_dlg.zip
+share/games/asc/buildings.con
+share/games/asc/main.con
+share/games/asc/mk1.con
+share/games/asc/music/frontiers.mp3
+share/games/asc/music/machine_wars.mp3
+share/games/asc/music/time_to_strike.mp3
+share/games/asc/trrobj.con
+share/games/asc/trrobj2.con
+share/games/asc/units-mk3.con
+@dirrm share/games/asc/music
+@dirrm share/games/asc
diff --git a/games/asc/distinfo b/games/asc/distinfo
new file mode 100644
index 00000000000..b5788172773
--- /dev/null
+++ b/games/asc/distinfo
@@ -0,0 +1,12 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/07/13 22:23:13 wiz Exp $
+
+SHA1 (asc-source-1.13.7.tar.gz) = 5e81d4a70f2038f491cd373d5dc224686e985c4a
+Size (asc-source-1.13.7.tar.gz) = 6299655 bytes
+SHA1 (frontiers.mp3) = 7c6753fb5fe5e498fa780271da0a302c0619a1ca
+Size (frontiers.mp3) = 4407769 bytes
+SHA1 (machine_wars.mp3) = d05e92b46ae0e90d9f3b38ce9c4b41bde599a02e
+Size (machine_wars.mp3) = 2905989 bytes
+SHA1 (time_to_strike.mp3) = 76abf03155d9a21584f30c20370db0a93449c78a
+Size (time_to_strike.mp3) = 3242969 bytes
+SHA1 (patch-aa) = adc753ec07e77026a8d9c63aaa3269b66e0e215e
+SHA1 (patch-ab) = 3736415fd6f653d19dcd5098cf42c967deb9b0d7
diff --git a/games/asc/patches/patch-aa b/games/asc/patches/patch-aa
new file mode 100644
index 00000000000..bfe6579a5cf
--- /dev/null
+++ b/games/asc/patches/patch-aa
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/07/13 22:23:13 wiz Exp $
+
+--- source/ASCStringHelpers.h.orig 2002-04-05 11:25:05.000000000 +0200
++++ source/ASCStringHelpers.h
+@@ -267,9 +267,9 @@ inline ASCStringHelpers::charT* ASCStrin
+ while ( *pTemp != _T( '\0' ) )
+ {
+ #ifdef _UNICODE
+- *pTemp = ::towlower ( *pTemp );
++ *pTemp = towlower ( *pTemp );
+ #else
+- *pTemp = ::tolower ( *pTemp );
++ *pTemp = tolower ( *pTemp );
+ #endif
+
+ ++pTemp;
+@@ -311,9 +311,9 @@ inline ASCStringHelpers::charT* ASCStrin
+ while ( *pTemp != _T( '\0' ) )
+ {
+ #ifdef _UNICODE
+- *pTemp = ::towupper ( *pTemp );
++ *pTemp = towupper ( *pTemp );
+ #else
+- *pTemp = ::toupper ( *pTemp );
++ *pTemp = toupper ( *pTemp );
+ #endif
+
+ ++pTemp;
diff --git a/games/asc/patches/patch-ab b/games/asc/patches/patch-ab
new file mode 100644
index 00000000000..e1dc311b641
--- /dev/null
+++ b/games/asc/patches/patch-ab
@@ -0,0 +1,25 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/07/13 22:23:13 wiz Exp $
+
+--- source/basestrm.cpp.orig 2003-06-04 18:18:54.000000000 +0200
++++ source/basestrm.cpp
+@@ -2381,7 +2381,19 @@ void appendbackslash ( ASCString& string
+ int createDirectory ( const char* name )
+ {
+ #ifdef _UNIX_
+- return mkdir ( name, 0700 );
++ char *nname;
++ int i;
++
++ if (name == NULL || (nname=strdup(name)) == NULL)
++ return -1;
++ i = strlen(nname);
++ /* leave one '/' */
++ while (i>1 && nname[i-1] == '/')
++ nname[--i] = '\0';
++ i = mkdir ( nname, 0700 );
++ free(nname);
++
++ return i;
+ #else
+ return mkdir ( name );
+ #endif