pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/naev Add games/naev. Based on work by Yorick Har...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/615b6639a27e
branches:  trunk
changeset: 401857:615b6639a27e
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Oct 01 12:25:37 2019 +0000

description:
Add games/naev. Based on work by Yorick Hardy in pkgsrc-wip.

NAEV is a 2D space trading and combat game, in a similar vein to
Escape Velocity. NAEV is played from a top-down perspective, featuring
fast-paced combat, many ships and outfits, and a large galaxy to explore.
The game is highly open-ended, letting players proceed at their own paces.

diffstat:

 games/naev/DESCR                        |   4 ++
 games/naev/Makefile                     |  46 +++++++++++++++++++++++++++++++++
 games/naev/PLIST                        |  12 ++++++++
 games/naev/distinfo                     |   9 ++++++
 games/naev/patches/patch-build_shave.in |  16 +++++++++++
 games/naev/patches/patch-configure.ac   |  40 ++++++++++++++++++++++++++++
 games/naev/patches/patch-src_ndata.c    |  29 ++++++++++++++++++++
 7 files changed, 156 insertions(+), 0 deletions(-)

diffs (184 lines):

diff -r dc280bd55afd -r 615b6639a27e games/naev/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/naev/DESCR  Tue Oct 01 12:25:37 2019 +0000
@@ -0,0 +1,4 @@
+NAEV is a 2D space trading and combat game, in a similar vein to
+Escape Velocity. NAEV is played from a top-down perspective, featuring
+fast-paced combat, many ships and outfits, and a large galaxy to explore.
+The game is highly open-ended, letting players proceed at their own paces.
diff -r dc280bd55afd -r 615b6639a27e games/naev/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/naev/Makefile       Tue Oct 01 12:25:37 2019 +0000
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.1 2019/10/01 12:25:37 nia Exp $
+
+DISTNAME=      naev-0.7.0
+CATEGORIES=    games
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=naev/}
+GITHUB_TAG=    naev-${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/naev/naev
+COMMENT=       2D space trading and combat game
+LICENSE=       gnu-gpl-v3
+
+USE_TOOLS+=    autoreconf autoconf automake
+USE_TOOLS+=    pkg-config
+GNU_CONFIGURE= yes
+
+TOOL_DEPENDS+= zip-[0-9]*:../../archivers/zip
+
+BUILD_TARGET=  all ndata.zip
+INSTALL_TARGET=        install install-ndata
+
+CONFIGURE_ARGS+=       --enable-debug=no
+CONFIGURE_ARGS+=       --enable-lua=shared
+CONFIGURE_ARGS+=       --disable-sdltest
+
+SUBST_CLASSES+=                ndata
+SUBST_STAGE.ndata=     pre-configure
+SUBST_FILES.ndata=     src/ndata.c
+SUBST_SED.ndata=       -e "s,@DATADIR@,${PREFIX}/share/naev,"
+
+pre-configure:
+       cd ${WRKSRC} && ${SH} autogen.sh
+
+.include "../../archivers/libzip/buildlink3.mk"
+.include "../../audio/openal-soft/buildlink3.mk"
+.include "../../audio/libvorbis/buildlink3.mk"
+.include "../../audio/SDL2_mixer/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../graphics/SDL2_image/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../lang/lua51/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r dc280bd55afd -r 615b6639a27e games/naev/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/naev/PLIST  Tue Oct 01 12:25:37 2019 +0000
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1 2019/10/01 12:25:37 nia Exp $
+bin/naev
+man/man6/naev.6
+share/appdata/naev.appdata.xml
+share/applications/naev.desktop
+share/doc/naev/AUTHORS
+share/doc/naev/LICENSE
+share/doc/naev/README
+share/doc/naev/TODO
+share/naev/naev-confupdate.sh
+share/naev/ndata
+share/pixmaps/naev.png
diff -r dc280bd55afd -r 615b6639a27e games/naev/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/naev/distinfo       Tue Oct 01 12:25:37 2019 +0000
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1 2019/10/01 12:25:37 nia Exp $
+
+SHA1 (naev-0.7.0.tar.gz) = 5c5c5dc98052ef78248b8bd28fb07b23a1f8691c
+RMD160 (naev-0.7.0.tar.gz) = b689366541732392feda2991a2d38f28cb1c517f
+SHA512 (naev-0.7.0.tar.gz) = 21984eb9108cc8d656968817090c3d2067086f66d77177780c9c2764514b98bb1044e3af1fbcabddd4eb7a356145ea709748d540e1aa6e15efd1c3c7b3972723
+Size (naev-0.7.0.tar.gz) = 313689725 bytes
+SHA1 (patch-build_shave.in) = e548c7547bc81a16a7cfbf3e7a97e4e3e23787fc
+SHA1 (patch-configure.ac) = 5b725e9b9c128c6350fec1a2310d25e4f5c28f75
+SHA1 (patch-src_ndata.c) = 2dff16576a38076561b4776e842abaa20806e856
diff -r dc280bd55afd -r 615b6639a27e games/naev/patches/patch-build_shave.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/naev/patches/patch-build_shave.in   Tue Oct 01 12:25:37 2019 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-build_shave.in,v 1.1 2019/10/01 12:25:37 nia Exp $
+
+Fix shell script.
+
+--- build/shave.in.orig        2010-01-18 14:18:12.000000000 +0200
++++ build/shave.in     2010-01-18 14:19:29.000000000 +0200
+@@ -57,7 +57,8 @@
+         preserved_args="$preserved_args $opt"
+         ;;
+     -out:*|/out:*)
+-        lt_output="${opt:5}"
++        lt_output="${opt#-out:}"
++        lt_output="${lt_output#/out:}"
+         preserved_args="$preserved_args $opt"
+         ;;
+     *)
diff -r dc280bd55afd -r 615b6639a27e games/naev/patches/patch-configure.ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/naev/patches/patch-configure.ac     Tue Oct 01 12:25:37 2019 +0000
@@ -0,0 +1,40 @@
+$NetBSD: patch-configure.ac,v 1.1 2019/10/01 12:25:37 nia Exp $
+
+Add compile and linker flags for NetBSD.
+Fix shell script = tests.
+
+--- configure.ac.orig  2017-07-02 00:40:29.000000000 +0000
++++ configure.ac
+@@ -392,6 +392,9 @@ AS_IF([test "$have_sdl2" = "yes"], [
+      *-linux*)
+        SDL_CFLAGS="$SDL_CFLAGS -D_GNU_SOURCE=1"
+        ;;
++     *-netbsd*)
++       SDL_CFLAGS="$SDL_CFLAGS -D_GNU_SOURCE=1"
++       ;;
+    esac
+ # Disable mkspr
+    SDL_IMAGE_CFLAGS=
+@@ -412,6 +415,9 @@ case "$host" in
+   *-linux*)
+     GLOBAL_LIBS="$NAEV_LIBS -lm" # feels so wrong
+     ;;
++  *-netbsd*)
++    GLOBAL_LIBS="$NAEV_LIBS -lm"
++    ;;
+   *-mingw*)
+     GLOBAL_LIBS="$NAEV_LIBS -lwsock32"
+     ;;
+@@ -470,10 +476,10 @@ esac
+ # automake to detect when the binary needs recompiling after a library has been
+ # changed.
+ NAEV_DEPENDENCIES="$WIDGET_LIBS"
+-AS_IF([test "$used_lua" == "internal"], [
++AS_IF([test "$used_lua" = "internal"], [
+    NAEV_DEPENDENCIES="$NAEV_DEPENDENCIES $LUA_LIBS"
+ ])
+-AS_IF([test "$used_csparse" == "internal"], [
++AS_IF([test "$used_csparse" = "internal"], [
+    NAEV_DEPENDENCIES="$NAEV_DEPENDENCIES $CSPARSE_LIBS"
+ ])
+ 
diff -r dc280bd55afd -r 615b6639a27e games/naev/patches/patch-src_ndata.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/naev/patches/patch-src_ndata.c      Tue Oct 01 12:25:37 2019 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-src_ndata.c,v 1.1 2019/10/01 12:25:37 nia Exp $
+
+Support loading data from @DATADIR@ (set in the Makefile).
+
+$NetBSD: patch-src_ndata.c,v 1.1 2019/10/01 12:25:37 nia Exp $
+
+--- src/ndata.c.orig   2015-03-17 16:29:43.000000000 +0000
++++ src/ndata.c
+@@ -17,7 +17,7 @@
+  *  2) conf.lua option
+  * -- DONE AS NEEDED --
+  *  3) Current dir laid out (does not work well when iterating through directories)
+- *  4) ndata-$VERSION
++ *  4) @DATADIR@/ndata-$VERSION
+  *  5) Makefile version
+  *  6) ./ndata*
+  *  7) dirname(argv[0])/ndata* (binary path)
+@@ -408,9 +408,9 @@ static int ndata_openFile (void)
+ 
+       /* Check ndata with version appended. */
+ #if VREV < 0
+-      nsnprintf ( pathname, PATH_MAX, "%s-%d.%d.0-beta%d", NDATA_FILENAME, VMAJOR, VMINOR, ABS ( VREV ) );
++      nsnprintf ( pathname, PATH_MAX, "@DATADIR@/%s-%d.%d.0-beta%d", NDATA_FILENAME, VMAJOR, VMINOR, ABS ( VREV ) );
+ #else /* VREV < 0 */
+-      nsnprintf ( pathname, PATH_MAX, "%s-%d.%d.%d", NDATA_FILENAME, VMAJOR, VMINOR, VREV );
++      nsnprintf ( pathname, PATH_MAX, "@DATADIR@/%s-%d.%d.%d", NDATA_FILENAME, VMAJOR, VMINOR, VREV );
+ #endif /* VREV < 0 */
+ 
+       if (ndata_isndata(pathname)) {



Home | Main Index | Thread Index | Old Index