summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authormicha <micha@pkgsrc.org>2019-09-11 16:26:17 +0000
committermicha <micha@pkgsrc.org>2019-09-11 16:26:17 +0000
commitc69e742b0bac53c5e2b65443d13194b8a84e4f9d (patch)
treec8cb763d642870cf4c435a9d514faaf97e9b09d5 /games
parent7d756f9840d2e9ea352bba7a8e7ecd7ad06fb486 (diff)
downloadpkgsrc-c69e742b0bac53c5e2b65443d13194b8a84e4f9d.tar.gz
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 (limited to 'games')
-rw-r--r--games/eureka/DESCR5
-rw-r--r--games/eureka/Makefile42
-rw-r--r--games/eureka/PLIST36
-rw-r--r--games/eureka/distinfo12
-rw-r--r--games/eureka/patches/patch-Makefile35
-rw-r--r--games/eureka/patches/patch-src_e__commands.cc21
-rw-r--r--games/eureka/patches/patch-src_m__files.cc14
-rw-r--r--games/eureka/patches/patch-src_main.cc14
-rw-r--r--games/eureka/patches/patch-src_ui__menu.cc16
-rw-r--r--games/eureka/patches/patch-src_ui__window.cc17
10 files changed, 212 insertions, 0 deletions
diff --git a/games/eureka/DESCR b/games/eureka/DESCR
new file mode 100644
index 00000000000..7aa4a287273
--- /dev/null
+++ b/games/eureka/DESCR
@@ -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 --git a/games/eureka/Makefile b/games/eureka/Makefile
new file mode 100644
index 00000000000..105deb48418
--- /dev/null
+++ b/games/eureka/Makefile
@@ -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
+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 --git a/games/eureka/PLIST b/games/eureka/PLIST
new file mode 100644
index 00000000000..49e4bd0e78a
--- /dev/null
+++ b/games/eureka/PLIST
@@ -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 --git a/games/eureka/distinfo b/games/eureka/distinfo
new file mode 100644
index 00000000000..62631d33045
--- /dev/null
+++ b/games/eureka/distinfo
@@ -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 --git a/games/eureka/patches/patch-Makefile b/games/eureka/patches/patch-Makefile
new file mode 100644
index 00000000000..5699e557d61
--- /dev/null
+++ b/games/eureka/patches/patch-Makefile
@@ -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 --git a/games/eureka/patches/patch-src_e__commands.cc b/games/eureka/patches/patch-src_e__commands.cc
new file mode 100644
index 00000000000..bc5574f7066
--- /dev/null
+++ b/games/eureka/patches/patch-src_e__commands.cc
@@ -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 --git a/games/eureka/patches/patch-src_m__files.cc b/games/eureka/patches/patch-src_m__files.cc
new file mode 100644
index 00000000000..418a74a4b31
--- /dev/null
+++ b/games/eureka/patches/patch-src_m__files.cc
@@ -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 --git a/games/eureka/patches/patch-src_main.cc b/games/eureka/patches/patch-src_main.cc
new file mode 100644
index 00000000000..4e1e75a9e44
--- /dev/null
+++ b/games/eureka/patches/patch-src_main.cc
@@ -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 --git a/games/eureka/patches/patch-src_ui__menu.cc b/games/eureka/patches/patch-src_ui__menu.cc
new file mode 100644
index 00000000000..ac31de04f65
--- /dev/null
+++ b/games/eureka/patches/patch-src_ui__menu.cc
@@ -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 --git a/games/eureka/patches/patch-src_ui__window.cc b/games/eureka/patches/patch-src_ui__window.cc
new file mode 100644
index 00000000000..d3bef78c9ab
--- /dev/null
+++ b/games/eureka/patches/patch-src_ui__window.cc
@@ -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