summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2010-11-25 10:59:00 +0000
committerAlfredo Tupone <tupone@gentoo.org>2010-11-25 10:59:00 +0000
commita8933d0ff2e4abcf50912a8c208222a3bd8cfdde (patch)
treec7d72faacc745f9e0227f0ab385737674625942e /games-util/glbsp/glbsp-2.24.ebuild
parentnew upstream release. fixes bug #331553. (diff)
downloadhistorical-a8933d0ff2e4abcf50912a8c208222a3bd8cfdde.tar.gz
historical-a8933d0ff2e4abcf50912a8c208222a3bd8cfdde.tar.bz2
historical-a8933d0ff2e4abcf50912a8c208222a3bd8cfdde.zip
Version bump to 2.24 Bug #188153
Package-Manager: portage-2.1.9.24/cvs/Linux i686
Diffstat (limited to 'games-util/glbsp/glbsp-2.24.ebuild')
-rw-r--r--games-util/glbsp/glbsp-2.24.ebuild67
1 files changed, 67 insertions, 0 deletions
diff --git a/games-util/glbsp/glbsp-2.24.ebuild b/games-util/glbsp/glbsp-2.24.ebuild
new file mode 100644
index 000000000000..1006b6510e33
--- /dev/null
+++ b/games-util/glbsp/glbsp-2.24.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-util/glbsp/glbsp-2.24.ebuild,v 1.1 2010/11/25 10:58:59 tupone Exp $
+
+EAPI=2
+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 ~ppc ~x86"
+IUSE="fltk"
+
+RDEPEND="fltk? ( x11-libs/fltk:1.1 )"
+DEPEND="${RDEPEND}"
+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 "sed failed"
+}
+
+src_compile() {
+ emake -f Makefile.unx || die "emake failed"
+ if use fltk ; then
+ emake -f Makefile.unx glBSPX \
+ FLTK_FLAGS="$(fltk-config --cflags)" \
+ FLTK_LIBS="$(fltk-config --use-images --ldflags)" \
+ || die "emake failed"
+ emake -f Makefile.unx -C nodeview \
+ FLTK_CFLAGS="$(fltk-config --cflags)" \
+ FLTK_LIBS="$(fltk-config --use-images --ldflags)" \
+ || die "emake failed"
+ fi
+}
+
+src_install() {
+ dobin glbsp || die "dobin failed"
+ dolib.a libglbsp.a || die "dolib.a failed"
+ doman glbsp.1
+ dodoc AUTHORS.txt glbsp.txt
+ insinto "/usr/include"
+ doins "src/glbsp.h" || die "doins failed"
+
+ if use fltk ; then
+ newbin glBSPX glbspx || die "newbin failed"
+ newicon gui/icon.xpm glbspx.xpm
+ make_desktop_entry glbspx glBSPX glbspx
+
+ dobin nodeview/nodeview || die "dobin failed"
+ docinto nodeview
+ dodoc nodeview/{README,TODO}.txt || die "dodoc failed"
+ fi
+}