diff options
author | Alexis Ballier <aballier@gentoo.org> | 2013-06-27 18:11:02 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2013-06-27 18:11:02 +0000 |
commit | fc1ff0fbdd9d9efea6cbecee916a894634c0efc8 (patch) | |
tree | d2f4c7931946522f61f441091a9fc3edbde32421 /media-libs/libmikmod | |
parent | Stable for x86, wrt bug #474302 (diff) | |
download | gentoo-2-fc1ff0fbdd9d9efea6cbecee916a894634c0efc8.tar.gz gentoo-2-fc1ff0fbdd9d9efea6cbecee916a894634c0efc8.tar.bz2 gentoo-2-fc1ff0fbdd9d9efea6cbecee916a894634c0efc8.zip |
Add missing MULTILIB_USEDEP on alsa-lib. Add altivec, debug and threads useflags. Disable dlopening its libraries and link to them instead: We have tools to detect breakage in case its linked, it is more complicated with dlopen.
(Portage version: 2.2.0_alpha185/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
Diffstat (limited to 'media-libs/libmikmod')
-rw-r--r-- | media-libs/libmikmod/ChangeLog | 8 | ||||
-rw-r--r-- | media-libs/libmikmod/libmikmod-3.2.0-r1.ebuild | 19 |
2 files changed, 20 insertions, 7 deletions
diff --git a/media-libs/libmikmod/ChangeLog b/media-libs/libmikmod/ChangeLog index 59d56f272988..0906b037ee1b 100644 --- a/media-libs/libmikmod/ChangeLog +++ b/media-libs/libmikmod/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-libs/libmikmod # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libmikmod/ChangeLog,v 1.107 2013/05/03 14:28:34 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libmikmod/ChangeLog,v 1.108 2013/06/27 18:11:02 aballier Exp $ + + 27 Jun 2013; Alexis Ballier <aballier@gentoo.org> libmikmod-3.2.0-r1.ebuild: + Add missing MULTILIB_USEDEP on alsa-lib. Add altivec, debug and threads + useflags. Disable dlopening its libraries and link to them instead: We have + tools to detect breakage in case its linked, it is more complicated with + dlopen. 03 May 2013; Samuli Suominen <ssuominen@gentoo.org> libmikmod-3.2.0.ebuild, libmikmod-3.2.0-r1.ebuild: diff --git a/media-libs/libmikmod/libmikmod-3.2.0-r1.ebuild b/media-libs/libmikmod/libmikmod-3.2.0-r1.ebuild index 4b09e5a15a42..620c2baefbc6 100644 --- a/media-libs/libmikmod/libmikmod-3.2.0-r1.ebuild +++ b/media-libs/libmikmod/libmikmod-3.2.0-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 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-r1.ebuild,v 1.2 2013/05/03 14:28:34 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libmikmod/libmikmod-3.2.0-r1.ebuild,v 1.3 2013/06/27 18:11:02 aballier Exp $ EAPI=5 inherit autotools eutils multilib-minimal @@ -12,11 +12,11 @@ SRC_URI="http://mikmod.shlomifish.org/files/${P}.tar.gz" LICENSE="LGPL-2+ LGPL-2.1" 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" -IUSE="+alsa coreaudio oss static-libs" +IUSE="+alsa altivec coreaudio debug oss static-libs +threads" REQUIRED_USE="|| ( alsa oss coreaudio )" -RDEPEND="alsa? ( media-libs/alsa-lib:= ) +RDEPEND="alsa? ( media-libs/alsa-lib:=[${MULTILIB_USEDEP}] ) !${CATEGORY}/${PN}:2" DEPEND="${RDEPEND} oss? ( virtual/os-headers )" @@ -32,16 +32,23 @@ src_prepare() { multilib_src_configure() { econf \ $(use_enable alsa) \ + $(use_enable altivec) \ + $(use_enable debug) \ --disable-nas \ $(use_enable coreaudio osx) \ $(use_enable oss) \ - $(use_enable static-libs static) + $(use_enable static-libs static) \ + $(use_enable threads) \ + --disable-dl } multilib_src_install() { emake DESTDIR="${D}" install dosym ${PN}$(get_libname 3) /usr/$(get_libdir)/${PN}$(get_libname 2) + local libs="$("${ED}"/usr/bin/libmikmod-config --libs)" + local privlibs="${libs#*lmikmod}" + cat <<-EOF > "${T}"/${PN}.pc prefix=/usr exec_prefix=\${prefix} @@ -50,8 +57,8 @@ multilib_src_install() { Name: ${PN} Description: ${DESCRIPTION} Version: ${PV} - Libs: -L\${libdir} -lmikmod - Libs.private: -ldl -lm + Libs: ${libs%${privlibs}} + Libs.private: ${privlibs} Cflags: -I\${includedir} $("${ED}"/usr/bin/libmikmod-config --cflags) EOF |