pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/games/eureka
Module Name: pkgsrc
Committed By: micha
Date: Wed Sep 11 16:26:17 UTC 2019
Added Files:
pkgsrc/games/eureka: DESCR Makefile PLIST distinfo
pkgsrc/games/eureka/patches: patch-Makefile patch-src_e__commands.cc
patch-src_m__files.cc patch-src_main.cc patch-src_ui__menu.cc
patch-src_ui__window.cc
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/games/eureka/DESCR pkgsrc/games/eureka/Makefile \
pkgsrc/games/eureka/PLIST pkgsrc/games/eureka/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/games/eureka/patches/patch-Makefile \
pkgsrc/games/eureka/patches/patch-src_e__commands.cc \
pkgsrc/games/eureka/patches/patch-src_m__files.cc \
pkgsrc/games/eureka/patches/patch-src_main.cc \
pkgsrc/games/eureka/patches/patch-src_ui__menu.cc \
pkgsrc/games/eureka/patches/patch-src_ui__window.cc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/games/eureka/DESCR
diff -u /dev/null pkgsrc/games/eureka/DESCR:1.1
--- /dev/null Wed Sep 11 16:26:17 2019
+++ pkgsrc/games/eureka/DESCR Wed Sep 11 16:26:17 2019
@@ -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.
Index: pkgsrc/games/eureka/Makefile
diff -u /dev/null pkgsrc/games/eureka/Makefile:1.1
--- /dev/null Wed Sep 11 16:26:17 2019
+++ pkgsrc/games/eureka/Makefile Wed Sep 11 16:26:17 2019
@@ -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"
Index: pkgsrc/games/eureka/PLIST
diff -u /dev/null pkgsrc/games/eureka/PLIST:1.1
--- /dev/null Wed Sep 11 16:26:17 2019
+++ pkgsrc/games/eureka/PLIST Wed Sep 11 16:26:17 2019
@@ -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
Index: pkgsrc/games/eureka/distinfo
diff -u /dev/null pkgsrc/games/eureka/distinfo:1.1
--- /dev/null Wed Sep 11 16:26:17 2019
+++ pkgsrc/games/eureka/distinfo Wed Sep 11 16:26:17 2019
@@ -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
Index: pkgsrc/games/eureka/patches/patch-Makefile
diff -u /dev/null pkgsrc/games/eureka/patches/patch-Makefile:1.1
--- /dev/null Wed Sep 11 16:26:17 2019
+++ pkgsrc/games/eureka/patches/patch-Makefile Wed Sep 11 16:26:17 2019
@@ -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
Index: pkgsrc/games/eureka/patches/patch-src_e__commands.cc
diff -u /dev/null pkgsrc/games/eureka/patches/patch-src_e__commands.cc:1.1
--- /dev/null Wed Sep 11 16:26:17 2019
+++ pkgsrc/games/eureka/patches/patch-src_e__commands.cc Wed Sep 11 16:26:17 2019
@@ -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");
++ }
+ }
+
+
Index: pkgsrc/games/eureka/patches/patch-src_m__files.cc
diff -u /dev/null pkgsrc/games/eureka/patches/patch-src_m__files.cc:1.1
--- /dev/null Wed Sep 11 16:26:17 2019
+++ pkgsrc/games/eureka/patches/patch-src_m__files.cc Wed Sep 11 16:26:17 2019
@@ -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",
Index: pkgsrc/games/eureka/patches/patch-src_main.cc
diff -u /dev/null pkgsrc/games/eureka/patches/patch-src_main.cc:1.1
--- /dev/null Wed Sep 11 16:26:17 2019
+++ pkgsrc/games/eureka/patches/patch-src_main.cc Wed Sep 11 16:26:17 2019
@@ -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",
Index: pkgsrc/games/eureka/patches/patch-src_ui__menu.cc
diff -u /dev/null pkgsrc/games/eureka/patches/patch-src_ui__menu.cc:1.1
--- /dev/null Wed Sep 11 16:26:17 2019
+++ pkgsrc/games/eureka/patches/patch-src_ui__menu.cc Wed Sep 11 16:26:17 2019
@@ -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)
Index: pkgsrc/games/eureka/patches/patch-src_ui__window.cc
diff -u /dev/null pkgsrc/games/eureka/patches/patch-src_ui__window.cc:1.1
--- /dev/null Wed Sep 11 16:26:17 2019
+++ pkgsrc/games/eureka/patches/patch-src_ui__window.cc Wed Sep 11 16:26:17 2019
@@ -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