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 Feb 26 12:28:03 UTC 2020

Modified Files:
        pkgsrc/games/eureka: Makefile PLIST distinfo
        pkgsrc/games/eureka/patches: patch-src_m__files.cc patch-src_main.cc
Added Files:
        pkgsrc/games/eureka: options.mk
Removed Files:
        pkgsrc/games/eureka/patches: patch-Makefile patch-src_e__commands.cc
            patch-src_ui__menu.cc patch-src_ui__window.cc

Log Message:
eureka: Update to 1.27.1

Version 1.27.1 is used for the package with the latest macOS patches. They were
added to the source archive by upstream after the 1.27 release without changing
its name.

The new OpenGL renderer can be disabled with the new package option "opengl"
(recommended on machines without hardware acceleration for OpenGL).
The option "opengl" is ignored if the FLTK package was compiled without OpenGL
support.

CHANGES IN Eureka 1.27
======================

(Since version 1.24)

+ use OpenGL for faster rendering of 2D and 3D views
+ improved non-GL drawing of 2D view, much faster in Linux
+ support mixing textures and flats for ports that allow it
+ improved 3D mode, can move things and sector surfaces
+ ratio lock, makes producing lines at certain angles easier

- a single status bar for both 2D and 3D views
- new popup menus to set edit mode, browser mode, scaling
- render sectors in the 2D view with both lighting and texturing
- create void islands by drawing lines anti-clockwise in a sector
- snap position indicator for 2D view (a light-blue cross)
- added scale '-' and '+' buttons, show scale as percentage
- ability to highlight/select railings in 3D view
- beginning of support for UDMF maps (not usable yet...)

- render BOOM's deep water effect (linetype 242)
  [pkgrc note: Legacy linetype 301 "Translucent 3D water" is now visible
               with the OpenGL renderer too]
- render 3D Floors for EDGE, LEGACY and ZDOOM ports
  [pkgrc note: 3D floors are only visible with the OpenGL renderer]
- render basic slopes for EDGE, ETERNITY, ODAMEX and ZDOOM
  [pkgrc note: Slopes are only visible with the OpenGL renderer]
- render things with a NULL sprite as a blue triangle
- render Hexen map-spots as a green triangle
- render unknown things with a smaller '?' sprite

- preference to combine flats and textures in a single browser
- preference to show all textures on a one-sided linedef
- preference for linedef information (Length, Angle, Ratio)

- support ESC key to cancel a current action (e.g. dragging)
- support SHIFT and CTRL when using mouse-wheel to move in 3D view
- support the FreeDM iwad
- support TNT and Plutonia textures in FreeDoom2 iwad
- support Hexen map format in the ETERNITY port
- support PNG, JPEG and TGA images in sprite/flat/patch lumps
- added portal specials 156 and 107 to the ZDOOM port
- added missing specials 105, 106 and 130 to the ZDOOM port
- improvements to the Makefile
- improvements to the MacOS build files

- fixed mode menu disappearing into Window's task bar when maximized
- fixed not remembering test-in-game EXE when port is "vanilla"
- fixed the 'Online Docs' command in the Help menu
- fixed window title not showing correct map name
- fixed Re-bind in key binding dialog to show new key as valid
- fixed grid getting out-of-sync with the "hide in FREE mode"
- fixed needless line flips when drawing clockwise within a sector


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/games/eureka/Makefile \
    pkgsrc/games/eureka/PLIST pkgsrc/games/eureka/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/games/eureka/options.mk
cvs rdiff -u -r1.1 -r0 pkgsrc/games/eureka/patches/patch-Makefile \
    pkgsrc/games/eureka/patches/patch-src_e__commands.cc \
    pkgsrc/games/eureka/patches/patch-src_ui__menu.cc \
    pkgsrc/games/eureka/patches/patch-src_ui__window.cc
cvs rdiff -u -r1.1 -r1.2 pkgsrc/games/eureka/patches/patch-src_m__files.cc \
    pkgsrc/games/eureka/patches/patch-src_main.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/games/eureka/Makefile
diff -u pkgsrc/games/eureka/Makefile:1.1 pkgsrc/games/eureka/Makefile:1.2
--- pkgsrc/games/eureka/Makefile:1.1    Wed Sep 11 16:26:17 2019
+++ pkgsrc/games/eureka/Makefile        Wed Feb 26 12:28:02 2020
@@ -1,7 +1,10 @@
-# $NetBSD: Makefile,v 1.1 2019/09/11 16:26:17 micha Exp $
+# $NetBSD: Makefile,v 1.2 2020/02/26 12:28:02 micha Exp $
 
