summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-06-19 18:17:15 +0000
committerMike Frysinger <vapier@gentoo.org>2003-06-19 18:17:15 +0000
commit01d9ff8428fb610199baf7af577d290857a304ac (patch)
tree6b8dc96288f37d74671d3c8d0dc19440821c0ae6 /media-libs/allegro/allegro-4.0.3.ebuild
parentCFLAGS fix (#11148) + version bump (#20195) + other fixups (diff)
downloadgentoo-2-01d9ff8428fb610199baf7af577d290857a304ac.tar.gz
gentoo-2-01d9ff8428fb610199baf7af577d290857a304ac.tar.bz2
gentoo-2-01d9ff8428fb610199baf7af577d290857a304ac.zip
CFLAGS fix (#11148) + version bump (#20195) + other fixups
Diffstat (limited to 'media-libs/allegro/allegro-4.0.3.ebuild')
-rw-r--r--media-libs/allegro/allegro-4.0.3.ebuild141
1 files changed, 44 insertions, 97 deletions
diff --git a/media-libs/allegro/allegro-4.0.3.ebuild b/media-libs/allegro/allegro-4.0.3.ebuild
index 82104be6dd6e..13362fac22d6 100644
--- a/media-libs/allegro/allegro-4.0.3.ebuild
+++ b/media-libs/allegro/allegro-4.0.3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/allegro/allegro-4.0.3.ebuild,v 1.1 2003/04/25 13:42:25 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/allegro/allegro-4.0.3.ebuild,v 1.2 2003/06/19 18:17:07 vapier Exp $
inherit flag-o-matic
@@ -10,117 +10,64 @@ HOMEPAGE="http://alleg.sourceforge.net/"
LICENSE="Allegro"
SLOT="0"
-KEYWORDS="~x86 ~sparc"
-IUSE="mmx esd static tetex X fbcon oss svga alsa"
+KEYWORDS="x86 sparc"
+IUSE="static mmx sse oss alsa esd arts X fbcon svga tetex"
-RDEPEND="X? ( virtual/x11 )
- alsa? ( media-libs/alsa-lib )
+RDEPEND="alsa? ( media-libs/alsa-lib )
esd? ( media-sound/esound )
+ arts? ( kde-base/arts )
+ X? ( virtual/x11 )
svga? ( media-libs/svgalib )"
DEPEND="${RDEPEND}
tetex? ( app-text/tetex )"
src_compile() {
- # Always enable Linux console support and accompanying drivers
- confopts="${confopts} --enable-linux --enable-vga"
-
- # if USE static defined, use static library as default to link with
- use static \
- && confopts="${confopts} --enable-staticprog --enable-static"
-
- # Pentium optimizations
- if [ ${CHOST} = "i586-pc-linux-gnu" -o ${CHOST} = "i686-pc-linux-gnu" ]
- then
- confopts="${confopts} --enable-pentiumopts"
- fi
-
- # Use MMX instructions
- use mmx \
- && confopts="${confopts} --enable-mmx" \
- || confopts="${confopts} --enable-mmx=no"
-
- # Have OSS support
- use oss \
- && confopts="${confopts} --enable-ossdigi --enable-ossmidi" \
- || confopts="${confopts} --disable-ossdigi --disable-ossmidi"
-
- # Have ALSA support
- use alsa \
- && confopts="${confopts} --enable-alsadigi --enable-alsamidi" \
- || confopts="${confopts} --disable-alsadigi --disable-alsamidi"
-
- # Have ESD support
- use esd \
- && confopts="${confopts} --enable-esddigi" \
- || confopts="${confopts} --disable-esddigi"
-
- # Have X11 support
- use X \
- && confopts="${confopts} \
- --with-x \
- --enable-xwin-shm \
- --enable-xwin-vidmode \
- --enable-xwin-dga \
- --enable-xwin-dga2" \
- || confopts="${confopts} \
- --without-x \
- --disable-xwin-shm \
- --disable-xwin-vidmode \
- --disable-xwin-dga \
- --disable-xwin-dga2"
-
- # Have SVGALib support
- use svga \
- && confopts="${confopts} --enable-svgalib" \
- || confopts="${confopts} --disable-svgalib"
-
- # Have fbcon support
- use fbcon \
- && confopts="${confopts} --enable-fbcon" \
- || confopts="${confopts} --disable-fbcon"
+ filter-flags -fPIC
- # --------------
+ econf \
+ --enable-linux \
+ --enable-vga \
+ `use_enable static` \
+ `use_enable static staticprog` \
+ `use_enable mmx` \
+ `use_enable sse` \
+ `use_enable oss ossdigi` \
+ `use_enable oss ossmidi` \
+ `use_enable alsa alsadigi` \
+ `use_enable alsa alsamidi` \
+ `use_enable esd esddigi` \
+ `use_enable arts artsdigi` \
+ `use_with X x` \
+ `use_enable X xwin-shm` \
+ `use_enable X xwin-vidmode` \
+ `use_enable X xwin-dga` \
+ `use_enable X xwin-dga2` \
+ `use_enable fbcon` \
+ `use_enable svga svgalib` \
+ || die
- econf ${confopts} || die
-
- # emake doesn't work
- filter-flags -fPIC
- make CFLAGS="${CFLAGS/-fPIC/}" || die
-
- if use tetex;
- then
- addwrite "/var/lib/texmf"
- addwrite "/usr/share/texmf"
- addwrite "/var/cache/fonts"
+ cp makefile{,.orig}
+ sed -e "/CFLAGS =.*/s:$: ${CFLAGS}:" \
+ makefile.orig > makefile
+ make || die # emake fails
+
+ if [ `use tetex` ] ; then
+ addwrite /var/lib/texmf
+ addwrite /usr/share/texmf
+ addwrite /var/cache/fonts
make docs-dvi docs-ps || die
fi
-
}
src_install() {
- make \
- prefix=${D}/usr \
- infodir=${D}/usr/share/info \
- mandir=${D}/usr/share/man \
- install install-gzipped-man install-gzipped-info || die
-
- # Different format versions of the Allegro documentation
+ addpredict /usr/share/info
+ make DESTDIR=${D} install install-gzipped-man install-gzipped-info || die
+ # Different format versions of the Allegro documentation
dodoc AUTHORS CHANGES THANKS readme.txt todo.txt
-
- if use tetex;
- then
- dodoc docs/allegro.dvi docs/allegro.ps
- fi
-
+ [ `use tetex` ] && dodoc docs/allegro.{dvi,ps}
dohtml docs/html/*
-
- docinto txt
- dodoc docs/txt/*.txt
-
- docinto rtf
- dodoc docs/rtf/*.rtf
-
- docinto build
- dodoc docs/build/*.txt
+ docinto txt ; dodoc docs/txt/*.txt
+ docinto rtf ; dodoc docs/rtf/*.rtf
+ docinto build ; dodoc docs/build/*.txt
}