diff options
author | 2006-07-24 19:18:55 +0000 | |
---|---|---|
committer | 2006-07-24 19:18:55 +0000 | |
commit | ceae89f0736c91168317036f1a1819da334f2913 (patch) | |
tree | d93f67e37b784b8ea039d4d0e78b9eb7c392a3e2 /media-libs/libdvb/libdvb-0.5.5.1-r3.ebuild | |
parent | fix changelog (diff) | |
download | gentoo-2-ceae89f0736c91168317036f1a1819da334f2913.tar.gz gentoo-2-ceae89f0736c91168317036f1a1819da334f2913.tar.bz2 gentoo-2-ceae89f0736c91168317036f1a1819da334f2913.zip |
Added patch created by azarah for linking correct shared-libraries with PIC. Installs now to correct dirs with help of multilib.
(Portage version: 2.1.1_pre3-r4)
Diffstat (limited to 'media-libs/libdvb/libdvb-0.5.5.1-r3.ebuild')
-rw-r--r-- | media-libs/libdvb/libdvb-0.5.5.1-r3.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/media-libs/libdvb/libdvb-0.5.5.1-r3.ebuild b/media-libs/libdvb/libdvb-0.5.5.1-r3.ebuild new file mode 100644 index 000000000000..06f7e5c7e2c4 --- /dev/null +++ b/media-libs/libdvb/libdvb-0.5.5.1-r3.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libdvb/libdvb-0.5.5.1-r3.ebuild,v 1.1 2006/07/24 19:18:55 zzam Exp $ + +inherit eutils multilib + +DESCRIPTION="libdvb package with added CAM library and libdvbmpegtools as well as dvb-mpegtools" +HOMEPAGE="http://www.metzlerbros.org/dvb/" +SRC_URI="http://www.metzlerbros.org/dvb/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~x86" +IUSE="doc" + +DEPEND="media-tv/linuxtv-dvb-headers" + +src_unpack() { + unpack ${A} + cd "${S}" + + # Disable compilation of sample programs + # and use DESTDIR when installing + epatch "${FILESDIR}"/${P}-gentoo.patch + epatch "${FILESDIR}"/${P}-gentoo-file-collisions.patch + epatch "${FILESDIR}"/${P}-shared-libs.patch + + sed -i -e '/^CFLAGS=/d' config.mk || die + sed -i Makefile \ + -e 's-/include-/include/libdvb-' \ + -e 's-/lib/-/$(LIBDIR)/-' +} + +src_install() { + #einstall DESTDIR="${D}" || die "Install problem" + insinto /usr/$(get_libdir) + make DESTDIR="${D}" PREFIX=/usr LIBDIR=$(get_libdir) install || die "Problem at make install" + + use doc && insinto "/usr/share/doc/${PF}/sample_progs" && \ + doins sample_progs/* && \ + insinto "/usr/share/doc/${PF}/samplerc" && \ + doins samplerc/* + + einfo "The script called 'dia' has been installed as dia-dvb" + einfo "so that it doesn't overwrite the binary of app-office/dia." + + dodoc README +} |