Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 2020 13:15:48 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r556730 - in head/games: . eureka eureka/files
Message-ID:  <202012011315.0B1DFm2b061809@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Tue Dec  1 13:15:48 2020
New Revision: 556730
URL: https://svnweb.freebsd.org/changeset/ports/556730

Log:
  Eureka is a map (WAD etc.) editor (based on Yadex) for the classic
  DOOM games, and a few related games such as Strife, Harmony, HACX,
  Heretic, and Hexen.
  
  PR:	240654

Added:
  head/games/eureka/
  head/games/eureka/Makefile   (contents, props changed)
  head/games/eureka/distinfo   (contents, props changed)
  head/games/eureka/files/
  head/games/eureka/files/patch-Makefile   (contents, props changed)
  head/games/eureka/files/patch-src_main.cc   (contents, props changed)
  head/games/eureka/pkg-descr   (contents, props changed)
  head/games/eureka/pkg-plist   (contents, props changed)
Modified:
  head/games/Makefile

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Tue Dec  1 13:08:36 2020	(r556729)
+++ head/games/Makefile	Tue Dec  1 13:15:48 2020	(r556730)
@@ -237,6 +237,7 @@
     SUBDIR += epiphany-game
     SUBDIR += etracer
     SUBDIR += euchre
+    SUBDIR += eureka
     SUBDIR += evilfinder
     SUBDIR += evq3
     SUBDIR += excido

Added: head/games/eureka/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/eureka/Makefile	Tue Dec  1 13:15:48 2020	(r556730)
@@ -0,0 +1,31 @@
+# Created by: Kalten <kalten@gmx.at>
+# $FreeBSD$
+
+PORTNAME=	eureka
+DISTVERSION=	1.27b
+CATEGORIES=	games
+MASTER_SITES=	SF/${PORTNAME}-editor/Eureka/${PORTVERSION:R}
+DISTNAME=	${PORTNAME}-${DISTVERSION}-source
+
+MAINTAINER=	kalten@gmx.at
+COMMENT=	Map editor for various Doom-derived games
+
+LICENSE=	GPLv2+
+
+LIB_DEPENDS=	libfltk.so:x11-toolkits/fltk \
+		libfontconfig.so:x11-fonts/fontconfig \
+		libpng.so:graphics/png
+
+USES=		desktop-file-utils gl gmake jpeg xorg
+USE_GL=		gl glu
+USE_XORG=	x11 xcursor xext xfixes xft xinerama xpm xrender
+
+PORTDOCS=	AUTHORS.txt CHANGES.txt README.txt TODO.txt
+
+OPTIONS_DEFINE=	DOCS
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>

Added: head/games/eureka/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/eureka/distinfo	Tue Dec  1 13:15:48 2020	(r556730)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1587783391
+SHA256 (eureka-1.27b-source.tar.gz) = 10d6ac1bd6cabb5ae8d19127de8bf725218d98fbe67bd016671b12c9c286f22b
+SIZE (eureka-1.27b-source.tar.gz) = 1159366

Added: head/games/eureka/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/eureka/files/patch-Makefile	Tue Dec  1 13:15:48 2020	(r556730)
@@ -0,0 +1,23 @@
+--- Makefile.orig	2020-02-05 07:40:29 UTC
++++ Makefile
+@@ -29,7 +29,7 @@ LIBS ?=
+ # general things needed by Eureka
+ CXXFLAGS += $(CXX_DIALECT)
+ LIBS += -lGLU -lGL
+-LIBS += -lz -lm
++LIBS += -lz -lm -lXpm
+ 
+ # add this for software rendering, remove '--use-gl' below, remove -lGL and -lGLU from LIBS
+ # CXXFLAGS += -DNO_OPENGL
+@@ -151,7 +151,10 @@ stripped: all
+ INSTALL_DIR=$(DESTDIR)$(PREFIX)/share/eureka
+ 
+ install: all
+-	install -m 755 $(PROGRAM) $(DESTDIR)$(PREFIX)/bin/
++	$(BSD_INSTALL_PROGRAM) $(PROGRAM) $(DESTDIR)$(PREFIX)/bin
++	$(BSD_INSTALL_MAN) misc/$(PROGRAM).6 $(DESTDIR)$(MANPREFIX)/man/man6
++	$(BSD_INSTALL_DATA) misc/$(PROGRAM).desktop \
++		$(DESTDIR)$(PREFIX)/share/applications
+ 	install -d $(INSTALL_DIR)/games
+ 	install -d $(INSTALL_DIR)/common
+ 	install -d $(INSTALL_DIR)/ports

