summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/zita-alsa-pcmi')
-rw-r--r--media-libs/zita-alsa-pcmi/ChangeLog10
-rw-r--r--media-libs/zita-alsa-pcmi/Manifest15
-rw-r--r--media-libs/zita-alsa-pcmi/files/makefile.patch65
-rw-r--r--media-libs/zita-alsa-pcmi/metadata.xml5
-rw-r--r--media-libs/zita-alsa-pcmi/zita-alsa-pcmi-0.2.0.ebuild41
5 files changed, 136 insertions, 0 deletions
diff --git a/media-libs/zita-alsa-pcmi/ChangeLog b/media-libs/zita-alsa-pcmi/ChangeLog
new file mode 100644
index 000000000000..16cc0ad6a1db
--- /dev/null
+++ b/media-libs/zita-alsa-pcmi/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for media-libs/zita-alsa-pcmi
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/zita-alsa-pcmi/ChangeLog,v 1.1 2015/03/18 10:49:10 aballier Exp $
+
+*zita-alsa-pcmi-0.2.0 (18 Mar 2015)
+
+ 18 Mar 2015; Alexis Ballier <aballier@gentoo.org>
+ +zita-alsa-pcmi-0.2.0.ebuild, +files/makefile.patch, +metadata.xml:
+ initial import, ebuild by me
+
diff --git a/media-libs/zita-alsa-pcmi/Manifest b/media-libs/zita-alsa-pcmi/Manifest
new file mode 100644
index 000000000000..24ccca9d8a26
--- /dev/null
+++ b/media-libs/zita-alsa-pcmi/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX makefile.patch 2530 SHA256 6e832c74d6fbf1b8c9e431dc88de9867dff4f713307ca8abcc4bf49ae0b47210 SHA512 b17ef2a498889ebbc3c26c2e515f9cb596d35445e5499ec0f8fa2cb3ecf437a991cc9e29379a47d1de66584ba311f34d862d79a5455a5160765ce47264a6fa39 WHIRLPOOL 6cea80499106fbe1c43d07834f293af8e5d2fc3c030c417dd4b042b55f5e086cbca8da36d0802a44fd24c6f12df253614ea797529956b2c71b00fa24c8be054b
+DIST zita-alsa-pcmi-0.2.0.tar.bz2 21278 SHA256 491eaf9da24fb20b94723f8e75e2ea3a667fc53555b54d2acd390bf4c418fbe5 SHA512 6b521dc8bef96a6ee73bc2accd3c7d0641e9a4f3d955868cd3fe04ae46f15a1b1ffaa45d56518f54f4fdf9f68f629e3036dca294936015205c20f01d55338e96 WHIRLPOOL 2a2f577269f882f3d2bdc70294641742bc98ea3784b5e4e9fd973c802fe96564b2e4d35da24b3af41d413b446879c9b9c7358834f91aecc0111a6edf2cecdd62
+EBUILD zita-alsa-pcmi-0.2.0.ebuild 1105 SHA256 2002a0ed9343f45899613192150678ac070baf4c7eaa03baa7b50b8330fa4cb8 SHA512 1ed53c325f0f089cff6db134be0b658887d556246741dc5f2b5be0f68ccd94de41791f1fbea3c0ee004e497873627591a5a7181082206978416e291ef698c9b5 WHIRLPOOL 429edf7b2ad1cb21540a85dbda78594d8fd426f746bcbdebc55bb0502f5b93d93911a26105824ccd9adfef9e4723ad9b7ba85f4f36ca30c95f7cc3ce42be50cb
+MISC ChangeLog 416 SHA256 d7c600be38b384bfc17e24eb535e12d3e475a8d1b28723693f7354455a9ea6dd SHA512 456e8457dcb1645ef91407d1e1960500b0e2b2c4305c0e0340232d004e6579f8e5370f006272de335333342807b866910ef020d359759ee6ad068deb399f0f73 WHIRLPOOL d7cc14200791e5f29284e253fd0c3ab3f21afbe8e7960e46bad9be8bfba6183c28d4df8add57753c3d8808b5e7a333e6e7f771ec647bd05300881bf0418c53fd
+MISC metadata.xml 158 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b SHA512 90f74979d228a35f81de50665ead63d228bc4f0d11f3def4832c9607f4242cbc4562db0a123bdcf2c4b6e0be78fc5565a65f75cdb53ed4c8d45544ebf74255dc WHIRLPOOL a90483bd4fa01ed5fa21bfe9f59c11b97c793146e3031eae342a3355c6dc2e4ef2b356af0bf711b5e16e16551c91d63ecdbb48e708df606017264e8bff5e9fe9
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iEYEAREIAAYFAlUJWCcACgkQvFcC4BYPU0qABgCbBxxJJSlYhgjLZM4jzz/JPMHC
+mfYAoM57NdTzY7OryIjV1tuTVEkknByN
+=3+Nc
+-----END PGP SIGNATURE-----
diff --git a/media-libs/zita-alsa-pcmi/files/makefile.patch b/media-libs/zita-alsa-pcmi/files/makefile.patch
new file mode 100644
index 000000000000..d5e86d6c68f5
--- /dev/null
+++ b/media-libs/zita-alsa-pcmi/files/makefile.patch
@@ -0,0 +1,65 @@
+Index: zita-alsa-pcmi-0.2.0/libs/Makefile
+===================================================================
+--- zita-alsa-pcmi-0.2.0.orig/libs/Makefile
++++ zita-alsa-pcmi-0.2.0/libs/Makefile
+@@ -31,7 +31,7 @@ VERSION = $(MAJVERS).$(MINVERS)
+
+
+ CPPFLAGS += -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
+-CXXFLAGS += -O2 -Wall -I. -fPIC
++CXXFLAGS += -Wall -I. -fPIC
+ LDLFAGS +=
+ LDLIBS +=
+
+@@ -45,14 +45,14 @@ ZITA-ALSA-PCMI_H = zita-alsa-pcmi.h
+
+
+ $(ZITA-ALSA-PCMI_MIN): $(ZITA-ALSA-PCMI_O)
+- g++ -shared $(LDFLAGS) -Wl,-soname,$(ZITA-ALSA-PCMI_MAJ) -o $(ZITA-ALSA-PCMI_MIN) $(ZITA-ALSA-PCMI_O) $(ZITA-ALSA-PCMI_DEP)
++ $(CXX) -shared $(LDFLAGS) -Wl,-soname,$(ZITA-ALSA-PCMI_MAJ) -o $(ZITA-ALSA-PCMI_MIN) $(ZITA-ALSA-PCMI_O) $(ZITA-ALSA-PCMI_DEP)
+
+
+ install: $(ZITA-ALSA-PCMI_MIN)
+ install -Dm 644 $(ZITA-ALSA-PCMI_H) $(DESTDIR)$(PREFIX)/include/$(ZITA-ALSA-PCMI_H)
+ install -Dm 644 $(ZITA-ALSA-PCMI_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(ZITA-ALSA-PCMI_MIN)
+ ln -sf $(ZITA-ALSA-PCMI_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(ZITA-ALSA-PCMI_SO)
+- ldconfig
++ ln -sf $(ZITA-ALSA-PCMI_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(ZITA-ALSA-PCMI_MAJ)
+
+ uninstall:
+ rm -rf $(DESTDIR)$(PREFIX)/include/zita-alsa-pcmi.h
+Index: zita-alsa-pcmi-0.2.0/apps/Makefile
+===================================================================
+--- zita-alsa-pcmi-0.2.0.orig/apps/Makefile
++++ zita-alsa-pcmi-0.2.0/apps/Makefile
+@@ -23,9 +23,9 @@ PREFIX = /usr/local
+ SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
+ LIBDIR = lib$(SUFFIX)
+ VERSION = "0.1.0"
+-LDFLAGS += -L$(PREFIX)/$(LIBDIR)
+-CPPFLAGS += -DVERSION=\"$(VERSION)\"
+-CXXFLAGS += -O2 -Wall -MMD -MP
++LDFLAGS += -L$(PREFIX)/$(LIBDIR) -L../libs/
++CPPFLAGS += -DVERSION=\"$(VERSION)\" -I../libs/
++CXXFLAGS += -Wall -MMD -MP
+
+
+ all: alsa_loopback alsa_delay
+@@ -34,7 +34,7 @@ all: alsa_loopback alsa_delay
+ ALSA_LOOPBACK_O = alsa_loopback.o pxthread.o
+ alsa_loopback: LDLIBS += -lzita-alsa-pcmi -lasound -lpthread -lrt
+ alsa_loopback: $(ALSA_LOOPBACK_O)
+- g++ $(LDFLAGS) -o $@ $(ALSA_LOOPBACK_O) $(LDLIBS)
++ $(CXX) $(LDFLAGS) -o $@ $(ALSA_LOOPBACK_O) $(LDLIBS)
+ $(ALSA_LOOPBACK_O):
+ -include $(_ALSA_LOOPBACK_O:%.o=%.d)
+
+@@ -42,7 +42,7 @@ $(ALSA_LOOPBACK_O):
+ ALSA_DELAY_O = alsa_delay.o mtdm.o pxthread.o
+ alsa_delay: LDLIBS += -lzita-alsa-pcmi -lasound -lpthread -lrt
+ alsa_delay: $(ALSA_DELAY_O)
+- g++ $(LDFLAGS) -o $@ $(ALSA_DELAY_O) $(LDLIBS)
++ $(CXX) $(LDFLAGS) -o $@ $(ALSA_DELAY_O) $(LDLIBS)
+ $(ALSA_DELAY_O):
+ -include $(ALSA_DELAY_O:%.o=%.d)
+
diff --git a/media-libs/zita-alsa-pcmi/metadata.xml b/media-libs/zita-alsa-pcmi/metadata.xml
new file mode 100644
index 000000000000..e1774e3d9ad7
--- /dev/null
+++ b/media-libs/zita-alsa-pcmi/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sound</herd>
+</pkgmetadata>
diff --git a/media-libs/zita-alsa-pcmi/zita-alsa-pcmi-0.2.0.ebuild b/media-libs/zita-alsa-pcmi/zita-alsa-pcmi-0.2.0.ebuild
new file mode 100644
index 000000000000..e18afa3e2838
--- /dev/null
+++ b/media-libs/zita-alsa-pcmi/zita-alsa-pcmi-0.2.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/zita-alsa-pcmi/zita-alsa-pcmi-0.2.0.ebuild,v 1.1 2015/03/18 10:49:10 aballier Exp $
+
+EAPI=5
+
+inherit eutils toolchain-funcs multilib
+
+DESCRIPTION="Provides easy access to ALSA PCM devices"
+HOMEPAGE="http://kokkinizita.linuxaudio.org/linuxaudio/"
+SRC_URI="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="media-libs/alsa-lib"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/makefile.patch"
+}
+
+src_compile() {
+ tc-export CC CXX
+ cd "${S}/libs"
+ emake PREFIX="${EPREFIX}/usr" LIBDIR="$(get_libdir)"
+ ln -s libzita-alsa-pcmi.so.0.2.0 libzita-alsa-pcmi.so
+ cd "${S}/apps"
+ emake PREFIX="${EPREFIX}/usr" LIBDIR="$(get_libdir)"
+}
+
+src_install() {
+ cd "${S}/libs"
+ emake PREFIX="${EPREFIX}/usr" LIBDIR="$(get_libdir)" DESTDIR="${D}" install
+ cd "${S}/apps"
+ emake PREFIX="${EPREFIX}/usr" LIBDIR="$(get_libdir)" DESTDIR="${D}" install
+ cd "${S}"
+ dodoc AUTHORS README
+}