diff options
-rw-r--r-- | games-util/eureka/Manifest | 3 | ||||
-rw-r--r-- | games-util/eureka/eureka-111.ebuild | 26 | ||||
-rw-r--r-- | games-util/eureka/files/eureka-111-gentoo-makefile.patch | 66 |
3 files changed, 95 insertions, 0 deletions
diff --git a/games-util/eureka/Manifest b/games-util/eureka/Manifest new file mode 100644 index 0000000..f212549 --- /dev/null +++ b/games-util/eureka/Manifest @@ -0,0 +1,3 @@ +AUX eureka-111-gentoo-makefile.patch 1859 SHA256 f33bf4a1b5abf92885c6b025062f9268f97cadfd80021c133046094bd968ebd9 SHA512 c678a9459b8e8567a966d50c1badec14dd9bfd1167aa60e42be8668ecf3c8a7dc1290f358ebf5b94a6b9bdc9caf16ed908f82556a6b35665f4cc87dc393475cb WHIRLPOOL ac516fa2031fe81c4dde7c38dbfad878a2650104e2758fa24502a4c940939eeb15f47eaba3bcb5a569e5ed1edabc392bab5adac276042ec500f971730a48c9b3 +DIST eureka-111-source.tar.gz 1056913 SHA256 c29988b7e974ce61e7744ace8f768db48af926b453e604016faafc8b9e479735 SHA512 ff11338c5b175ee6f461769897e393148b69b4ebb5ce7be1b7da1ed685c6b6fcb566a5021f762b661b526b9c99b9f796e746e517ae75084faf6e7797cc64d7a3 WHIRLPOOL f28c5bd8bbe17aaef538b3f18b61f1d9c98759aff5f8fb01d63ef798eebc04fe790117da95d77dab573c4bad55f88ded53091426ed2e53a3aae858063c1e7c8b +EBUILD eureka-111.ebuild 561 SHA256 15c893b8557080cfd2ee7761c17b32d9841893bbc0327108157f22402f8d9a99 SHA512 bd0f13e330cc1ad639d55e14a9ff60468e8344a4e6da16af7044380231c0e17fd4aebffc0b87d32cfec2ab295638ef826700887a1dc503b1154d5855d7d2aa15 WHIRLPOOL c9b05de0b6e4f53474f8dd5412a49d30d5f3476a6efe17f340c2b1de76230d355ebb9d746cb5afe6ae0d37bf2f2ecff0075e22eee7d44b0a5b0fac8e0541f5ae diff --git a/games-util/eureka/eureka-111.ebuild b/games-util/eureka/eureka-111.ebuild new file mode 100644 index 0000000..568a0ff --- /dev/null +++ b/games-util/eureka/eureka-111.ebuild @@ -0,0 +1,26 @@ +# Copyright 2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Map editor for the classic DOOM games, and a few related games such as Heretic and Hexen." +HOMEPAGE="http://eureka-editor.sourceforge.net/" +SRC_URI="mirror://sourceforge/eureka-editor/${PV}/${P}-source.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S=${WORKDIR}/${PN}-1.11-source + +DEPEND=">=x11-libs/fltk-1.3.0 + sys-libs/zlib" + +src_prepare() { + eapply "${FILESDIR}"/${P}-gentoo-makefile.patch + + eapply_user +} + diff --git a/games-util/eureka/files/eureka-111-gentoo-makefile.patch b/games-util/eureka/files/eureka-111-gentoo-makefile.patch new file mode 100644 index 0000000..4d48c60 --- /dev/null +++ b/games-util/eureka/files/eureka-111-gentoo-makefile.patch @@ -0,0 +1,66 @@ +--- eureka-1.11-source/Makefile.bak 2016-02-12 22:53:32.653241531 +0100 ++++ eureka-1.11-source/Makefile 2016-02-12 22:53:52.227240841 +0100 +@@ -7,7 +7,7 @@ + PROGRAM=eureka + + # prefix choices: /usr /usr/local /opt +-PREFIX=/usr/local ++PREFIX=$(DESTDIR)usr + + OBJ_DIR=obj_linux + +@@ -23,15 +23,19 @@ + + INSTALL_DIR=$(PREFIX)/share/eureka + ++FLTK_CXXFLAGS:=$(shell fltk-config --cxxflags) ++FLTK_LDFLAGS:=$(shell fltk-config --ldflags) ++ + CXXFLAGS=$(OPTIMISE) -Wall -D$(OS) \ + -Iglbsp_src \ +- -D_THREAD_SAFE -D_REENTRANT ++ $(FLTK_CXXFLAGS) + +-LDFLAGS=-L/usr/X11R6/lib ++LDFLAGS=-L/usr/X11R6/lib \ ++ $(FLTK_LDFLAGS) + + LIBS= \ + -lfltk_images -lfltk_gl -lfltk \ +- -lX11 -lXext -lXft -lfontconfig -lXinerama \ ++ -lX11 -lXext -lXft -lfontconfig \ + -lpng -ljpeg -lGL -lz -lm + + +@@ -46,7 +50,7 @@ + LIBS= \ + -lfltk_images -lfltk \ + -lfltk_png -lfltk_jpeg \ +- -lX11 -lXext -lXft -lfontconfig -lXinerama \ ++ -lX11 -lXext -lXft -lfontconfig \ + -lz -lm + endif + +@@ -156,8 +160,9 @@ + stripped: $(PROGRAM) + strip $(STRIP_FLAGS) $(PROGRAM) + +-install: stripped +- install -o root -m 755 $(PROGRAM) $(PREFIX)/bin/ ++install: ++ install -d $(PREFIX)/bin/ ++ install -D -o root -m 755 $(PROGRAM) $(PREFIX)/bin/ + install -d $(INSTALL_DIR)/games + install -d $(INSTALL_DIR)/common + install -d $(INSTALL_DIR)/ports +@@ -169,8 +174,8 @@ + install -o root -m 644 common/*.* $(INSTALL_DIR)/common + install -o root -m 644 ports/*.* $(INSTALL_DIR)/ports + # install -o root -m 644 mods/*.* $(INSTALL_DIR)/mods +- xdg-desktop-menu install --novendor misc/eureka.desktop +- xdg-icon-resource install --novendor --size 32 misc/eureka.xpm ++# xdg-desktop-menu install --novendor misc/eureka.desktop ++# xdg-icon-resource install --novendor --size 32 misc/eureka.xpm + + uninstall: + rm -v $(PREFIX)/bin/$(PROGRAM) |