summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2004-05-30 20:47:24 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2004-05-30 20:47:24 +0000
commit1d3a604043fd463bbc9da24f8291eabfc3ad20ad (patch)
tree800d8646f96a7cd498bd27ed2b070b6f170c1da1 /media-libs/vgui/vgui-1.90a.ebuild
parentAdded mailwrapper (diff)
downloadgentoo-2-1d3a604043fd463bbc9da24f8291eabfc3ad20ad.tar.gz
gentoo-2-1d3a604043fd463bbc9da24f8291eabfc3ad20ad.tar.bz2
gentoo-2-1d3a604043fd463bbc9da24f8291eabfc3ad20ad.zip
Initial Commit. Ebuild by Robin Johnson <robbat2@gentoo.org>.
Diffstat (limited to 'media-libs/vgui/vgui-1.90a.ebuild')
-rw-r--r--media-libs/vgui/vgui-1.90a.ebuild77
1 files changed, 77 insertions, 0 deletions
diff --git a/media-libs/vgui/vgui-1.90a.ebuild b/media-libs/vgui/vgui-1.90a.ebuild
new file mode 100644
index 000000000000..f20be3a56dcb
--- /dev/null
+++ b/media-libs/vgui/vgui-1.90a.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/vgui/vgui-1.90a.ebuild,v 1.1 2004/05/30 20:47:24 robbat2 Exp $
+
+MY_PN="v"
+MY_PV="${PV/a}"
+MY_P="${MY_PN}-${MY_PV}"
+DESCRIPTION="V is a free portable C++ GUI Framework"
+HOMEPAGE="http://vgui.sf.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
+ mirror://sourceforge/${PN}/${MY_PN}-${PV}-patch.tar.gz"
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+DEPEND="x11-base/xfree virtual/glibc"
+S=${WORKDIR}/${P}
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ unpack ${MY_PN}-${PV}-patch.tar.gz
+ # renames ./home/vgui to ${S}
+ mv ${WORKDIR}/home/vgui ${S}
+ # put ./home/help inside ${S}
+ mv ${WORKDIR}/home/help ${S}
+
+ cd ${S}
+
+ for i in srcx/vtimer.cxx includex/v/vtimer.h; do
+ sed -e 's|notUsed|notUsedVariable|g' -i ${i}
+ done
+}
+
+src_compile() {
+ local sedexp
+
+ # OpenGL support is broken upstream :-(
+ #if use opengl; then
+ # sedexp="s|^NeedGLw.*|NeedGLw = no|"
+ #else
+ sedexp="s|^NeedGLw.*|NeedGLw = yes|"
+ #fi
+
+ sedexp="${sedexp};s|^ARCH.*|ARCH = linuxelf|"
+ sedexp="${sedexp};s|^HOMEV.*|HOMEV = ${S}|"
+
+ # Motif support is broken upstream
+ #if use motif; then
+ # sedexp="${sedexp};s|^TOOLKIT.*|TOOLKIT = Motif|"
+ #else
+ sedexp="${sedexp};s|^TOOLKIT.*|TOOLKIT = Athena|"
+ #fi
+
+ # set up config stuff
+ sed -e "${sedexp}" -i Config.mk
+
+ # cflag borkage
+ local oldcflags="${CFLAGS}"
+ export CFLAGS=""
+ echo "CFLAGS += ${oldcflags}" >> Config.mk
+
+ emake vlib || die
+ emake vtest utils examples || die
+ emake || die
+}
+
+src_install() {
+ insinto /usr/include/v
+ doins includex/v/*
+ rm bin/ThisIs
+ dobin bin/*
+ dolib.so lib/libVx.so.${MY_PV} lib/libVxgl.so.${MY_PV}
+
+ local docs=/usr/share/doc/${PF}/html
+ dodir ${docs}
+ mv help/vrefman/ ${D}${docs}
+}