diff options
Diffstat (limited to 'games-util/glbsp')
-rw-r--r-- | games-util/glbsp/Manifest | 4 | ||||
-rw-r--r-- | games-util/glbsp/files/glbsp-2.24-ldflags.patch | 22 | ||||
-rw-r--r-- | games-util/glbsp/glbsp-2.24.ebuild | 64 | ||||
-rw-r--r-- | games-util/glbsp/metadata.xml | 11 |
4 files changed, 101 insertions, 0 deletions
diff --git a/games-util/glbsp/Manifest b/games-util/glbsp/Manifest new file mode 100644 index 000000000000..35756228aea6 --- /dev/null +++ b/games-util/glbsp/Manifest @@ -0,0 +1,4 @@ +AUX glbsp-2.24-ldflags.patch 737 BLAKE2B 8450c3fc7d83aa5444802de8e415f1776c82422ced5a4c2320f39ee7989ce601a6fc0b97cc1a94e548d7b8a6bd40d5e53644c0725a694ddea2c0e782515a8b6c SHA512 78425825ea6049299afae48c2de89e9fa3e8f4994f176b7a42785eb3fcff625c69a2b3230f5aa624987fa4290f83eb9cf298d397b74171a2b0d94b70ab446d4f +DIST glbsp_src_224.tar.gz 230977 BLAKE2B a8fce559e2d37e0662dd773f94d781a63bbce66d7fca87b785b7ba095670844fe441093d721eba95eb679457d6217327e93002e54848ed919cf34e552e152030 SHA512 562201093b69ae1db113479f8dd71e474d2d4ea7798b5e156dc096660e0b725a16ba44e8d2bfd332eba89b66d07ac2a1ddd803e75802c8fb3739a420701b2e1a +EBUILD glbsp-2.24.ebuild 1524 BLAKE2B d34b5efb35b791b9409014c4e92f5c6e7f7873759e38a5084bd8444ad7e391da50a0b4d9769b2e04fbb181273035a3a688fe13d19963f4ecec5e67a5522df637 SHA512 753f32d0be4271e40d992dade06d5a61cabace99334568ebcf4776248b03804fe98cdd9b6fb4235559c51e48b62e9ef64a3102964573c9c6ef3bcf40689506fc +MISC metadata.xml 328 BLAKE2B 642bdaa12af0d72ec65674304abdf376413e4721907ff967369be6234f46fc053792bee05d921d14e86d7432f8f355c8329ace8dab8464bdd8332c0e93c4f624 SHA512 ec7fab9de36fc312330b2e8251da6909a7d6ec1350145a7ef9681085993173f8ff8da796d4c868605c4391c7ad8ea4a11fb40e00b4fde754711dd060e0486347 diff --git a/games-util/glbsp/files/glbsp-2.24-ldflags.patch b/games-util/glbsp/files/glbsp-2.24-ldflags.patch new file mode 100644 index 000000000000..e6adb0ff035c --- /dev/null +++ b/games-util/glbsp/files/glbsp-2.24-ldflags.patch @@ -0,0 +1,22 @@ +--- Makefile.unx.old 2010-11-25 11:24:48.000000000 +0100 ++++ Makefile.unx 2010-11-25 11:25:10.000000000 +0100 +@@ -79,8 +79,7 @@ + $(CC) $(CMD_FLAGS) -c $^ -o $@ + + $(CMD_NAME): $(LIB_NAME) $(CMD_OBJS) +- $(CC) $(CMD_FLAGS) $(CMD_OBJS) -o $@ $(LIB_NAME) $(CMD_LIBS) +- $(STRIP) $@ ++ $(CC) $(CMD_FLAGS) $(LDFLAGS) $(CMD_OBJS) -o $@ $(LIB_NAME) $(CMD_LIBS) + + install: $(CMD_NAME) + cp $(CMD_NAME) $(INSTALL_PREFIX)/bin/ +--- Makefile.unx.old 2010-11-25 11:31:27.000000000 +0100 ++++ Makefile.unx 2010-11-25 11:31:31.000000000 +0100 +@@ -125,7 +125,6 @@ + + $(GUI_NAME): $(LIB_NAME) $(GUI_OBJS) + $(CXX) $(GUI_FLAGS) $(GUI_OBJS) -o $@ $(LIB_NAME) $(GUI_LIBS) +- $(STRIP) $@ + + + # ----- DOCUMENTATION --------------------------------------------- diff --git a/games-util/glbsp/glbsp-2.24.ebuild b/games-util/glbsp/glbsp-2.24.ebuild new file mode 100644 index 000000000000..e6c982167ae0 --- /dev/null +++ b/games-util/glbsp/glbsp-2.24.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs versionator + +MY_PV=$(delete_version_separator 1) +DESCRIPTION="A node builder specially designed for OpenGL ports of the DOOM game engine" +HOMEPAGE="http://glbsp.sourceforge.net/" +SRC_URI="mirror://sourceforge/glbsp/${PN}_src_${MY_PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="fltk" + +DEPEND="fltk? ( x11-libs/fltk:1 )" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${P}-source + +src_prepare() { + epatch "${FILESDIR}"/${P}-ldflags.patch + sed -i \ + -e "/^CC=/s:=.*:=$(tc-getCC):" \ + -e "/^CXX=/s:=.*:=$(tc-getCXX):" \ + -e "/^AR=/s:ar:$(tc-getAR):" \ + -e "/^RANLIB=/s:=.*:=$(tc-getRANLIB):" \ + -e "s:-O2:${CFLAGS}:" \ + -e "s:-O -g3:${CFLAGS}:" \ + Makefile.unx \ + nodeview/Makefile.unx || die +} + +src_compile() { + emake -f Makefile.unx + if use fltk ; then + emake -f Makefile.unx glBSPX \ + FLTK_FLAGS="$(fltk-config --cflags)" \ + FLTK_LIBS="$(fltk-config --use-images --ldflags)" + emake -f Makefile.unx -C nodeview \ + FLTK_CFLAGS="$(fltk-config --cflags)" \ + FLTK_LIBS="$(fltk-config --use-images --ldflags)" + fi +} + +src_install() { + dobin glbsp + dolib.a libglbsp.a + doman glbsp.1 + dodoc AUTHORS.txt glbsp.txt + insinto "/usr/include" + doins "src/glbsp.h" + + if use fltk ; then + newbin glBSPX glbspx + newicon gui/icon.xpm glbspx.xpm + make_desktop_entry glbspx glBSPX glbspx + + dobin nodeview/nodeview + docinto nodeview + dodoc nodeview/{README,TODO}.txt + fi +} diff --git a/games-util/glbsp/metadata.xml b/games-util/glbsp/metadata.xml new file mode 100644 index 000000000000..e71bd1594768 --- /dev/null +++ b/games-util/glbsp/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">glbsp</remote-id> + </upstream> +</pkgmetadata> |