-DISTNAME=      eureka-124-source
-PKGNAME=       ${DISTNAME:S/-source//:S/-1/-1./}
+DISTNAME=      eureka-127-source
+# The latest macOS patches were added after the release of 1.27 but
+# unfortunately the archive name was not changed.
+# Use version 1.27.1 for the package based on the updated source archive
+PKGNAME=       ${DISTNAME:S/-source/.1/:S/-1/-1./}
 CATEGORIES=    games
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=eureka-editor/}
 
@@ -10,33 +13,33 @@ HOMEPAGE=   https://sourceforge.net/projec
 COMMENT=       Doom/Heretic/Hexen map editor
 LICENSE=       gnu-gpl-v2
 
-USE_LANGUAGES= c++
+# Makefile declares "-std=c++03"
+USE_LANGUAGES= c++03
 USE_TOOLS+=    gmake
 
-WRKSRC=                ${WRKDIR}/${PKGNAME_NOREV}-source
+WRKSRC=                ${WRKDIR}/eureka-1.27-source
 
 # DOOMWADDIR is intentionally shared with other Doom packages
-DOOMWADDIR=    share/doom
+DOOMWADDIR=            share/doom
+INSTALLATION_DIRS=     bin
 
 # 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_MESSAGE.prefix=  Preparing main.cc ...
 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_MESSAGE.dwd=     Preparing m_files.cc ...
 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
+.include "options.mk"
 
 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 pkgsrc/games/eureka/PLIST:1.1 pkgsrc/games/eureka/PLIST:1.2
--- pkgsrc/games/eureka/PLIST:1.1       Wed Sep 11 16:26:17 2019
+++ pkgsrc/games/eureka/PLIST   Wed Feb 26 12:28:02 2020
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2019/09/11 16:26:17 micha Exp $
+@comment $NetBSD: PLIST,v 1.2 2020/02/26 12:28:02 micha Exp $
 bin/eureka
 share/eureka/about_logo.png
 share/eureka/bindings.cfg
@@ -12,9 +12,12 @@ 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/common/plutonia_tex.ugh
+share/eureka/common/tnt_tex.ugh
 share/eureka/defaults.cfg
 share/eureka/games/doom.ugh
 share/eureka/games/doom2.ugh
+share/eureka/games/freedm.ugh
 share/eureka/games/freedoom1.ugh
 share/eureka/games/freedoom2.ugh
 share/eureka/games/hacx.ugh
Index: pkgsrc/games/eureka/distinfo
diff -u pkgsrc/games/eureka/distinfo:1.1 pkgsrc/games/eureka/distinfo:1.2
--- pkgsrc/games/eureka/distinfo:1.1    Wed Sep 11 16:26:17 2019
+++ pkgsrc/games/eureka/distinfo        Wed Feb 26 12:28:02 2020
@@ -1,12 +1,8 @@
-$NetBSD: distinfo,v 1.1 2019/09/11 16:26:17 micha Exp $
+$NetBSD: distinfo,v 1.2 2020/02/26 12:28:02 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
+SHA1 (eureka-127-source.tar.gz) = 0bde0e4b2e0c4ee20c6633eceabb03d23db1c8db
+RMD160 (eureka-127-source.tar.gz) = 527a2f2ab978902fc7e5b21f52726b66614e66a3
+SHA512 (eureka-127-source.tar.gz) = f634d1abe1e3ebc2b2d33eab95c715ea0a315f2bd485d84738d1daee70047224216cffff801a8389e3c616d28a727c6c1b4fd0f89ab2585ee09d3648dd12fbc9
+Size (eureka-127-source.tar.gz) = 1159172 bytes
+SHA1 (patch-src_m__files.cc) = 5bdfaefa324408632a8e649c8994479e7ec00ae1
+SHA1 (patch-src_main.cc) = 7c107f89e64ec2de5588880c71ba0e24b1aaf354

Index: pkgsrc/games/eureka/patches/patch-src_m__files.cc
diff -u pkgsrc/games/eureka/patches/patch-src_m__files.cc:1.1 pkgsrc/games/eureka/patches/patch-src_m__files.cc:1.2
--- pkgsrc/games/eureka/patches/patch-src_m__files.cc:1.1       Wed Sep 11 16:26:17 2019
+++ pkgsrc/games/eureka/patches/patch-src_m__files.cc   Wed Feb 26 12:28:02 2020
@@ -1,10 +1,10 @@
-$NetBSD: patch-src_m__files.cc,v 1.1 2019/09/11 16:26:17 micha Exp $
+$NetBSD: patch-src_m__files.cc,v 1.2 2020/02/26 12:28:02 micha Exp $
 
