summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2005-10-01 12:01:03 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2005-10-01 12:01:03 +0000
commit47076701bb23cb51cc2ad577a6430beec72bb450 (patch)
tree1619fe42068278adb808ab4382a844496c2e7dc2 /media-libs/ming/ming-0.2a-r2.ebuild
parentPre-masking portage-2.0.53_rc1 for initial testing. (diff)
downloadgentoo-2-47076701bb23cb51cc2ad577a6430beec72bb450.tar.gz
gentoo-2-47076701bb23cb51cc2ad577a6430beec72bb450.tar.bz2
gentoo-2-47076701bb23cb51cc2ad577a6430beec72bb450.zip
Fix bug 101336.
(Portage version: 2.0.52-r1)
Diffstat (limited to 'media-libs/ming/ming-0.2a-r2.ebuild')
-rw-r--r--media-libs/ming/ming-0.2a-r2.ebuild78
1 files changed, 78 insertions, 0 deletions
diff --git a/media-libs/ming/ming-0.2a-r2.ebuild b/media-libs/ming/ming-0.2a-r2.ebuild
new file mode 100644
index 000000000000..cf1f550d8383
--- /dev/null
+++ b/media-libs/ming/ming-0.2a-r2.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/ming/ming-0.2a-r2.ebuild,v 1.1 2005/10/01 12:01:03 nelchael Exp $
+
+inherit eutils toolchain-funcs python
+
+DESCRIPTION="A OpenSource library from flash movie generation"
+HOMEPAGE="http://www.opaque.net/ming/"
+SRC_URI="http://www.opaque.net/ming/${P}.tgz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="python"
+
+DEPEND="virtual/libc
+ python? ( virtual/python )
+ sys-devel/flex"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-fpic.patch
+ epatch ${FILESDIR}/${P}-gentoo.diff
+ sed -e 's,gcc -g -Wall,$(CC) $(CFLAGS),g' -i ${S}/py_ext/Makefile
+}
+
+src_compile() {
+ einfo "Regenerating parser files..."
+ cd "${S}/src/actioncompiler"
+ for f in *.flex; do
+ flex "${f}"
+ done
+ einfo "Compiling..."
+ cd "${S}"
+ emake CC="$(tc-getCC) -Wall" CFLAGS="${CFLAGS}" all static || die
+ cd "${S}/util"
+ emake CC="$(tc-getCC) -Wall" CFLAGS="${CFLAGS}" bindump hexdump listswf listfdb listmp3 listjpeg makefdb swftophp || die
+ if use python; then
+ cd ${S}/py_ext
+ python_version
+ my_python="python${PYVER}"
+ PYLIBDIR="/usr/$(get_libdir)/python${PYVER}"
+ PYINCDIR="/usr/include/python${PYVER}"
+ emake CC="$(tc-getCC) -Wall" CFLAGS="${CFLAGS}" \
+ PYINCDIR="${PYINCDIR}" PYLIBDIR="${PYLIBDIR}" \
+ mingcmodule.so
+ fi
+}
+
+src_install() {
+ dolib.so libming.so || die "lib.so"
+ dolib.a libming.a || die "lib.a"
+ insinto /usr/include
+ doins ming.h || die "include"
+ exeinto /usr/$(get_libdir)/ming
+ doexe util/{bindump,hexdump,listswf,listfdb,listmp3,listjpeg,makefdb,swftophp} || die "utils"
+ dodoc CHANGES CREDITS README TODO
+ newdoc util/README README.util
+ newdoc util/TODO TODO.util
+ if use python; then
+ cd ${S}/py_ext
+ python_version
+ PYLIBDIR="/usr/$(get_libdir)/python${PYVER}"
+ insinto ${PYLIBDIR}/site-packages
+ doins mingcmodule.so ming.py
+ newdoc README README.python
+ newdoc TODO TODO.python
+ newdoc INSTALL INSTALL.python
+ dodoc test.py shape.py
+ fi
+}
+pkg_postinst() {
+ if use python; then
+ python_version
+ python_mod_compile /usr/$(get_libdir)/python${PYVER}/site-packages/ming.py
+ fi
+}