summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomáš Chvátal <scarabeus@gentoo.org>2009-08-02 01:23:09 +0200
committerTomáš Chvátal <scarabeus@gentoo.org>2009-08-02 01:23:09 +0200
commit36cd01dc3ebfa6658352da8255e6d3b847d28a57 (patch)
tree79b1926f46cf9208bc9dc98a23a01bf3863d6b9a /dev-games
parent(Documentation/CONTRIBUTORS) adding myself (diff)
downloadgamerlay-36cd01dc3ebfa6658352da8255e6d3b847d28a57.tar.gz
gamerlay-36cd01dc3ebfa6658352da8255e6d3b847d28a57.tar.bz2
gamerlay-36cd01dc3ebfa6658352da8255e6d3b847d28a57.zip
[dev-games/clanlib] Initial commit. Todo: deps, configure/install.
Diffstat (limited to 'dev-games')
-rw-r--r--dev-games/clanlib/Manifest3
-rw-r--r--dev-games/clanlib/clanlib-2.0.3.ebuild63
-rw-r--r--dev-games/clanlib/metadata.xml5
3 files changed, 71 insertions, 0 deletions
diff --git a/dev-games/clanlib/Manifest b/dev-games/clanlib/Manifest
new file mode 100644
index 0000000..a9d68f6
--- /dev/null
+++ b/dev-games/clanlib/Manifest
@@ -0,0 +1,3 @@
+DIST ClanLib-2.0.3.tgz 21638906 RMD160 4002a8bf1c2e28b045d161958ff1ece4ca9174fb SHA1 5dc91c507020f1fc35d7035775e4d181d6b0e888 SHA256 dff2cd720bf1c40cd9d7e4f8bc9ce20bbc3ebb843bf9917080360d82ffd79206
+EBUILD clanlib-2.0.3.ebuild 1849 RMD160 6f5ac442234f2dc9a2e26d34f2d45f6a8bec0642 SHA1 a20c68d2d4d6a79e5f8524905e6655f259f61e34 SHA256 8f2bacab027fd74bd36091e661173385dc1943aa9933c00d7737cf48098d254e
+MISC metadata.xml 161 RMD160 734c72757bdba2e93d5c7cfa946fd9eb69e01681 SHA1 e721608e30cdca8dd809c1024687fe4887c49293 SHA256 5102a957a119374da719ca711f473e89fd4183d4e91e86f59e2fc4dce7e607dc
diff --git a/dev-games/clanlib/clanlib-2.0.3.ebuild b/dev-games/clanlib/clanlib-2.0.3.ebuild
new file mode 100644
index 0000000..fcf0fcf
--- /dev/null
+++ b/dev-games/clanlib/clanlib-2.0.3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+MY_P="ClanLib-${PV}"
+inherit flag-o-matic eutils
+
+DESCRIPTION="multi-platform game development library"
+HOMEPAGE="http://www.clanlib.org/"
+SRC_URI="http://clanlib.org/download/releases-${PV:0:3}/${MY_P}.tgz"
+
+LICENSE="ZLIB"
+SLOT="2"
+KEYWORDS="~amd64 ~x86"
+IUSE="opengl sdl vorbis doc mikmod ipv6"
+
+# opengl keyword does not drop the GL/GLU requirement.
+# Autoconf files need to be fixed
+RDEPEND="media-libs/libpng
+ media-libs/jpeg
+ virtual/opengl
+ virtual/glu
+ sdl? (
+ media-libs/libsdl
+ media-libs/sdl-gfx
+ )
+ x11-libs/libXt
+ x11-libs/libXmu
+ x11-libs/libXxf86vm
+ media-libs/alsa-lib
+ mikmod? ( media-libs/libmikmod )
+ vorbis? ( media-libs/libvorbis )"
+DEPEND="${RDEPEND}
+ x11-proto/xf86vidmodeproto"
+
+S="${WORKDIR}/${MY_P}"
+
+src_configure() {
+ econf \
+ --enable-dyn \
+ --enable-clanNetwork \
+ --disable-dependency-tracking \
+ $(use_enable x86 asm386) \
+ $(use_enable doc docs) \
+ $(use_enable opengl clanGL) \
+ $(use_enable sdl clanSDL) \
+ $(use_enable vorbis clanVorbis) \
+ $(use_enable mikmod clanMikMod) \
+ $(use_enable ipv6 getaddr) \
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ if use doc ; then
+ dodir /usr/share/doc/${PF}/html
+ mv "${D}"/usr/share/doc/clanlib/* "${D}"/usr/share/doc/${PF}/html/ || die
+ rm -rf "${D}"/usr/share/doc/clanlib
+ cp -r Examples Resources "${D}"/usr/share/doc/${PF}/ || die
+ fi
+ dodoc CODING_STYLE CREDITS NEWS PATCHES README* INSTALL.linux
+}
diff --git a/dev-games/clanlib/metadata.xml b/dev-games/clanlib/metadata.xml
new file mode 100644
index 0000000..4a5a466
--- /dev/null
+++ b/dev-games/clanlib/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>playboys</herd>
+</pkgmetadata>