-Add placeholder for pkgsrc DOOMEADDIR to beginning of search list.
+Add placeholder for pkgsrc DOOMWADDIR 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 
+@@ -723,6 +723,7 @@ static const char * SearchForIWAD(const 
                "c:/doom2",
                "c:/doom95",
  #else
Index: pkgsrc/games/eureka/patches/patch-src_main.cc
diff -u pkgsrc/games/eureka/patches/patch-src_main.cc:1.1 pkgsrc/games/eureka/patches/patch-src_main.cc:1.2
--- pkgsrc/games/eureka/patches/patch-src_main.cc:1.1   Wed Sep 11 16:26:17 2019
+++ pkgsrc/games/eureka/patches/patch-src_main.cc       Wed Feb 26 12:28:02 2020
@@ -1,10 +1,11 @@
-$NetBSD: patch-src_main.cc,v 1.1 2019/09/11 16:26:17 micha Exp $
+$NetBSD: patch-src_main.cc,v 1.2 2020/02/26 12:28:02 micha Exp $
 
 Add placeholder for pkgsrc PREFIX to beginning of search list.
+Remove date to make builds reproducible (based on Debian patch).
 
---- src/main.cc.orig   2018-08-05 08:20:26.000000000 +0000
+--- src/main.cc.orig   2019-09-27 11:13:24.000000000 +0000
 +++ src/main.cc
-@@ -301,6 +301,7 @@ static void Determine_InstallPath(const 
+@@ -317,6 +317,7 @@ static void Determine_InstallPath(const 
  #else
        static const char *prefixes[] =
        {
@@ -12,3 +13,12 @@ Add placeholder for pkgsrc PREFIX to beg
                "/usr/local",
                "/usr",
                "/opt",
+@@ -968,7 +968,7 @@ static void ShowHelp()
+ 
+ static void ShowVersion()
+ {
+-      printf("Eureka version " EUREKA_VERSION " (" __DATE__ ")\n");
++      printf("Eureka version " EUREKA_VERSION " (Reproducible build)\n");
+ 
+       fflush(stdout);
+ }

Added files:

Index: pkgsrc/games/eureka/options.mk
diff -u /dev/null pkgsrc/games/eureka/options.mk:1.1
--- /dev/null   Wed Feb 26 12:28:03 2020
+++ pkgsrc/games/eureka/options.mk      Wed Feb 26 12:28:02 2020
@@ -0,0 +1,29 @@
+# $NetBSD: options.mk,v 1.1 2020/02/26 12:28:02 micha Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.eureka
+PKG_SUPPORTED_OPTIONS= opengl xdg-utils
+PKG_SUGGESTED_OPTIONS= opengl xdg-utils
+
+.include "../../mk/bsd.options.mk"
+
+.include "../../x11/fltk13/buildlink3.mk"
+
+# opengl: Use OpenGL for rendering
+# If FLTK is compiled without opengl option, it is always disabled here too.
+# If FLTK is compiled with opengl option, disabling it here allows to force
+# usage of the software renderer (recommended without hardware acceleration).
+.if empty(PKG_OPTIONS.fltk13:Mopengl) || empty(PKG_OPTIONS:Mopengl)
+SUBST_CLASSES+=                opengl
+SUBST_STAGE.opengl=    do-configure
+SUBST_MESSAGE.opengl=  Disable OpenGL renderer in Makefile ...
+SUBST_FILES.opengl=    Makefile
+SUBST_SED.opengl=      -e 's,\# CXXFLAGS += -DNO_OPENGL,CXXFLAGS += -DNO_OPENGL,'
+SUBST_SED.opengl+=     -e 's, --use-gl,,'
+SUBST_SED.opengl+=     -e 's,LIBS += -lGLU -lGL,\#LIBS += -lGLU -lGL,'
+.endif
+
+# xdg-utils: Create dependency for xdg-utils (Portland project)
+# Can be used by FLTK for fl_open_uri() on X11.
+.if !empty(PKG_OPTIONS:Mxdg-utils)
+DEPENDS+=      xdg-utils>=1.1:../../misc/xdg-utils
+.endif



Home | Main Index | Thread Index | Old Index