pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/asc asc: Update to 2.6.1.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1f9e4ce31e80
branches:  trunk
changeset: 403513:1f9e4ce31e80
user:      nia <nia%pkgsrc.org@localhost>
date:      Mon Oct 28 12:38:35 2019 +0000

description:
asc: Update to 2.6.1.0

Unknown changes

diffstat:

 games/asc/Makefile                                    |  98 +++++++++++-------
 games/asc/PLIST                                       |  23 +--
 games/asc/distinfo                                    |  43 +++----
 games/asc/patches/patch-configure                     |  15 ++
 games/asc/patches/patch-source_ASCStringHelpers.h     |  18 ---
 games/asc/patches/patch-source_Property.cpp           |  12 --
 games/asc/patches/patch-source_errors.h               |  13 --
 games/asc/patches/patch-source_gui.cpp                |  21 ----
 games/asc/patches/patch-source_gui.h                  |  18 ---
 games/asc/patches/patch-source_password.cpp           |  12 --
 games/asc/patches/patch-source_strtmesg.cpp           |  13 --
 games/asc/patches/patch-source_tools_lib_errorout.cpp |  12 --
 12 files changed, 102 insertions(+), 196 deletions(-)

diffs (truncated from 376 to 300 lines):

diff -r eb1b0bff38e6 -r 1f9e4ce31e80 games/asc/Makefile
--- a/games/asc/Makefile        Mon Oct 28 12:31:58 2019 +0000
+++ b/games/asc/Makefile        Mon Oct 28 12:38:35 2019 +0000
@@ -1,57 +1,79 @@
-# $NetBSD: Makefile,v 1.64 2019/08/11 13:21:02 wiz Exp $
+# $NetBSD: Makefile,v 1.65 2019/10/28 12:38:35 nia Exp $
 
-DISTNAME=      asc-source-1.16.4.0
-PKGNAME=       ${DISTNAME:S/-source//}
-PKGREVISION=   20
+DISTNAME=      asc-2.6.1.0
 CATEGORIES=    games
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=asc-hq/}
 EXTRACT_SUFX=  .tar.bz2
 
+DIST_SUBDIR=   asc
+
+DISTFILES+=    ${DISTNAME}${EXTRACT_SUFX}
+DISTFILES+=    frontiers.ogg
+DISTFILES+=    machine_wars.ogg
+DISTFILES+=    time_to_strike.ogg
+
+.for file in frontiers.ogg machine_wars.ogg time_to_strike.ogg
+SITES.${file}= http://www.asc-hq.org/music/
+.endfor
+
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://www.asc-hq.org/
-COMMENT=       Turn based strategy game
+COMMENT=       Turn based strategy game in the tradition of the Battle Isle series
+LICENSE=       gnu-gpl-v2
+
+TOOL_DEPENDS+= icoutils-[0-9]*:../../graphics/icoutils
 
-DIST_SUBDIR=           asc
-DISTFILES=             ${DISTNAME}${EXTRACT_SUFX} frontiers.mp3 \
-                       machine_wars.mp3 time_to_strike.mp3
-.for file in frontiers.mp3 machine_wars.mp3 time_to_strike.mp3
-SITES.${file}= http://asc-hq.org/
-.endfor
-WRKSRC=                        ${WRKDIR}/${PKGNAME_NOREV}
+GNU_CONFIGURE= yes
+USE_LIBTOOL=   yes
+
+USE_TOOLS+=    perl pkg-config zip
+USE_TOOLS+=    gmake
+USE_LANGUAGES= c c++11
+
+# C++11
+GCC_REQD+=     4.7
 
-USE_LANGUAGES=         c c++
-USE_LIBTOOL=           yes
-USE_PKGLOCALEDIR=      yes
-USE_TOOLS+=            gmake perl:build pkg-config
-REPLACE_PERL=          checkfordata.pl
-GNU_CONFIGURE=         yes
-CONFIGURE_ARGS+=       --disable-paraguitest
-CPPFLAGS.NetBSD+=      -D_UNICODE_BROKEN_
+CPPFLAGS+=     -D__EXPORT__=export
+MAKE_ENV+=     top_builddir=.
+MAKE_ENV+=     src_dir=.
 
-MAKE_ENV+=             top_src_dir=.
-
-# ../weaponguide.cpp:1205: virtual memory exhausted
-UNLIMIT_RESOURCES=     datasize
+SUBST_CLASSES+=                lua
+SUBST_STAGE.lua=       pre-configure
+SUBST_MESSAGE.lua=     Correcting lua library name.
+SUBST_FILES.lua+=      configure
+SUBST_SED.lua=         -e 's/lua5.1/lua-5.1/g'
 
