pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/eureka games/eureka: import eureka-1.24



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bea5c00b8769
branches:  trunk
changeset: 339356:bea5c00b8769
user:      micha <micha%pkgsrc.org@localhost>
date:      Wed Sep 11 16:26:17 2019 +0000

description:
games/eureka: import eureka-1.24

Eureka is a map editor for the classic DOOM games, and a few related games
such as Heretic and Hexen. It supports Linux, Windows and OS X.

There is a 2D mode to create the layout and a 3D mode to check e.g. texture
alignment.

diffstat:

 games/eureka/DESCR                            |   5 +++
 games/eureka/Makefile                         |  42 +++++++++++++++++++++++++++
 games/eureka/PLIST                            |  36 +++++++++++++++++++++++
 games/eureka/distinfo                         |  12 +++++++
 games/eureka/patches/patch-Makefile           |  35 ++++++++++++++++++++++
 games/eureka/patches/patch-src_e__commands.cc |  21 +++++++++++++
 games/eureka/patches/patch-src_m__files.cc    |  14 +++++++++
 games/eureka/patches/patch-src_main.cc        |  14 +++++++++
 games/eureka/patches/patch-src_ui__menu.cc    |  16 ++++++++++
 games/eureka/patches/patch-src_ui__window.cc  |  17 ++++++++++
 10 files changed, 212 insertions(+), 0 deletions(-)

diffs (252 lines):

