diff options
Diffstat (limited to 'media-libs/libdvdcss/libdvdcss-1.2.9.ebuild')
-rw-r--r-- | media-libs/libdvdcss/libdvdcss-1.2.9.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/media-libs/libdvdcss/libdvdcss-1.2.9.ebuild b/media-libs/libdvdcss/libdvdcss-1.2.9.ebuild new file mode 100644 index 000000000000..dce1e5366c00 --- /dev/null +++ b/media-libs/libdvdcss/libdvdcss-1.2.9.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libdvdcss/libdvdcss-1.2.9.ebuild,v 1.1 2005/07/14 10:26:17 flameeyes Exp $ + +inherit eutils + +DESCRIPTION="A portable abstraction library for DVD decryption" +HOMEPAGE="http://developers.videolan.org/libdvdcss/" +SRC_URI="http://www.videolan.org/pub/${PN}/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="1.2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sparc ~x86" +IUSE="doc static" + +DEPEND="doc? ( app-doc/doxygen )" +RDEPEND="" + +pkg_preinst() { + # these could cause problems if they exist from + # earlier builds + for x in libdvdcss.so.0 libdvdcss.so.1 libdvdcss.0.dylib libdvdcss.1.dylib + do + if [ -f /usr/$(get_libdir)/${x} ] || [ -L /usr/$(get_libdir)/${x} ]; then + rm -f /usr/$(get_libdir)/${x} + fi + done +} + +src_unpack() { + unpack ${A} + cd ${S} + + # add configure switches to enable/disable doc building + epatch ${FILESDIR}/${P}-doc.patch + + autoreconf || die "autoreconf failed" + libtoolize --copy --force || die "libtoolize failed" +} + +src_compile() { + # Dont use custom optimiziations, as it gives problems + # on some archs + unset CFLAGS + unset CXXFLAGS + + econf \ + $(use_enable static) \ + $(use_enable doc) \ + --disable-dependency-tracking || die + emake || die +} + +src_install() { + einstall || die + + dodoc AUTHORS ChangeLog INSTALL NEWS README + use doc && dohtml doc/html/* + + ## + ## 0.0.3.* and 1.0.0 compat + ## + + # NOTE: this should be the last code in src_install() !!! + + if [ -L ${D}/usr/$(get_libdir)/libdvdcss.so ]; then + realname=$(readlink ${D}/usr/$(get_libdir)/libdvdcss.so) + + for x in libdvdcss.so.0 libdvdcss.so.1; do + dosym ${realname} /usr/$(get_libdir)/${x} + done + fi +} |