Added: head/games/eureka/files/patch-src_main.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/eureka/files/patch-src_main.cc	Tue Dec  1 13:15:48 2020	(r556730)
@@ -0,0 +1,43 @@
+--- src/main.cc.orig	2020-02-01 07:51:21 UTC
++++ src/main.cc
+@@ -49,6 +49,7 @@
+ 
+ #ifndef WIN32
+ #include <time.h>
++#include <X11/xpm.h>	// for the window icon
+ #endif
+ 
+ // IOANCH: be able to call OSX specific routines (needed for ~/Library)
+@@ -646,6 +647,16 @@ static void Main_OpenWindow()
+ 
+ 	main_win->label("Eureka v" EUREKA_VERSION);
+ 
++#include "../misc/eureka.xpm"
++
++	// needed if display has not been previously opened
++	fl_open_display();
++
++	Pixmap p, mask;
++	XpmCreatePixmapFromData(fl_display, DefaultRootWindow(fl_display),
++	    logo_E4_32x32_xpm, &p, &mask, NULL);
++	main_win->icon((char *)p);
++
+ 	// show window (pass some dummy arguments)
+ 	{
+ 		int   argc = 1;
+@@ -660,6 +671,15 @@ static void Main_OpenWindow()
+ #endif
+ 		app_has_focus = true;
+ 	}
++
++	// read in the current window hints, then modify them to
++	// support icon transparency (make sure that transparency
++	// mask is enabled in the XPM icon)
++	XWMHints* hints = XGetWMHints(fl_display, fl_xid(main_win));
++	hints->flags |= IconMaskHint;
++	hints->icon_mask = mask;
++	XSetWMHints(fl_display, fl_xid(main_win), hints);
++	XFree(hints);
+ 
+ 	// kill the stupid bright background of the "plastic" scheme
+ 	if (gui_scheme == 2)

Added: head/games/eureka/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/eureka/pkg-descr	Tue Dec  1 13:15:48 2020	(r556730)
@@ -0,0 +1,10 @@
+Eureka is a map (WAD etc.) editor (based on Yadex) for the classic
+DOOM games, and a few related games such as Strife, Harmony, HACX,
+Heretic, and Hexen.
+
+It features multiple-level undo and redo, a 3D preview, texture and
+thing browsers, a built-in nodes builder, panels for directly editing
+the properties of map objects, a flexible key binding system, and low
+system requirements (e.g. a 3D card is not required).
+
+WWW: http://eureka-editor.sourceforge.net/

Added: head/games/eureka/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/eureka/pkg-plist	Tue Dec  1 13:15:48 2020	(r556730)
@@ -0,0 +1,40 @@
+bin/eureka
+man/man6/eureka.6.gz
+share/applications/eureka.desktop
+%%DATADIR%%/about_logo.png
+%%DATADIR%%/bindings.cfg
+%%DATADIR%%/common/doom_colors.ugh
+%%DATADIR%%/common/doom_groups.ugh
+%%DATADIR%%/common/doom_lines.ugh
+%%DATADIR%%/common/doom_sectors.ugh
+%%DATADIR%%/common/doom_tex.ugh
+%%DATADIR%%/common/doom_things.ugh
+%%DATADIR%%/common/gen_types.ugh
+%%DATADIR%%/common/hexen_groups.ugh
+%%DATADIR%%/common/hexen_lines.ugh
+%%DATADIR%%/common/hexen_sectors.ugh
+%%DATADIR%%/common/plutonia_tex.ugh
+%%DATADIR%%/common/tnt_tex.ugh
+%%DATADIR%%/defaults.cfg
+%%DATADIR%%/games/doom.ugh
+%%DATADIR%%/games/doom2.ugh
+%%DATADIR%%/games/freedm.ugh
+%%DATADIR%%/games/freedoom1.ugh
+%%DATADIR%%/games/freedoom2.ugh
+%%DATADIR%%/games/hacx.ugh
+%%DATADIR%%/games/harm1.ugh
+%%DATADIR%%/games/heretic.ugh
+%%DATADIR%%/games/hexen.ugh
+%%DATADIR%%/games/plutonia.ugh
+%%DATADIR%%/games/strife1.ugh
+%%DATADIR%%/games/tnt.ugh
+%%DATADIR%%/operations.cfg
+%%DATADIR%%/ports/boom.ugh
+%%DATADIR%%/ports/edge.ugh
+%%DATADIR%%/ports/eternity.ugh
+%%DATADIR%%/ports/legacy.ugh
+%%DATADIR%%/ports/mbf.ugh
+%%DATADIR%%/ports/odamex.ugh
+%%DATADIR%%/ports/vanilla.ugh
+%%DATADIR%%/ports/xdoom.ugh
+%%DATADIR%%/ports/zdoom.ugh



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012011315.0B1DFm2b061809>