summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-07-17 00:30:43 +0000
committerMike Frysinger <vapier@gentoo.org>2003-07-17 00:30:43 +0000
commit24db7e496c90bb384069b225bfef1ab42fd2af24 (patch)
tree7b319aab691127eba15e9b00e896346f23d56e24 /dev-games
parentset ppc (diff)
downloadgentoo-2-24db7e496c90bb384069b225bfef1ab42fd2af24.tar.gz
gentoo-2-24db7e496c90bb384069b225bfef1ab42fd2af24.tar.bz2
gentoo-2-24db7e496c90bb384069b225bfef1ab42fd2af24.zip
SLOT!
Diffstat (limited to 'dev-games')
-rw-r--r--dev-games/clanlib/clanlib-0.5.4-r3.ebuild54
1 files changed, 28 insertions, 26 deletions
diff --git a/dev-games/clanlib/clanlib-0.5.4-r3.ebuild b/dev-games/clanlib/clanlib-0.5.4-r3.ebuild
index 8d78b48c33ef..b784c0701f57 100644
--- a/dev-games/clanlib/clanlib-0.5.4-r3.ebuild
+++ b/dev-games/clanlib/clanlib-0.5.4-r3.ebuild
@@ -1,17 +1,18 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-games/clanlib/clanlib-0.5.4-r3.ebuild,v 1.1 2003/07/13 03:13:40 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-games/clanlib/clanlib-0.5.4-r3.ebuild,v 1.2 2003/07/17 00:30:43 vapier Exp $
+
+inherit flag-o-matic
+replace-flags -O? -O2
-MY_P=ClanLib-${PV}
-S=${WORKDIR}/${MY_P}
DESCRIPTION="multi-platform game development library"
-SRC_URI="http://dark.x.dtu.dk/~mbn/clanlib/download/download-sphair/${MY_P}-1.tar.gz"
+SRC_URI="http://dark.x.dtu.dk/~mbn/clanlib/download/download-sphair/ClanLib-${PV}-1.tar.gz"
HOMEPAGE="http://www.clanlib.org/"
LICENSE="LGPL-2"
-SLOT="0"
+SLOT="0.5"
KEYWORDS="x86"
-IUSE="arts oss esd alsa png opengl truetype X oggvorbis mikmod jpeg directfb doc"
+IUSE="arts oss esd alsa png opengl truetype X oggvorbis mikmod jpeg directfb doc joystick"
DEPEND=">=media-libs/hermes-1.3.2
X? ( virtual/x11 )
@@ -22,31 +23,22 @@ DEPEND=">=media-libs/hermes-1.3.2
directfb? ( dev-libs/DirectFB )
oggvorbis? ( media-libs/libvorbis )"
-src_compile() {
- local myconf="`use_enable jpeg`"
+S=${WORKDIR}/ClanLib-${PV}
+src_compile() {
+ local myconf=""
use jpeg || myconf="${myconf} --enable-smalljpeg"
-
use alsa || use oss || use esd || use arts \
&& myconf="${myconf} --enable-clansound" \
|| myconf="${myconf} --disable-clansound"
- # this is not a USE flag yet, but there should be one
- # use joystick \
- # && myconf="${myconf} --enable-joystick" \
- # || myconf="${myconf} --disable-joystick"
-
- export CFLAGS=${CFLAGS/-O?/-O2}
- export CXXFLAGS=${CXXFLAGS/-O?/-O2}
-
- ./configure \
- --host=${CHOST} \
- --prefix=/usr \
- --enable-joystick \
+ econf \
+ --libdir=/usr/lib/${P} \
--enable-network \
--enable-asm386 \
--enable-dyn \
--enable-gui \
+ `use_enable jpeg` \
`use_enable X x11` \
`use_enable directfb` \
`use_enable opengl` \
@@ -54,6 +46,7 @@ src_compile() {
`use_enable png` \
`use_enable truetype ttf` \
`use_enable mikmod` \
+ `use_enable joystick` \
--enable-vidmode \
${myconf} || die
@@ -64,10 +57,19 @@ src_compile() {
src_install() {
make \
prefix=${D}/usr \
+ LIB_PREFIX=${D}/usr/lib/${P} \
install || die
- use doc && {
- make \
- prefix=${D}/usr/share \
- docs_install || die
- }
+ mv ${D}/usr/include/{ClanLib,${P}}
+ if [ `use doc` ] ; then
+ make docs_install \
+ prefix=${D}/usr/share \
+ docs_install \
+ || die
+ fi
+ dobin ${FILESDIR}/clanlib-config
+ dodoc BUGS CODING_STYLE HARDWARE NEWS PATCHES PORTING README* ROADMAP
+}
+
+pkg_postinst() {
+ clanlib-config ${PV}
}