diff options
author | daichi <daichi@FreeBSD.org> | 2003-07-14 05:27:25 +0000 |
---|---|---|
committer | daichi <daichi@FreeBSD.org> | 2003-07-14 05:27:25 +0000 |
commit | 0e8afac371b774651ba593d176f6fb50d6c50295 (patch) | |
tree | 5ab6b24f395692daaf15b8d9183d84198e63ad52 /games/asc | |
parent | 8ae862a4e5303e3a92596e290309b26f696aa3e6 (diff) | |
download | FreeBSD-ports-0e8afac371b774651ba593d176f6fb50d6c50295.zip FreeBSD-ports-0e8afac371b774651ba593d176f6fb50d6c50295.tar.gz |
update games/asc: 1.13.5.1 -> 1.13.7
PR: 54359
Submitted by: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw> (maintainer)
Diffstat (limited to 'games/asc')
-rw-r--r-- | games/asc/Makefile | 37 | ||||
-rw-r--r-- | games/asc/distinfo | 5 | ||||
-rw-r--r-- | games/asc/files/patch-Makefile.in | 20 | ||||
-rw-r--r-- | games/asc/files/patch-configure | 27 | ||||
-rw-r--r-- | games/asc/files/patch-data::Makefile.in | 14 | ||||
-rw-r--r-- | games/asc/files/patch-source::Makefile.in | 14 | ||||
-rw-r--r-- | games/asc/files/patch-source::basegfx.cpp | 42 | ||||
-rw-r--r-- | games/asc/files/patch-source::basestrm.cpp | 40 | ||||
-rw-r--r-- | games/asc/files/patch-source::gameoptions.cpp | 23 | ||||
-rw-r--r-- | games/asc/files/patch-source::oldlzw.cpp | 45 | ||||
-rw-r--r-- | games/asc/files/patch-source::tools::linux::Makefile.in | 23 | ||||
-rw-r--r-- | games/asc/files/patch-source::typen.h | 14 | ||||
-rw-r--r-- | games/asc/files/patch-source::unix::Makefile.in | 14 | ||||
-rw-r--r-- | games/asc/files/patch-source::unix::global_os.h | 25 | ||||
-rw-r--r-- | games/asc/files/patch-source::unix::mapeditor::Makefile.in | 14 | ||||
-rw-r--r-- | games/asc/pkg-message | 3 | ||||
-rw-r--r-- | games/asc/pkg-plist | 23 |
17 files changed, 47 insertions, 336 deletions
diff --git a/games/asc/Makefile b/games/asc/Makefile index 53bd640..a04b171 100644 --- a/games/asc/Makefile +++ b/games/asc/Makefile @@ -6,12 +6,17 @@ # PORTNAME= asc -PORTVERSION= 1.13.5.1 +PORTVERSION= 1.13.7 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= asc-hq DISTNAME= ${PORTNAME}-source-${PORTVERSION} +.if defined(WITH_MUSIC) +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} frontiers.mp3 time_to_strike.mp3 machine_wars.mp3 +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} +.endif + MAINTAINER= yinjieh@csie.nctu.edu.tw COMMENT= A turn based, multiplayer strategic game with very nice graphics @@ -20,9 +25,6 @@ LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12 \ SDLmm.8:${PORTSDIR}/devel/sdlmm \ SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer \ paragui.3:${PORTSDIR}/x11-toolkits/paragui -.if !exists(/usr/bin/bzip2) -LIB_DEPENDS+= bz2.1:${PORTSDIR}/archivers/bzip2 -.endif WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} @@ -34,18 +36,31 @@ USE_LIBTOOL= yes USE_GETOPT_LONG= yes CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \ CPPFLAGS="`${SDL_CONFIG} --cflags`" \ + CXXFLAGS="-D_UNICODE_BROKEN_" \ LIBS="`${SDL_CONFIG} --libs` -lgnugetopt -lm" CONFIGURE_ARGS= --disable-paraguitest -pre-patch: - @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure - @find ${WRKSRC} \( -name "*.cpp" -or -name "*.h" \) | xargs \ - ${REINPLACE_CMD} -e 's|malloc[.]h|stdlib.h|g' - @find ${WRKSRC} -type f -name Makefile.in | xargs \ - ${REINPLACE_CMD} -e 's|[(]datadir[)]/games|(datadir)|g' +.if defined(WITH_MUSIC) +PLIST_SUB+= MUSIC:="" +.else +PLIST_SUB+= MUSIC:="@comment " +.endif pre-configure: - @${RM} -f ${WRKSRC}/config.cache +.if defined(WITH_MUSIC) + ${CP} ${DISTDIR}/frontiers.mp3 ${WRKSRC}/data/music + ${CP} ${DISTDIR}/time_to_strike.mp3 ${WRKSRC}/data/music + ${CP} ${DISTDIR}/machine_wars.mp3 ${WRKSRC}/data/music +.endif + +pre-build: + @${FIND} ${WRKSRC}/source -name \*.cpp | ${XARGS} ${REINPLACE_CMD} \ + -e 's|<malloc.h>|<stdlib.h>|' + @${FIND} ${WRKSRC}/source -name \*.h | ${XARGS} ${REINPLACE_CMD} \ + -e 's|<malloc.h>|<stdlib.h>|' + +post-install: + @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/games/asc/distinfo b/games/asc/distinfo index 8d2ffbb..1fd07b9 100644 --- a/games/asc/distinfo +++ b/games/asc/distinfo @@ -1 +1,4 @@ -MD5 (asc-source-1.13.5.1.tar.gz) = 1fc5b97a5ed12be9e24af74d8884c9e1 +MD5 (asc-source-1.13.7.tar.gz) = 402738591c0e2516b6ad756c371d9f1c +MD5 (frontiers.mp3) = 560f5783836b309906e57e77417f3864 +MD5 (time_to_strike.mp3) = f0ab3c633f51430af0445ecaa02e3197 +MD5 (machine_wars.mp3) = c383139928613c7b081835c3d4a28fa8 diff --git a/games/asc/files/patch-Makefile.in b/games/asc/files/patch-Makefile.in deleted file mode 100644 index 67438d6..0000000 --- a/games/asc/files/patch-Makefile.in +++ /dev/null @@ -1,20 +0,0 @@ - -$FreeBSD$ - ---- Makefile.in 2001/03/12 08:01:39 1.1 -+++ Makefile.in 2001/03/12 08:02:46 -@@ -42,10 +42,10 @@ - - top_builddir = . - --ACLOCAL = @ACLOCAL@ --AUTOCONF = @AUTOCONF@ --AUTOMAKE = @AUTOMAKE@ --AUTOHEADER = @AUTOHEADER@ -+ACLOCAL = /usr/bin/true -+AUTOCONF = /usr/bin/true -+AUTOMAKE = /usr/bin/true -+AUTOHEADER = /usr/bin/true - - INSTALL = @INSTALL@ - INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) diff --git a/games/asc/files/patch-configure b/games/asc/files/patch-configure deleted file mode 100644 index 288167e..0000000 --- a/games/asc/files/patch-configure +++ /dev/null @@ -1,27 +0,0 @@ ---- configure.orig Thu Jun 12 10:13:34 2003 -+++ configure Thu Jun 12 10:15:34 2003 -@@ -7381,6 +7381,7 @@ - - # This can be used to rebuild libtool when needed - LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" -+$ac_aux_dir/ltconfig $LIBTOOL_DEPS - - # Always use our own libtool. - LIBTOOL='$(SHELL) $(top_builddir)/libtool' -@@ -10523,7 +10524,7 @@ - - - -- game_datadir="$datadir/games/$PACKAGE" -+ game_datadir="$datadir/$PACKAGE" - game_datadir=`( - test "x$prefix" = xNONE && prefix="$ac_default_prefix" - test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" -@@ -11178,6 +11179,7 @@ - cat conftest.$ac_ext >&5 - Unicode_broken=yes - fi -+Unicode_broken=yes - rm -f conftest.$ac_objext conftest.$ac_ext - - if test "x$Unicode_broken" = x ; then diff --git a/games/asc/files/patch-data::Makefile.in b/games/asc/files/patch-data::Makefile.in deleted file mode 100644 index 4e1da21..0000000 --- a/games/asc/files/patch-data::Makefile.in +++ /dev/null @@ -1,14 +0,0 @@ - -$FreeBSD$ - ---- data/Makefile.in.orig Thu Mar 27 13:13:56 2003 -+++ data/Makefile.in Sun Jun 1 15:10:04 2003 -@@ -104,7 +104,7 @@ - am__quote = @am__quote@ - asc_version = @asc_version@ - install_sh = @install_sh@ --SUBDIRS = dialog @MUSICDIR@ -+SUBDIRS = dialog - - MAINTAINERCLEANFILES = Makefile.in - diff --git a/games/asc/files/patch-source::Makefile.in b/games/asc/files/patch-source::Makefile.in deleted file mode 100644 index 4d9c5b2..0000000 --- a/games/asc/files/patch-source::Makefile.in +++ /dev/null @@ -1,14 +0,0 @@ - -$FreeBSD$ - ---- source/Makefile.in.orig Thu Nov 29 20:30:42 2001 -+++ source/Makefile.in Tue Dec 11 12:54:01 2001 -@@ -71,7 +71,7 @@ - SDLMM_CONFIG = @SDLMM_CONFIG@ - SDLMM_CXXFLAGS = @SDLMM_CXXFLAGS@ - SDLMM_LIBS = @SDLMM_LIBS@ --SDL_CFLAGS = @SDL_CFLAGS@ -+SDL_CFLAGS = @SDL_CFLAGS@ -DPREFIX=\"$(prefix)\" - SDL_CONFIG = @SDL_CONFIG@ - SDL_LIBS = @SDL_LIBS@ - SGML2MAN = @SGML2MAN@ diff --git a/games/asc/files/patch-source::basegfx.cpp b/games/asc/files/patch-source::basegfx.cpp deleted file mode 100644 index db0021e..0000000 --- a/games/asc/files/patch-source::basegfx.cpp +++ /dev/null @@ -1,42 +0,0 @@ - -$FreeBSD$ - ---- source/basegfx.cpp 2001/02/17 13:59:07 1.1 -+++ source/basegfx.cpp 2001/02/17 14:00:16 -@@ -409,7 +406,7 @@ - wp[1] = hd->y / 2; - - if ( ( wp[0] + 1 ) * ( wp[1] + 1 ) + 4 >= xlatbuffersize ) -- throw fatalgraphicserror ( "halfpict : picture larger than buffer ! " ); -+ goto except; - - dest += 4; - -@@ -449,7 +446,7 @@ - } - } - if ( (int)dest - (int)xlatbuffer > xlatbuffersize ) -- throw fatalgraphicserror ( "halfpict : picture larger than buffer ! " ); -+ goto except; - - } - } else { -@@ -462,7 +459,7 @@ - wp[1] = wp2[1] / 2; - - if ( ( wp[0] + 1 ) * ( wp[1] + 1 ) + 4 >= xlatbuffersize ) -- throw fatalgraphicserror ( "halfpict : picture larger than buffer ! " ); -+ goto except; - - dest += 4; - buf += 4; -@@ -482,6 +479,9 @@ - - } - return xlatbuffer; -+ -+except: -+ throw fatalgraphicserror ( "halfpict : picture larger than buffer ! " ); - } - - diff --git a/games/asc/files/patch-source::basestrm.cpp b/games/asc/files/patch-source::basestrm.cpp deleted file mode 100644 index 3ee6e84..0000000 --- a/games/asc/files/patch-source::basestrm.cpp +++ /dev/null @@ -1,40 +0,0 @@ - -$FreeBSD$ - ---- source/basestrm.cpp.orig Tue Oct 1 16:11:44 2002 -+++ source/basestrm.cpp Fri Oct 18 15:04:21 2002 -@@ -1008,7 +1011,7 @@ - while (actpos2 < size) { - if (datasize == 0) - if ( excpt ) { -- throw treadafterend ( getDeviceName() ); -+ goto except1; - } - else - return actpos2; -@@ -1028,6 +1031,9 @@ - } - - return actpos2; -+ -+except1: -+ throw treadafterend ( getDeviceName() ); - } - - -@@ -1058,10 +1064,14 @@ - } - else - if (actmempos > memsize) -- throw tinternalerror ( __FILE__, __LINE__ ); -+ goto except1; - - actpos2 += s; - } -+ return; -+ -+except1: -+ throw tinternalerror ( __FILE__, __LINE__ ); - } - - diff --git a/games/asc/files/patch-source::gameoptions.cpp b/games/asc/files/patch-source::gameoptions.cpp deleted file mode 100644 index cd4c786..0000000 --- a/games/asc/files/patch-source::gameoptions.cpp +++ /dev/null @@ -1,23 +0,0 @@ - -$FreeBSD$ - ---- source/gameoptions.cpp.orig Tue Oct 1 15:26:40 2002 -+++ source/gameoptions.cpp Tue Oct 1 15:29:07 2002 -@@ -112,7 +112,7 @@ - defaultSuperVisorPassword.setName ( "" ); - - --#if USE_HOME_DIRECTORY == 0 -+#if _UNIX_ == 0 - searchPath[0].setName ( ".\\" ); - for ( int i = 1; i < getSearchPathNum(); i++ ) - searchPath[i].setName ( NULL ); -@@ -120,7 +120,7 @@ - for ( int i = 0; i < getSearchPathNum(); i++ ) - searchPath[i].setName ( NULL ); - searchPath[0].setName ( "~/.asc/" ); -- searchPath[1].setName ( "/var/local/games/asc/" ); -+ searchPath[1].setName ( PREFIX "/share/asc/" ); - searchPath[2].setName ( "/var/games/asc/" ); - searchPath[3].setName ( "/usr/local/share/games/asc/" ); - searchPath[4].setName ( "/usr/share/games/asc/" ); diff --git a/games/asc/files/patch-source::oldlzw.cpp b/games/asc/files/patch-source::oldlzw.cpp deleted file mode 100644 index 20ea8db..0000000 --- a/games/asc/files/patch-source::oldlzw.cpp +++ /dev/null @@ -1,45 +0,0 @@ - -$FreeBSD$ - ---- source/oldlzw.cpp 2001/02/17 15:08:39 1.1 -+++ source/oldlzw.cpp 2001/02/17 15:08:54 -@@ -342,7 +339,7 @@ - DecodeBuffer = (unsigned char *) realloc ( DecodeBuffer, DecodeBufferSize + 1000 ); - - if ( ! DecodeBuffer ) -- throw toutofmem ( DecodeBufferSize + 1000 ); -+ goto except1; - else - DecodeBufferSize += 1000; - } -@@ -350,6 +347,9 @@ - } - DecodeBuffer[ count++ ] = code; - return ( count ); -+ -+except1: -+ throw toutofmem ( DecodeBufferSize + 1000 ); - } - - -@@ -464,7 +464,7 @@ - count = LZWLoadBuffer ( 0, incode ); - - if ( count == 0 ) -- throw ASCexception(); -+ goto except1; - - inchar = DecodeBuffer[ count - 1 ]; - while ( count ) -@@ -492,7 +492,10 @@ - return pos; - } - -- // return 0; -+ return 0; -+ -+except1: -+ throw ASCexception(); - } - - diff --git a/games/asc/files/patch-source::tools::linux::Makefile.in b/games/asc/files/patch-source::tools::linux::Makefile.in deleted file mode 100644 index 2e6dba5..0000000 --- a/games/asc/files/patch-source::tools::linux::Makefile.in +++ /dev/null @@ -1,23 +0,0 @@ - -$FreeBSD$ - ---- source/tools/linux/Makefile.in.orig Sun Jun 1 15:19:15 2003 -+++ source/tools/linux/Makefile.in Sun Jun 1 15:19:37 2003 -@@ -131,7 +131,7 @@ - asc_weaponguide_SOURCES = weaponguide.cpp basestrm.cpp misc.cpp ascstring.cpp loadpcxc.cpp palette.cpp sgstream.cpp newfont.cpp basegfx.cpp graphicset.cpp gameoptions.cpp CLoadable.cpp Named.cpp Property.cpp PropertyGroup.cpp stack.cpp buildingtype.cpp typen.cpp vehicletype.cpp password.cpp strtmesg.cpp textfileparser.cpp containerbasetype.cpp terraintype.cpp objecttype.cpp textfiletags.cpp textfile_evaluation.cpp stringtokenizer.cpp itemrepository.cpp - asc_raw2pcx_SOURCES = raw2pcx.cpp basestrm.cpp misc.cpp ascstring.cpp loadpcxc.cpp palette.cpp sgstream.cpp newfont.cpp basegfx.cpp graphicset.cpp gameoptions.cpp CLoadable.cpp Named.cpp Property.cpp PropertyGroup.cpp stack.cpp buildingtype.cpp typen.cpp vehicletype.cpp password.cpp strtmesg.cpp textfileparser.cpp containerbasetype.cpp terraintype.cpp objecttype.cpp textfiletags.cpp textfile_evaluation.cpp stringtokenizer.cpp - --asc_mount_LDADD = @SDL_LIBS@ @SDLMM_LIBS@ -lpthread @LDADDLIBBZ2@ $(top_builddir)/source/tools/lib/libasc_cmd.la -+asc_mount_LDADD = @SDL_LIBS@ @SDLMM_LIBS@ @LDADDLIBBZ2@ $(top_builddir)/source/tools/lib/libasc_cmd.la - asc_demount_LDADD = @SDL_LIBS@ @SDLMM_LIBS@ @LDADDLIBBZ2@ $(top_builddir)/source/tools/lib/libasc_cmd.la - asc_makegfx_LDADD = $(top_builddir)/source/sdl/libsdl.la @LDADDLIBBZ2@ $(top_builddir)/source/tools/lib/libasc_cmd.la - asc_viewid_LDADD = $(top_builddir)/source/sdl/libsdl.la @LDADDLIBBZ2@ $(top_builddir)/source/tools/lib/libasc_cmd.la -@@ -241,7 +241,7 @@ - - DEFS = @DEFS@ - DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) --CPPFLAGS = @CPPFLAGS@ -+CPPFLAGS = @CPPFLAGS@ -DPREFIX=\"$(prefix)\" - LDFLAGS = @LDFLAGS@ - LIBS = @LIBS@ - depcomp = $(SHELL) $(top_srcdir)/depcomp diff --git a/games/asc/files/patch-source::typen.h b/games/asc/files/patch-source::typen.h deleted file mode 100644 index 9cbe65b..0000000 --- a/games/asc/files/patch-source::typen.h +++ /dev/null @@ -1,14 +0,0 @@ - -$FreeBSD$ - ---- source/typen.h 2002/10/18 11:15:33 1.1 -+++ source/typen.h 2002/10/18 11:16:11 -@@ -247,8 +247,6 @@ - #include <limits.h> - #endif - --#include <values.h> -- - #include "pointers.h" - #include "tpascal.inc" - #include "misc.h" diff --git a/games/asc/files/patch-source::unix::Makefile.in b/games/asc/files/patch-source::unix::Makefile.in deleted file mode 100644 index f13df93..0000000 --- a/games/asc/files/patch-source::unix::Makefile.in +++ /dev/null @@ -1,14 +0,0 @@ - -$FreeBSD$ - ---- source/unix/Makefile.in.orig Sun Jun 1 15:19:57 2003 -+++ source/unix/Makefile.in Sun Jun 1 15:20:45 2003 -@@ -113,7 +113,7 @@ - SUBDIRS = mapeditor - - AM_CXXFLAGS = @SDL_CFLAGS@ @SDLMM_CXXFLAGS@ \ ---Dsgmain -DFREEMAPZOOM -DNEWKEYB @PARAGUI_CFLAGS@ -+-Dsgmain -DFREEMAPZOOM -DNEWKEYB @PARAGUI_CFLAGS@ -DPREFIX=\"$(prefix)\" - - - bin_PROGRAMS = asc diff --git a/games/asc/files/patch-source::unix::global_os.h b/games/asc/files/patch-source::unix::global_os.h deleted file mode 100644 index d862713..0000000 --- a/games/asc/files/patch-source::unix::global_os.h +++ /dev/null @@ -1,25 +0,0 @@ - -$FreeBSD$ - ---- source/unix/global_os.h 2002/10/01 12:34:15 1.1 -+++ source/unix/global_os.h 2002/10/01 12:34:29 -@@ -60,8 +60,8 @@ - #define global_os_h_included - - #ifndef minimalIO -- #define sdlheader "SDL/SDL.h" -- #define sdlmixerheader "SDL/SDL_mixer.h" -+ #define sdlheader "SDL.h" -+ #define sdlmixerheader "SDL_mixer.h" - #include sdlheader - #endif - -@@ -84,7 +84,7 @@ - #endif - - #define CASE_SENSITIVE_FILE_NAMES 1 -- #define USE_HOME_DIRECTORY 1 -+ #define USE_HOME_DIRECTORY 0 - - - #endif diff --git a/games/asc/files/patch-source::unix::mapeditor::Makefile.in b/games/asc/files/patch-source::unix::mapeditor::Makefile.in deleted file mode 100644 index 85f5368..0000000 --- a/games/asc/files/patch-source::unix::mapeditor::Makefile.in +++ /dev/null @@ -1,14 +0,0 @@ - -$FreeBSD$ - ---- source/unix/mapeditor/Makefile.in.orig Sun Jun 1 15:21:07 2003 -+++ source/unix/mapeditor/Makefile.in Sun Jun 1 15:21:34 2003 -@@ -113,7 +113,7 @@ - - - AM_CXXFLAGS = @SDL_CFLAGS@ @SDLMM_CXXFLAGS@ \ ---Dkarteneditor -DFREEMAPZOOM -DNEWKEYB @PARAGUI_CFLAGS@ -+-Dkarteneditor -DFREEMAPZOOM -DNEWKEYB @PARAGUI_CFLAGS@ -DPREFIX=\"$(prefix)\" - - - bin_PROGRAMS = asc_mapedit asc_map2pcx diff --git a/games/asc/pkg-message b/games/asc/pkg-message new file mode 100644 index 0000000..34bebbe --- /dev/null +++ b/games/asc/pkg-message @@ -0,0 +1,3 @@ +- to start the game type 'asc' in an x-windows console +- if the music temporary stops during the computers moves, +turn it off. This will increase the speed of the computers moves! diff --git a/games/asc/pkg-plist b/games/asc/pkg-plist index 6538ac5..6ed1382 100644 --- a/games/asc/pkg-plist +++ b/games/asc/pkg-plist @@ -8,12 +8,17 @@ bin/asc_mount bin/asc_raw2pcx bin/asc_viewid bin/asc_weaponguide -share/asc/asc.gfx -share/asc/asc_dlg.zip -share/asc/buildings.con -share/asc/main.con -share/asc/mk1.con -share/asc/trrobj.con -share/asc/trrobj2.con -share/asc/units-mk3.con -@dirrm share/asc +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/trrobj.con +share/games/asc/trrobj2.con +share/games/asc/units-mk3.con +%%MUSIC:%%share/games/asc/music/frontiers.mp3 +%%MUSIC:%%share/games/asc/music/time_to_strike.mp3 +%%MUSIC:%%share/games/asc/music/machine_wars.mp3 +%%MUSIC:%%@dirrm share/games/asc/music +@dirrm share/games/asc +@dirrm share/games |