diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/twolame/twolame-0.3.13-r2.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/twolame/twolame-0.3.13-r2.ebuild')
-rw-r--r-- | media-sound/twolame/twolame-0.3.13-r2.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/media-sound/twolame/twolame-0.3.13-r2.ebuild b/media-sound/twolame/twolame-0.3.13-r2.ebuild new file mode 100644 index 000000000000..1660d631865f --- /dev/null +++ b/media-sound/twolame/twolame-0.3.13-r2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils multilib-minimal + +DESCRIPTION="An optimised MPEG Audio Layer 2 (MP2) encoder" +HOMEPAGE="http://www.twolame.org" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="static-libs" + +RDEPEND=">=media-libs/libsndfile-1.0.25[${MULTILIB_USEDEP}] + abi_x86_32? ( !<=app-emulation/emul-linux-x86-soundlibs-20130224-r6 + !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( "${FILESDIR}/${PV}-perl-tests.patch" ) + +src_prepare() { + sed -i -e '/CFLAGS/s:-O3::' configure || die + # remove -Werror, bug 493940 + sed -i -e '/WARNING_CFLAGS/s:-Werror::' configure || die + + if [[ ${CHOST} == *solaris* ]]; then + # libsndfile doesn't like -std=c99 on Solaris + sed -i -e '/CFLAGS/s:-std=c99::' configure || die + # configure isn't really bourne shell (comment 0) or dash (comment 6) + # compatible, bug #388885 + export CONFIG_SHELL=${BASH} + fi + + default +} + +multilib_src_configure() { + ECONF_SOURCE=${S} \ + econf $(use_enable static-libs static) +} + +multilib_src_install_all() { + default + prune_libtool_files --all +} |