diff options
author | 2011-06-26 20:24:13 +0200 | |
---|---|---|
committer | 2011-06-26 20:24:13 +0200 | |
commit | 2fcfe4c54207f721360264f1e3736c90f3f2e73f (patch) | |
tree | 5b0ef098f5b37613721a297f77846f38d5a7023e | |
parent | supertux: Fix binary installation path again (diff) | |
download | angelos-2fcfe4c54207f721360264f1e3736c90f3f2e73f.tar.gz angelos-2fcfe4c54207f721360264f1e3736c90f3f2e73f.tar.bz2 angelos-2fcfe4c54207f721360264f1e3736c90f3f2e73f.zip |
oss: Initial import
(Portage version: 2.2.0_alpha41/git/Linux x86_64, signed Manifest commit with key 84F20B43)
-rw-r--r-- | media-sound/oss/Manifest | 13 | ||||
-rw-r--r-- | media-sound/oss/metadata.xml | 10 | ||||
-rw-r--r-- | media-sound/oss/oss-4.2.2004.ebuild | 72 |
3 files changed, 95 insertions, 0 deletions
diff --git a/media-sound/oss/Manifest b/media-sound/oss/Manifest new file mode 100644 index 0000000..2e2947b --- /dev/null +++ b/media-sound/oss/Manifest @@ -0,0 +1,13 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +DIST oss-v4.2-build2004-src-gpl.tar.bz2 1790085 RMD160 7b62cb96bf363d1c0a4018e21b0737ec5ee3c5b5 SHA1 75c3ff1cf3e3bd5b351b1f778100387f998c7f3a SHA256 6a4ac364c6ed022467b23a9db137857afa9f8e9706a4bdbcb85b98efcde3f4a0 +EBUILD oss-4.2.2004.ebuild 1515 RMD160 3f1046393a18a88d1f395efa0db09039441d60c4 SHA1 cb3bd5a72b95a6421867f2b735fd9c57bd0ad096 SHA256 643150f8ba904c572d60a37809b95860848a0c08280843eeedb8567a286cfb07 +MISC metadata.xml 255 RMD160 cd8d8cec82e20fbae3ec50adc77e3a847bf1cf59 SHA1 5f93424a5e9854f99452b62eb10fff6f31dd797a SHA256 d51928368dff5a07c452c50b7f1a5866f6ef9fbf578e372ef378363259843f5e +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iF4EAREIAAYFAk4HeU0ACgkQmWq1bYTyC0PNyAEAkJ8jZZt4hOlipHfKAj2IUVaB +XfQgrAVRTrkAkaMYGpgA/1EKsOUcb939sjdff9QBEx/J7dcvRVlHDEl8fx2lc2CQ +=6GNy +-----END PGP SIGNATURE----- diff --git a/media-sound/oss/metadata.xml b/media-sound/oss/metadata.xml new file mode 100644 index 0000000..6140e69 --- /dev/null +++ b/media-sound/oss/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <use> + <flag name="midi"></flag> + <flag name="salsa">Enable ALSA emulation</flag> + </use> +</pkgmetadata> + diff --git a/media-sound/oss/oss-4.2.2004.ebuild b/media-sound/oss/oss-4.2.2004.ebuild new file mode 100644 index 0000000..90e0495 --- /dev/null +++ b/media-sound/oss/oss-4.2.2004.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +inherit flag-o-matic multilib toolchain-funcs versionator + +MY_PV=$(get_version_component_range 1-2) +BUILD=$(get_version_component_range 3) +MY_P=${PN}-v${MY_PV}-build${BUILD}-src-gpl + +DESCRIPTION="Open Sound System" +HOMEPAGE="http://developer.opensound.com/" +SRC_URI="http://www.4front-tech.com/developer/sources/stable/gpl/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="midi salsa" + +S=${WORKDIR}/${MY_P} +BUILD_DIR=${WORKDIR}/${PN}-build + +### TODO ### +# - fix --as-needed +# - respect LDFLAGS +# - USE_EXPAND for drivers +# - disable stripping +# - (automagic?) gtk+ ossxmix +# - don't install via cp? (see FreeBSD) +# - check libdir paths + +src_prepare() { + # the build system forces shadow builds + mkdir "${BUILD_DIR}" + append-flags -Wl,--no-as-needed +} + +src_configure() { + cd "${BUILD_DIR}" + + local myconf="" + + if use salsa; then + myconf="--enable-libsalsa=YES" + else + myconf="--enable-libsalsa=NO" + fi + + if use midi; then + myconf+=" --config-midi=YES" + else + myconf+=" --config-midi=NO" + fi + + "${S}"/configure ${myconf} || die + + find -name Makefile -exec sed -e "s:-Werror::" -i {} + +} + +src_compile() { + cd "${BUILD_DIR}" + emake CC=$(tc-getCC) build +} + +src_install() { + cd "${BUILD_DIR}" + mv prototype/usr/lib prototype/usr/$(get_libdir) || die + sed -e "s:lib:$(get_libdir):" prototype/etc/oss.conf || die + cp -r prototype/* "${ED}" || die + dodoc RELNOTES.txt +} |