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/gsm/gsm-1.0.13-r1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/gsm/gsm-1.0.13-r1.ebuild')
-rw-r--r-- | media-sound/gsm/gsm-1.0.13-r1.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/media-sound/gsm/gsm-1.0.13-r1.ebuild b/media-sound/gsm/gsm-1.0.13-r1.ebuild new file mode 100644 index 000000000000..897d7f112012 --- /dev/null +++ b/media-sound/gsm/gsm-1.0.13-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator + +DESCRIPTION="Lossy speech compression library and tool" +HOMEPAGE="https://packages.qa.debian.org/libg/libgsm.html" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="gsm" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-fbsd ~x86-fbsd" +IUSE="" +RDEPEND="abi_x86_32? ( !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${PN}-"$(replace_version_separator 2 '-pl' )" + +DOCS=( ChangeLog MACHINES MANIFEST README ) + +src_prepare() { + epatch "${FILESDIR}"/${P}-shared.patch \ + "${FILESDIR}"/${PN}-1.0.12-memcpy.patch \ + "${FILESDIR}"/${PN}-1.0.12-64bit.patch + multilib_copy_sources +} + +multilib_src_compile() { + # From upstream Makefile. Define this if your host multiplies + # floats faster than integers, e.g. on a SPARCstation. + use sparc && append-flags -DUSE_FLOAT_MUL -DFAST + + emake -j1 CCFLAGS="${CFLAGS} -c -DNeedFunctionPrototypes=1" \ + LD="$(tc-getCC)" AR="$(tc-getAR)" CC="$(tc-getCC)" +} + +multilib_src_install() { + dodir /usr/bin /usr/$(get_libdir) /usr/include/gsm /usr/share/man/man{1,3} + + emake -j1 INSTALL_ROOT="${D}"/usr \ + LD="$(tc-getCC)" AR="$(tc-getAR)" CC="$(tc-getCC)" \ + GSM_INSTALL_LIB="${D}"/usr/$(get_libdir) \ + GSM_INSTALL_INC="${D}"/usr/include/gsm \ + GSM_INSTALL_MAN="${D}"/usr/share/man/man3 \ + TOAST_INSTALL_MAN="${D}"/usr/share/man/man1 \ + install + + dolib lib/libgsm.so* + + dosym ../gsm/gsm.h /usr/include/libgsm/gsm.h +} |