diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2012-02-07 19:21:17 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2012-02-07 19:21:17 +0000 |
commit | fab156757267506305e7334378b4e9ea79e65f37 (patch) | |
tree | dae5fc80770fd801722296df94f5d2a4663f122d /media-libs | |
parent | Stable for HPPA (bug #397205). (diff) | |
download | gentoo-2-fab156757267506305e7334378b4e9ea79e65f37.tar.gz gentoo-2-fab156757267506305e7334378b4e9ea79e65f37.tar.bz2 gentoo-2-fab156757267506305e7334378b4e9ea79e65f37.zip |
Add USE=static-libs (bug #402499 by Maurizio Camisaschi). Approved by ssuominen.
(Portage version: 2.2.0_alpha85/cvs/Linux x86_64)
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/libmikmod/ChangeLog | 9 | ||||
-rw-r--r-- | media-libs/libmikmod/libmikmod-3.2.0_beta2-r4.ebuild | 61 |
2 files changed, 69 insertions, 1 deletions
diff --git a/media-libs/libmikmod/ChangeLog b/media-libs/libmikmod/ChangeLog index c3580eafa6f9..e155647e458e 100644 --- a/media-libs/libmikmod/ChangeLog +++ b/media-libs/libmikmod/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-libs/libmikmod # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libmikmod/ChangeLog,v 1.77 2012/02/07 12:46:19 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libmikmod/ChangeLog,v 1.78 2012/02/07 19:21:17 slyfox Exp $ + +*libmikmod-3.2.0_beta2-r4 (07 Feb 2012) + + 07 Feb 2012; Sergei Trofimovich <slyfox@gentoo.org> + +libmikmod-3.2.0_beta2-r4.ebuild: + Add USE=static-libs (bug #402499 by Maurizio Camisaschi). Approved by + ssuominen. 07 Feb 2012; Agostino Sarubbo <ago@gentoo.org> libmikmod-3.1.12-r1.ebuild, libmikmod-3.2.0_beta2-r3.ebuild: diff --git a/media-libs/libmikmod/libmikmod-3.2.0_beta2-r4.ebuild b/media-libs/libmikmod/libmikmod-3.2.0_beta2-r4.ebuild new file mode 100644 index 000000000000..00e50002e844 --- /dev/null +++ b/media-libs/libmikmod/libmikmod-3.2.0_beta2-r4.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libmikmod/libmikmod-3.2.0_beta2-r4.ebuild,v 1.1 2012/02/07 19:21:17 slyfox Exp $ + +EAPI=2 +MY_P=${P/_/-} +inherit autotools eutils flag-o-matic + +DESCRIPTION="A library to play a wide range of module formats" +HOMEPAGE="http://mikmod.raphnet.net/" +SRC_URI="http://mikmod.raphnet.net/files/${MY_P}.tar.gz" + +LICENSE="|| ( LGPL-2.1 LGPL-2 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +# Enable OSS by default since ALSA support isn't available, look below +IUSE="+oss raw static-libs" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${P}-64bit.patch \ + "${FILESDIR}"/${P}-autotools.patch \ + "${FILESDIR}"/${P}-info.patch \ + "${FILESDIR}"/${P}-doubleRegister.patch \ + "${FILESDIR}"/${PN}-CVE-2007-6720.patch \ + "${FILESDIR}"/${PN}-CVE-2009-0179.patch \ + "${FILESDIR}"/${P}-no-drv_raw.patch \ + "${FILESDIR}"/${P}-fix-vol-crash.patch \ + "${FILESDIR}"/${P}-fix-unload-crash.patch \ + "${FILESDIR}"/${P}-CVE-2009-3995-3996.patch \ + "${FILESDIR}"/${P}-CVE-2010-2546-2971.patch \ + "${FILESDIR}"/${P}-pa-workaround.patch + + AT_M4DIR=${S} eautoreconf +} + +src_configure() { + use raw && append-flags -DDRV_RAW + + # * af is something called AF/AFlib.h and -lAF, not audiofile in tree + # * alsa support is for deprecated API and doesn't work + econf \ + --disable-af \ + --disable-alsa \ + --disable-esd \ + $(use_enable oss) \ + $(use_enable static-libs static) +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc AUTHORS NEWS README TODO + dohtml docs/*.html + + use static-libs || find "${ED}" -name '*.la' -delete +} + +pkg_postinst() { + use oss || ewarn "No audio output will be available because of USE=\"-oss\"." +} |