summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-08 06:35:06 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-08 06:35:06 +0000
commit7b9e3169dd216ab8fba0a3ae9b94a465f6823d84 (patch)
tree3e8a30b182f0da53a923630f6bb4802632d9747b /media-video/xanim-export/xanim-export-2.80.1-r3.ebuild
parentrepoman (diff)
downloadgentoo-2-7b9e3169dd216ab8fba0a3ae9b94a465f6823d84.tar.gz
gentoo-2-7b9e3169dd216ab8fba0a3ae9b94a465f6823d84.tar.bz2
gentoo-2-7b9e3169dd216ab8fba0a3ae9b94a465f6823d84.zip
repoman ... this was a good example of many things to not do ;)
Diffstat (limited to 'media-video/xanim-export/xanim-export-2.80.1-r3.ebuild')
-rw-r--r--media-video/xanim-export/xanim-export-2.80.1-r3.ebuild163
1 files changed, 75 insertions, 88 deletions
diff --git a/media-video/xanim-export/xanim-export-2.80.1-r3.ebuild b/media-video/xanim-export/xanim-export-2.80.1-r3.ebuild
index 506b2dde9a3a..fae14b4678aa 100644
--- a/media-video/xanim-export/xanim-export-2.80.1-r3.ebuild
+++ b/media-video/xanim-export/xanim-export-2.80.1-r3.ebuild
@@ -1,16 +1,11 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/xanim-export/xanim-export-2.80.1-r3.ebuild,v 1.8 2003/09/07 00:08:13 msterret Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/xanim-export/xanim-export-2.80.1-r3.ebuild,v 1.9 2003/09/08 06:35:06 vapier Exp $
inherit flag-o-matic
-
strip-flags -finline-functions
replace-flags -O3 -O2
-SLOT="0"
-LICENSE="XAnim"
-KEYWORDS="x86"
-
_XA_CYUV_SPARC=xa1.0_cyuv_sparcELF.o
_XA_CVID_SPARC=xa2.0_cvid_sparcELF.o
_XA_IV32_SPARC=xa2.0_iv32_sparcELF.o
@@ -27,104 +22,96 @@ _XA_IV32_PPC=xa2.0_iv32_linuxPPC.o
_XA_PPC_EXT=.Z
case $ARCH in
- sparc*)
- _XA_CYUV=$_XA_CYUV_SPARC
- _XA_CVID=$_XA_CVID_SPARC
- _XA_IV32=$_XA_IV32_SPARC
- _XA_EXT=$_XA_SPARC_EXT
- _XA_UNCOMPRESS=uncompress
- ;;
+ sparc)
+ _XA_CYUV=$_XA_CYUV_SPARC
+ _XA_CVID=$_XA_CVID_SPARC
+ _XA_IV32=$_XA_IV32_SPARC
+ _XA_EXT=$_XA_SPARC_EXT
+ _XA_UNCOMPRESS=uncompress
+ ;;
ppc)
- _XA_CYUV=$_XA_CYUV_PPC
- _XA_CVID=$_XA_CVID_PPC
- _XA_IV32=$_XA_IV32_PPC
- _XA_EXT=$_XA_PPC_EXT
- _XA_UNCOMPRESS=uncompress
- ;;
- *)
- _XA_CYUV=$_XA_CYUV_I386
- _XA_CVID=$_XA_CVID_I386
- _XA_IV32=$_XA_IV32_I386
- _XA_EXT=$_XA_I386_EXT
- _XA_UNCOMPRESS=gunzip
- ;;
+ _XA_CYUV=$_XA_CYUV_PPC
+ _XA_CVID=$_XA_CVID_PPC
+ _XA_IV32=$_XA_IV32_PPC
+ _XA_EXT=$_XA_PPC_EXT
+ _XA_UNCOMPRESS=uncompress
+ ;;
+ x86)
+ _XA_CYUV=$_XA_CYUV_I386
+ _XA_CVID=$_XA_CVID_I386
+ _XA_IV32=$_XA_IV32_I386
+ _XA_EXT=$_XA_I386_EXT
+ _XA_UNCOMPRESS=gunzip
+ ;;
esac
-A="xanim_exporting_edition.tar.gz \
- ${_XA_CYUV_SPARC}${_XA_SPARC_EXT} ${_XA_CVID_SPARC}${_XA_SPARC_EXT} \
- ${_XA_IV32_SPARC}${_XA_SPARC_EXT} \
- ${_XA_CYUV_I386}${_XA_I386_EXT} ${_XA_CVID_I386}${_XA_I386_EXT} \
- ${_XA_IV32_I386}${_XA_I386_EXT} \
- ${_XA_CYUV_PPC}${_XA_PPC_EXT} ${_XA_CVID_PPC}${_XA_PPC_EXT} \
- ${_XA_IV32_PPC}${_XA_PPC_EXT}"
-S=${WORKDIR}/xanim_exporting_edition
DESCRIPTION="XAnim with Quicktime and RAW Audio export functions"
-SRC_URI="http://heroine.linuxave.net/xanim_exporting_edition.tar.gz \
- ftp://xanim.va.pubnix.com/modules/${_XA_CYUV_SPARC}${_XA_SPARC_EXT}
- ftp://xanim.va.pubnix.com/modules/${_XA_CVID_SPARC}${_XA_SPARC_EXT}
- ftp://xanim.va.pubnix.com/modules/${_XA_IV32_SPARC}${_XA_SPARC_EXT}
- ftp://xanim.va.pubnix.com/modules/${_XA_CYUV_PPC}${_XA_PPC_EXT}
- ftp://xanim.va.pubnix.com/modules/${_XA_CVID_PPC}${_XA_PPC_EXT}
- ftp://xanim.va.pubnix.com/modules/${_XA_IV32_PPC}${_XA_PPC_EXT}
- ftp://xanim.va.pubnix.com/modules/${_XA_CYUV_I386}${_XA_I386_EXT}
- ftp://xanim.va.pubnix.com/modules/${_XA_CVID_I386}${_XA_I386_EXT}
- ftp://xanim.va.pubnix.com/modules/${_XA_IV32_I386}${_XA_I386_EXT}"
-
HOMEPAGE="http://heroin.linuxave.net/toys.html"
+SRC_URI="http://heroine.linuxave.net/xanim_exporting_edition.tar.gz
+ sparc? (
+ ftp://xanim.va.pubnix.com/modules/${_XA_CYUV_SPARC}${_XA_SPARC_EXT}
+ ftp://xanim.va.pubnix.com/modules/${_XA_CVID_SPARC}${_XA_SPARC_EXT}
+ ftp://xanim.va.pubnix.com/modules/${_XA_IV32_SPARC}${_XA_SPARC_EXT}
+ )
+ ppc? (
+ ftp://xanim.va.pubnix.com/modules/${_XA_CYUV_PPC}${_XA_PPC_EXT}
+ ftp://xanim.va.pubnix.com/modules/${_XA_CVID_PPC}${_XA_PPC_EXT}
+ ftp://xanim.va.pubnix.com/modules/${_XA_IV32_PPC}${_XA_PPC_EXT}
+ )
+ x86? (
+ ftp://xanim.va.pubnix.com/modules/${_XA_CYUV_I386}${_XA_I386_EXT}
+ ftp://xanim.va.pubnix.com/modules/${_XA_CVID_I386}${_XA_I386_EXT}
+ ftp://xanim.va.pubnix.com/modules/${_XA_IV32_I386}${_XA_I386_EXT}
+ )"
+
+LICENSE="XAnim"
+SLOT="0"
+KEYWORDS="x86 ppc sparc"
DEPEND=">=sys-libs/glibc-2.1.3
>=media-libs/jpeg-6b
>=media-libs/libpng-1.2.1
virtual/x11"
+RDEPEND="app-arch/ncompress"
-case $ARCH in
- sparc)
- RDEPEND="app-arch/ncompress"
- ;;
- sparc64)
- RDEPEND="app-arch/ncompress"
- ;;
- ppc)
- RDEPEND="app-arch/ncompress"
- ;;
-esac
+S=${WORKDIR}/xanim_exporting_edition
src_unpack() {
- unpack xanim_exporting_edition.tar.gz
- mkdir ${S}/mods
- cd ${S}/mods
- cp ${DISTDIR}/${_XA_CYUV}${_XA_EXT} .
- $_XA_UNCOMPRESS ${_XA_CYUV}${_XA_EXT}
- cp ${DISTDIR}/${_XA_CVID}${_XA_EXT} .
- $_XA_UNCOMPRESS ${_XA_CVID}${_XA_EXT}
- cp ${DISTDIR}/${_XA_IV32}${_XA_EXT} .
- $_XA_UNCOMPRESS ${_XA_IV32}${_XA_EXT}
- cd ${S}
- rm xanim
- sed -e "s:-O2:${CFLAGS}:" ${FILESDIR}/Makefile > ${S}/Makefile
+ unpack xanim_exporting_edition.tar.gz
+
+ cd ${S}/mods
+ cp ${DISTDIR}/${_XA_CYUV}${_XA_EXT} .
+ $_XA_UNCOMPRESS ${_XA_CYUV}${_XA_EXT}
+ cp ${DISTDIR}/${_XA_CVID}${_XA_EXT} .
+ $_XA_UNCOMPRESS ${_XA_CVID}${_XA_EXT}
+ cp ${DISTDIR}/${_XA_IV32}${_XA_EXT} .
+ $_XA_UNCOMPRESS ${_XA_IV32}${_XA_EXT}
+
+ cd ${S}
+ rm xanim
+ epatch ${FILESDIR}/${PV}-makefile.patch
}
-src_compile() {
-
-
- cd ${S}/quicktime
- try make XA_IV32_LIB=mods/${_XA_CYUV} XA_CVID_LIB=mods/${_XA_CVID} \
- XA_CYUV_LIB=mods/${_XA_IV32}
+src_compile() {
+ cd ${S}/quicktime
+ make \
+ XA_IV32_LIB=mods/${_XA_CYUV} \
+ XA_CVID_LIB=mods/${_XA_CVID} \
+ XA_CYUV_LIB=mods/${_XA_IV32} \
+ || die "make quicktime failed"
cd ..
- try make XA_IV32_LIB=mods/${_XA_CYUV} XA_CVID_LIB=mods/${_XA_CVID} \
- XA_CYUV_LIB=mods/${_XA_IV32}
-
+ make \
+ XA_IV32_LIB=mods/${_XA_CYUV} \
+ XA_CVID_LIB=mods/${_XA_CVID} \
+ XA_CYUV_LIB=mods/${_XA_IV32} \
+ OPTIMIZE="${CFLAGS}" \
+ || die "main make failed"
}
-src_install () {
-
- into /usr
- newbin xanim xanim-export
- insinto /usr/lib/xanim/mods-export
- doins mods/*
- dodoc README*
- dodoc docs/README.* docs/*.readme docs/*.doc
+src_install() {
+ newbin xanim xanim-export
+ insinto /usr/lib/xanim/mods-export
+ doins mods/*
+ dodoc README*
+ dodoc docs/README.* docs/*.readme docs/*.doc
}
-
-
-