summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Kennedy <mkennedy@gentoo.org>2002-06-04 05:43:25 +0000
committerMatthew Kennedy <mkennedy@gentoo.org>2002-06-04 05:43:25 +0000
commit2db1a14c65725f015e0d8114f93d325ae807a5d3 (patch)
tree0629212889c4cf603895146a4b632ec43325e1f9 /media-video/xanim/xanim-2.80.1-r4.ebuild
parentLicense for XAnim (diff)
downloadhistorical-2db1a14c65725f015e0d8114f93d325ae807a5d3.tar.gz
historical-2db1a14c65725f015e0d8114f93d325ae807a5d3.tar.bz2
historical-2db1a14c65725f015e0d8114f93d325ae807a5d3.zip
Fixed to build with GCC3.1. Clean up for lintool bliss.
Diffstat (limited to 'media-video/xanim/xanim-2.80.1-r4.ebuild')
-rw-r--r--media-video/xanim/xanim-2.80.1-r4.ebuild115
1 files changed, 115 insertions, 0 deletions
diff --git a/media-video/xanim/xanim-2.80.1-r4.ebuild b/media-video/xanim/xanim-2.80.1-r4.ebuild
new file mode 100644
index 000000000000..77030124930a
--- /dev/null
+++ b/media-video/xanim/xanim-2.80.1-r4.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Revision: 1.1 $
+
+LICENSE="XAnim"
+SLOT=""
+
+_XA_CYUV_SPARC=xa1.0_cyuv_sparcELF.o
+_XA_CVID_SPARC=xa2.0_cvid_sparcELF.o
+_XA_IV32_SPARC=xa2.0_iv32_sparcELF.o
+_XA_SPARC_EXT=.Z
+
+_XA_CYUV_I386=xa1.0_cyuv_linuxELFg21.o
+_XA_CVID_I386=xa2.0_cvid_linuxELFg21.o
+_XA_IV32_I386=xa2.1_iv32_linuxELFg21.o
+_XA_I386_EXT=.gz
+
+_XA_CYUV_PPC=xa1.0_cyuv_linuxPPC.o
+_XA_CVID_PPC=xa2.0_cvid_linuxPPC.o
+_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
+ ;;
+ 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
+ ;;
+esac
+
+A="xanim2801.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}/xanim2801
+DESCRIPTION="XAnim"
+SRC_URI="ftp://xanim.va.pubnix.com/xanim2801.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://xanim.va.pubnix.com"
+
+case $ARCH in
+ sparc)
+ ARCHDEPS="app-arch/ncompress"
+ ;;
+ sparc64)
+ ARCHDEPS="app-arch/ncompress"
+ ;;
+ ppc)
+ ARCHDEPS="app-arch/ncompress"
+ ;;
+ *)
+ ARCHDEPS=""
+ ;;
+esac
+
+DEPEND="virtual/glibc virtual/x11 >=sys-libs/zlib-1.1.3 ${ARCHDEPS}"
+
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack xanim2801.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}
+ # -O higher than -O2 breaks for GCC3.1
+ CFLAGS=${CFLAGS//-O[0-9]/-O2}
+ sed -e "s:-O2:${CFLAGS}:" ${FILESDIR}/Makefile > ${S}/Makefile
+}
+
+src_compile() {
+ make XA_IV32_LIB=mods/${_XA_CYUV} XA_CVID_LIB=mods/${_XA_CVID} \
+ XA_CYUV_LIB=mods/${_XA_IV32} || die
+}
+
+src_install () {
+ into /usr
+ dobin xanim
+ newman docs/xanim.man xanim.1
+ insinto /usr/lib/xanim/mods
+ doins mods/*
+ dodoc README
+ dodoc docs/README.* docs/*.readme docs/*.doc
+}