diff -r ba1be7054b0f -r bea5c00b8769 games/eureka/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/eureka/DESCR        Wed Sep 11 16:26:17 2019 +0000
@@ -0,0 +1,5 @@
+Eureka is a map editor for the classic DOOM games, and a few related games
+such as Heretic and Hexen. It supports Linux, Windows and OS X.
+
+There is a 2D mode to create the layout and a 3D mode to check e.g. texture
+alignment.
diff -r ba1be7054b0f -r bea5c00b8769 games/eureka/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/eureka/Makefile     Wed Sep 11 16:26:17 2019 +0000
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1 2019/09/11 16:26:17 micha Exp $
+
+DISTNAME=      eureka-124-source
+PKGNAME=       ${DISTNAME:S/-source//:S/-1/-1./}
+CATEGORIES=    games
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=eureka-editor/}
+
+MAINTAINER=    micha%NetBSD.org@localhost
+HOMEPAGE=      https://sourceforge.net/projects/eureka-editor/
+COMMENT=       Doom/Heretic/Hexen map editor
+LICENSE=       gnu-gpl-v2
+
+USE_LANGUAGES= c++
+USE_TOOLS+=    gmake
+
+WRKSRC=                ${WRKDIR}/${PKGNAME_NOREV}-source
+
+# DOOMWADDIR is intentionally shared with other Doom packages
+DOOMWADDIR=    share/doom
+
+# Modify internal search path to check ${PREFIX}/share hierarchy first
+SUBST_CLASSES+=                prefix
+SUBST_STAGE.prefix=    do-configure
+SUBST_MESSAGE.prefix=  Preparing main.cc file ...
+SUBST_FILES.prefix=    src/main.cc
+SUBST_SED.prefix=      -e 's,PKGSRC_PREFIX,${PREFIX},'
+
+# Modify internal search path for DOOMWADDIR (if environment variable not set)
+SUBST_CLASSES+=                dwd
+SUBST_STAGE.dwd=       do-configure
+SUBST_MESSAGE.dwd=     Preparing m_files.cc file ...
+SUBST_FILES.dwd=       src/m_files.cc
+SUBST_SED.dwd=         -e 's,PKGSRC_DOOMWADDIR,${PREFIX}/${DOOMWADDIR},'
+
+# Can be used by FLTK for fl_open_uri() on X11
+DEPENDS+=                      xdg-utils>=1.1:../../misc/xdg-utils
+
+BUILDLINK_API_DEPENDS.zlib+=   zlib>=1.2.3
+.include "../../devel/zlib/buildlink3.mk"
+# FLTK version 1.4 is supported too
+.include "../../x11/fltk13/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r ba1be7054b0f -r bea5c00b8769 games/eureka/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/eureka/PLIST        Wed Sep 11 16:26:17 2019 +0000
@@ -0,0 +1,36 @@
+@comment $NetBSD: PLIST,v 1.1 2019/09/11 16:26:17 micha Exp $
+bin/eureka
+share/eureka/about_logo.png
+share/eureka/bindings.cfg
+share/eureka/common/doom_colors.ugh
+share/eureka/common/doom_groups.ugh
+share/eureka/common/doom_lines.ugh
+share/eureka/common/doom_sectors.ugh
+share/eureka/common/doom_tex.ugh
+share/eureka/common/doom_things.ugh
+share/eureka/common/gen_types.ugh
+share/eureka/common/hexen_groups.ugh
+share/eureka/common/hexen_lines.ugh
+share/eureka/common/hexen_sectors.ugh
+share/eureka/defaults.cfg
+share/eureka/games/doom.ugh
+share/eureka/games/doom2.ugh
+share/eureka/games/freedoom1.ugh
+share/eureka/games/freedoom2.ugh
+share/eureka/games/hacx.ugh
+share/eureka/games/harm1.ugh
+share/eureka/games/heretic.ugh
+share/eureka/games/hexen.ugh
+share/eureka/games/plutonia.ugh
+share/eureka/games/strife1.ugh
+share/eureka/games/tnt.ugh
+share/eureka/operations.cfg
+share/eureka/ports/boom.ugh
+share/eureka/ports/edge.ugh
+share/eureka/ports/eternity.ugh
+share/eureka/ports/legacy.ugh
+share/eureka/ports/mbf.ugh
+share/eureka/ports/odamex.ugh
+share/eureka/ports/vanilla.ugh
+share/eureka/ports/xdoom.ugh
+share/eureka/ports/zdoom.ugh
diff -r ba1be7054b0f -r bea5c00b8769 games/eureka/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/eureka/distinfo     Wed Sep 11 16:26:17 2019 +0000
@@ -0,0 +1,12 @@
+$NetBSD: distinfo,v 1.1 2019/09/11 16:26:17 micha Exp $
+
+SHA1 (eureka-124-source.tar.gz) = 78754c63bda8296627b185f62a6ec57e5c618a15
+RMD160 (eureka-124-source.tar.gz) = 9e6ea0f207d9445c64fca31531112adad6d0299d
+SHA512 (eureka-124-source.tar.gz) = 27f858ac0ea366932777830dca289db456ba68a90bbfa507dcf734f4aa0b0b72fd5654ab8cb0305c9a51793e97fb7b686a5860cc00d37304eab5db1cecbb3c05
+Size (eureka-124-source.tar.gz) = 1111598 bytes
+SHA1 (patch-Makefile) = c5e36dd8c41b745ab7c3197077937967f9263ecd
+SHA1 (patch-src_e__commands.cc) = 7b5c9bcd4db15462335ac988acc42609ee3c4c07
+SHA1 (patch-src_m__files.cc) = de29f214c96a26e906ec35c63a692ab00898157d
+SHA1 (patch-src_main.cc) = 7e3a1db40d055f04622ac7cd6ae3997ed77e66ea
+SHA1 (patch-src_ui__menu.cc) = 0ba9a84b25db2543e5ede793ad9a5405e63b4281
+SHA1 (patch-src_ui__window.cc) = c058e793e57b8208d3287c658ec2e2c7457380f9
diff -r ba1be7054b0f -r bea5c00b8769 games/eureka/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/eureka/patches/patch-Makefile       Wed Sep 11 16:26:17 2019 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-Makefile,v 1.1 2019/09/11 16:26:17 micha Exp $
+
+Create ${PREFIX}/bin for installation.
+Do not force user root, to allow installation with non-root account.
+
+--- Makefile.orig      2018-08-27 08:42:00.000000000 +0000
++++ Makefile
+@@ -141,18 +141,19 @@ stripped: all
+ INSTALL_DIR=$(DESTDIR)$(PREFIX)/share/eureka
+ 
+ install: stripped
+-      install -o root -m 755 $(PROGRAM) $(DESTDIR)$(PREFIX)/bin/
++      install -d $(DESTDIR)$(PREFIX)/bin
++      install -m 755 $(PROGRAM) $(DESTDIR)$(PREFIX)/bin
+       install -d $(INSTALL_DIR)/games
+       install -d $(INSTALL_DIR)/common
+       install -d $(INSTALL_DIR)/ports
+       rm -f $(INSTALL_DIR)/games/freedoom.ugh
+-      install -o root -m 644 bindings.cfg $(INSTALL_DIR)/bindings.cfg
+-      install -o root -m 644 defaults.cfg $(INSTALL_DIR)/defaults.cfg
+-      install -o root -m 644 operations.cfg $(INSTALL_DIR)/operations.cfg
+-      install -o root -m 644 misc/about_logo.png $(INSTALL_DIR)/about_logo.png
+-      install -o root -m 644 games/*.* $(INSTALL_DIR)/games
+-      install -o root -m 644 common/*.* $(INSTALL_DIR)/common
+-      install -o root -m 644 ports/*.* $(INSTALL_DIR)/ports
++      install -m 644 bindings.cfg $(INSTALL_DIR)/bindings.cfg
++      install -m 644 defaults.cfg $(INSTALL_DIR)/defaults.cfg
++      install -m 644 operations.cfg $(INSTALL_DIR)/operations.cfg
++      install -m 644 misc/about_logo.png $(INSTALL_DIR)/about_logo.png
++      install -m 644 games/*.* $(INSTALL_DIR)/games
++      install -m 644 common/*.* $(INSTALL_DIR)/common
++      install -m 644 ports/*.* $(INSTALL_DIR)/ports
+ 
+ full-install: install
+       xdg-desktop-menu  install --novendor misc/eureka.desktop
diff -r ba1be7054b0f -r bea5c00b8769 games/eureka/patches/patch-src_e__commands.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/eureka/patches/patch-src_e__commands.cc     Wed Sep 11 16:26:17 2019 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-src_e__commands.cc,v 1.1 2019/09/11 16:26:17 micha Exp $
+
+Show error message if function fl_open_uri() fails.
+
+--- src/e_commands.cc.orig     2018-08-03 04:22:13.000000000 +0000
++++ src/e_commands.cc
+@@ -1180,7 +1180,13 @@ void CMD_LogViewer()
+ 
+ void CMD_OnlineDocs()
+ {
+-      fl_open_uri("http://eureka-editor.sourceforge.net/?n=Docs.Index";);
++      int rv;
++
++      rv = fl_open_uri("http://eureka-editor.sourceforge.net/?n=Docs.Index";);
++      if (1 != rv)
++      {
++              Beep("Failed to open WWW browser");
++      }
+ }
+ 
+ 
diff -r ba1be7054b0f -r bea5c00b8769 games/eureka/patches/patch-src_m__files.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/eureka/patches/patch-src_m__files.cc        Wed Sep 11 16:26:17 2019 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_m__files.cc,v 1.1 2019/09/11 16:26:17 micha Exp $
+
+Add placeholder for pkgsrc DOOMEADDIR to beginning of search list.
+
+--- src/m_files.cc.orig        2018-06-23 11:29:07.000000000 +0000
++++ src/m_files.cc
+@@ -721,6 +721,7 @@ static const char * SearchForIWAD(const 
+               "c:/doom2",
+               "c:/doom95",
+ #else
++              "PKGSRC_DOOMWADDIR",
+               "/usr/share/games/doom",
+               "/usr/share/doom",
+               "/usr/local/share/games/doom",
diff -r ba1be7054b0f -r bea5c00b8769 games/eureka/patches/patch-src_main.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/eureka/patches/patch-src_main.cc    Wed Sep 11 16:26:17 2019 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_main.cc,v 1.1 2019/09/11 16:26:17 micha Exp $
+
+Add placeholder for pkgsrc PREFIX to beginning of search list.
+
+--- src/main.cc.orig   2018-08-05 08:20:26.000000000 +0000
++++ src/main.cc
+@@ -301,6 +301,7 @@ static void Determine_InstallPath(const 
+ #else
+       static const char *prefixes[] =
+       {
++              "PKGSRC_PREFIX",
+               "/usr/local",
+               "/usr",
+               "/opt",
diff -r ba1be7054b0f -r bea5c00b8769 games/eureka/patches/patch-src_ui__menu.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/eureka/patches/patch-src_ui__menu.cc        Wed Sep 11 16:26:17 2019 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_ui__menu.cc,v 1.1 2019/09/11 16:26:17 micha Exp $
+
+Fix internal name for Online Documentation menu entry.
+
+--- src/ui_menu.cc.orig        2018-08-03 04:23:43.000000000 +0000
++++ src/ui_menu.cc
+@@ -412,7 +412,8 @@ static void tools_do_view_logs(Fl_Widget
+ 
+ static void help_do_online_docs(Fl_Widget *w, void * data)
+ {
+-      ExecuteCommand("Documentation");
++      //ExecuteCommand("Documentation");
++      ExecuteCommand("OnlineDocs");
+ }
+ 
+ static void help_do_about(Fl_Widget *w, void * data)
diff -r ba1be7054b0f -r bea5c00b8769 games/eureka/patches/patch-src_ui__window.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/eureka/patches/patch-src_ui__window.cc      Wed Sep 11 16:26:17 2019 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_ui__window.cc,v 1.1 2019/09/11 16:26:17 micha Exp $
+
+Prepare for FLTK 1.4 and allow minor numbers larger than 3 too.
+
+--- src/ui_window.cc.orig      2018-07-22 10:30:09.000000000 +0000
++++ src/ui_window.cc
+@@ -30,8 +30,9 @@
+ #include <unistd.h>
+ #endif
+ 
++/* pkgsrc: Prepare for the upcoming FLTK 1.4.0 release */
+ #if (FL_MAJOR_VERSION != 1 ||  \
+-     FL_MINOR_VERSION != 3 ||  \
++     FL_MINOR_VERSION < 3 ||  \
+      FL_PATCH_VERSION < 0)
+ #error "Require FLTK version 1.3.0 or later"
+ #endif



Home | Main Index | Thread Index | Old Index