-.include "../../mk/compiler.mk"
-.if !empty(PKGSRC_COMPILER:Mclang)
-CONFIGURE_ARGS+=       --disable-gcc296-detection
-.endif
+CONFIGURE_ARGS+=       --disable-sdltest
+CONFIGURE_ARGS+=       --disable-oggtest
+CONFIGURE_ARGS+=       --disable-vorbistest
+CONFIGURE_ARGS+=       --disable-ft2test
+
+INSTALLATION_DIRS+=    share/applications
+INSTALLATION_DIRS+=    share/pixmaps
 
 post-extract:
-       mv ${WRKDIR}/*.mp3 ${WRKSRC}/data/music
+       mv ${WRKDIR}/*.ogg ${WRKSRC}/data/music
 
-# bug in 1.16.4.0, remove on update
+post-build:
+       cd ${WRKSRC} && ${PREFIX}/bin/icotool -i 1 -x -o asc.png \
+           source/win32/msvc/ASC/icon2.ico
+
 post-install:
-       ${INSTALL_DATA} ${WRKSRC}/data/asc.gfx ${DESTDIR}${PREFIX}/share/games/asc
+       ${INSTALL_DATA} ${FILESDIR}/asc.desktop \
+           ${DESTDIR}${PREFIX}/share/applications
+       ${INSTALL_DATA} ${WRKSRC}/asc.png \
+           ${DESTDIR}${PREFIX}/share/pixmaps
 
-.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../audio/libvorbis/buildlink3.mk"
 .include "../../audio/SDL_mixer/buildlink3.mk"
-.include "../../audio/libvorbis/buildlink3.mk"
-.include "../../devel/SDLmm/buildlink3.mk"
-.include "../../devel/libsigc++1/buildlink3.mk"
+.include "../../audio/SDL_sound/buildlink3.mk"
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../devel/boost-libs/buildlink3.mk"
+.include "../../devel/physfs/buildlink3.mk"
+.include "../../devel/libsigc++/buildlink3.mk"
 .include "../../graphics/SDL_image/buildlink3.mk"
-.include "../../graphics/jpeg/buildlink3.mk"
-.include "../../multimedia/smpeg/buildlink3.mk"
-.include "../../x11/paragui/buildlink3.mk"
+.include "../../lang/lua51/buildlink3.mk"
+.include "../../multimedia/xvidcore/buildlink3.mk"
+.include "../../textproc/expat/buildlink3.mk"
+.include "../../x11/wxGTK30/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r eb1b0bff38e6 -r 1f9e4ce31e80 games/asc/PLIST
--- a/games/asc/PLIST   Mon Oct 28 12:31:58 2019 +0000
+++ b/games/asc/PLIST   Mon Oct 28 12:38:35 2019 +0000
@@ -1,24 +1,19 @@
-@comment $NetBSD: PLIST,v 1.4 2009/06/14 17:56:40 joerg Exp $
+@comment $NetBSD: PLIST,v 1.5 2019/10/28 12:38:35 nia Exp $
 bin/asc
 bin/asc_demount
-bin/asc_makegfx
 bin/asc_mapedit
 bin/asc_mount
 bin/asc_weaponguide
 man/man6/asc.6
 man/man6/asc_demount.6
-man/man6/asc_makegfx.6
 man/man6/asc_mapedit.6
 man/man6/asc_mount.6
 man/man6/asc_weaponguide.6
-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
+share/appdata/asc.appdata.xml
+share/applications/asc.desktop
+share/games/asc/asc2_dlg.zip
+share/games/asc/main.ascdat
+share/games/asc/music/frontiers.ogg
+share/games/asc/music/machine_wars.ogg
+share/games/asc/music/time_to_strike.ogg
+share/pixmaps/asc.png
diff -r eb1b0bff38e6 -r 1f9e4ce31e80 games/asc/distinfo
--- a/games/asc/distinfo        Mon Oct 28 12:31:58 2019 +0000
+++ b/games/asc/distinfo        Mon Oct 28 12:38:35 2019 +0000
@@ -1,26 +1,19 @@
-$NetBSD: distinfo,v 1.13 2015/11/03 20:56:44 agc Exp $
+$NetBSD: distinfo,v 1.14 2019/10/28 12:38:35 nia Exp $
 
-SHA1 (asc/asc-source-1.16.4.0.tar.bz2) = 338081823943e08848325e6f2126e5c533517ae9
-RMD160 (asc/asc-source-1.16.4.0.tar.bz2) = a4de675628875cc36f30b39d1fb1ef3ac879e369
-SHA512 (asc/asc-source-1.16.4.0.tar.bz2) = cda8f530661c360248e5bacf43d1fb5bce81b9078cf533bf2bc147b8bcfd65cd80ba9b9d0665199542df64e8a9d2973db9e9211574ac92b6da860632f517133c
-Size (asc/asc-source-1.16.4.0.tar.bz2) = 11730677 bytes
-SHA1 (asc/frontiers.mp3) = 7c6753fb5fe5e498fa780271da0a302c0619a1ca
-RMD160 (asc/frontiers.mp3) = 4d2ec2ff647ef6ef66a2264465b86451bbba64f5
-SHA512 (asc/frontiers.mp3) = b3e365f5c305416bcb1a746de85250e3e400751c5328d520edfe4180bd9c25dbafd1a87e520d206a2566d71e6e6886239d8b3421de8c97dc0e482149d3d83dac
-Size (asc/frontiers.mp3) = 4407769 bytes
-SHA1 (asc/machine_wars.mp3) = d05e92b46ae0e90d9f3b38ce9c4b41bde599a02e
-RMD160 (asc/machine_wars.mp3) = 192b2a4f20676cd1ce3145df08997d9793ea373f
-SHA512 (asc/machine_wars.mp3) = 0f18a52bb551ed4138de2a37607a5d368e17f08d505ce2835574ed056a149e0df103df3fd66c752bce6de0a6b43544e3d05b015de054d91115e2e3435584a914
-Size (asc/machine_wars.mp3) = 2905989 bytes
-SHA1 (asc/time_to_strike.mp3) = 76abf03155d9a21584f30c20370db0a93449c78a
-RMD160 (asc/time_to_strike.mp3) = a402a00e490f7aca0871b52165d63f3bde3b3bff
-SHA512 (asc/time_to_strike.mp3) = 1d07827774246c59d516fdf2b2fd6d00f6b7ae7e2b90786ed7afd34b9a5c660c6c50dc2e085318c4892a6f5bcf5712271b92cf001dd647f58b4ee54e704dcf42
-Size (asc/time_to_strike.mp3) = 3242969 bytes
-SHA1 (patch-source_ASCStringHelpers.h) = 21caf558907c4eaafe88d714520b014a1c19f57b
-SHA1 (patch-source_Property.cpp) = a8a8e154f8aa5a884cb9fe0e74c806dcaf3020b2
-SHA1 (patch-source_errors.h) = 5d288a390984a5ab673609e3487feb5ab1ee6a8a
-SHA1 (patch-source_gui.cpp) = 3611c053b08fa175bf89b79b9cd0a4d5202affc8
-SHA1 (patch-source_gui.h) = 7e94c8fb53148da05177614fe79e9448693a54b8
-SHA1 (patch-source_password.cpp) = fa56110a045e111f772f09b9e9998d84a76e7d5a
-SHA1 (patch-source_strtmesg.cpp) = 3aa86f7e739983294a86c9ab5a8c0c4a6007c449
-SHA1 (patch-source_tools_lib_errorout.cpp) = 9ccfa2d4447a3606fe72c9a60e79881fdfc1b080
+SHA1 (asc/asc-2.6.1.0.tar.bz2) = 3731e8016143d3c83364f67f4ac7d8e7491b7a50
+RMD160 (asc/asc-2.6.1.0.tar.bz2) = f66fd672638c13661618b0e9a7e364a694793322
+SHA512 (asc/asc-2.6.1.0.tar.bz2) = 9bf6c8ef44e4f8df32335d6fda3d755e74065cfa36cfab913c7f5990cea0d7f7215642e290a0aa0eaa98417a0f19a971d17fd4b464dbece9f60880bd32daee2e
+Size (asc/asc-2.6.1.0.tar.bz2) = 42569531 bytes
+SHA1 (asc/frontiers.ogg) = 2c41ff90e6d8598e7efe7414cd61df0972720b71
+RMD160 (asc/frontiers.ogg) = d9180257b34871301d55ec4db37fab3d144ceecf
+SHA512 (asc/frontiers.ogg) = 8c2ce497519b3842fba2d39b5c6de6194584d64c0375d404535628898cb2e7a82433fc6008781381a80a6cbb24ff49162de3634ebcf28b17b0631c30668fd8af
+Size (asc/frontiers.ogg) = 4691844 bytes
+SHA1 (asc/machine_wars.ogg) = e889908b8d6e84a5df90be9ccc965074c6ed94b0
+RMD160 (asc/machine_wars.ogg) = 41da08dce0671329bb7bb16f52249f1baeaa1b49
+SHA512 (asc/machine_wars.ogg) = 2c1bab89b9397f52dcf7eedfc0dbc88d49a586ac0474c76a09a87a880712bf0fa408c03a65a5f5d322dee86e3b12cbc66d53cd6728e8fa34fa8f2ee2bbc06cd8
+Size (asc/machine_wars.ogg) = 3138308 bytes
+SHA1 (asc/time_to_strike.ogg) = 27f06d312a7a58aa853b46e3775d6fecd813d57a
+RMD160 (asc/time_to_strike.ogg) = 03f67601e729ba8cbdeb01b6e0b4317bbe10e435
+SHA512 (asc/time_to_strike.ogg) = 2ed946116cac2ea63d401eb7415d5b3e4e548bc5a5b00b01a6f1c4db6a242895810dfefdf1ace9652f01dc934a70b756aa74d01630cfac97b19ce84a93b772ee
+Size (asc/time_to_strike.ogg) = 3830679 bytes
+SHA1 (patch-configure) = 03ab5b82af9ec361dd671194554ca30abf9b240e
diff -r eb1b0bff38e6 -r 1f9e4ce31e80 games/asc/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/asc/patches/patch-configure Mon Oct 28 12:38:35 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure,v 1.1 2019/10/28 12:38:35 nia Exp $
+
+Shell portability.
+
+--- configure.orig     2015-12-06 14:12:04.000000000 +0000
++++ configure
+@@ -22981,7 +22981,7 @@ fi
+ 
+ 
+ 
+-if test "x$missingmusic" == xx ; then
++if test "x$missingmusic" = xx ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}:
+ The music files could not be found. These are not distributed together with the
+ source code because of their size.
diff -r eb1b0bff38e6 -r 1f9e4ce31e80 games/asc/patches/patch-source_ASCStringHelpers.h
--- a/games/asc/patches/patch-source_ASCStringHelpers.h Mon Oct 28 12:31:58 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-$NetBSD: patch-source_ASCStringHelpers.h,v 1.2 2011/12/03 20:17:47 cheusov Exp $
-
---- source/ASCStringHelpers.h.orig     2005-08-17 19:08:19.000000000 +0000
-+++ source/ASCStringHelpers.h
-@@ -4,11 +4,13 @@
- #include <cassert>
- #include <cstdarg>
- #include <cstdio>
-+#include <cstdlib>
- #include <memory>
- #include <string>
- #include <wchar.h>
- #include <stdio.h>
- #include <ctype.h>
-+#include <string.h>
- 
- using std::auto_ptr;
- using std::string;
diff -r eb1b0bff38e6 -r 1f9e4ce31e80 games/asc/patches/patch-source_Property.cpp
--- a/games/asc/patches/patch-source_Property.cpp       Mon Oct 28 12:31:58 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-$NetBSD: patch-source_Property.cpp,v 1.1 2011/11/23 23:29:45 joerg Exp $
-
---- source/Property.cpp.orig   2011-11-23 16:22:56.000000000 +0000
-+++ source/Property.cpp
-@@ -16,6 +16,7 @@
-  ***************************************************************************/
- 
- #include <stdio.h>
-+#include <stdlib.h>
- #include "Property.h"
- 
- TextProperty::TextProperty()
diff -r eb1b0bff38e6 -r 1f9e4ce31e80 games/asc/patches/patch-source_errors.h
--- a/games/asc/patches/patch-source_errors.h   Mon Oct 28 12:31:58 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-source_errors.h,v 1.1 2012/07/03 18:46:16 joerg Exp $
-
---- source/errors.h.orig       2006-05-13 13:05:00.000000000 +0000
-+++ source/errors.h
-@@ -73,7 +73,7 @@
-         AssertionException ( const ASCString& check, const ASCString& file, int line ) : ASCmsgException ( ASCString("Assertion failed: ") + check + " at " + file + ":" + ASCString::toString(line)  
) {};
-   };
- 
--#define assertOrThrow(expr)  (static_cast<void> ( (expr) ? 0 : (throw AssertionException (#expr, __FILE__, __LINE__))))
-+#define assertOrThrow(expr)  do { if (expr) {} else throw AssertionException (#expr, __FILE__, __LINE__); } while (0)
-   
-   
- 
diff -r eb1b0bff38e6 -r 1f9e4ce31e80 games/asc/patches/patch-source_gui.cpp
--- a/games/asc/patches/patch-source_gui.cpp    Mon Oct 28 12:31:58 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-$NetBSD: patch-source_gui.cpp,v 1.1 2012/07/03 18:46:16 joerg Exp $
-
---- source/gui.cpp.orig        2012-07-03 10:55:47.000000000 +0000
-+++ source/gui.cpp
-@@ -153,16 +153,6 @@ void   GuiHost<T>::returncoordinates ( v
-    }
- }
- 
--template<class T> 
--void   GuiHost<T>::chainiconstohost ( T icn )
--{
--   if ( icn ) {
--      setfirsticon( (T) icn->frst() );
--      getfirsticon()->sethost ( this );
--   }
--}



Home | Main Index | Thread Index | Old Index