[proaudio] [2254] media-libs/zita-alsa-pcmi: new package thanks to Jannis Achstetter |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/proaudio Archives
]
Revision: 2254
Author: gavlee
Date: 2012-11-01 16:38:55 +0100 (Thu, 01 Nov 2012)
Log Message:
-----------
media-libs/zita-alsa-pcmi: new package thanks to Jannis Achstetter
Added Paths:
-----------
trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/
trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/ChangeLog
trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/Manifest
trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/files/
trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/files/zita-alsa-pcmi-0.2.0-Makefile.patch
trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/metadata.xml
trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/zita-alsa-pcmi-0.2.0.ebuild
Added: trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/ChangeLog (rev 0)
+++ trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/ChangeLog 2012-11-01 15:38:55 UTC (rev 2254)
@@ -0,0 +1,12 @@
+# ChangeLog for media-libs/zita-alsa-pcmi
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*zita-alsa-pcmi-0.2.0 (01 Nov 2012)
+
+ 01 Nov 2012; Gavin Pryke (gavlee) <gavinlee303@xxxxxxxxxxxxxx>
+ +zita-alsa-pcmi-0.2.0.ebuild, +files/zita-alsa-pcmi-0.2.0-Makefile.patch,
+ +metadata.xml:
+ Import new ebuild thanks to Jannis Achstetter. Modified ebuild and added
+ another patch to install files from apps directory.
+
Added: trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/Manifest
===================================================================
--- trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/Manifest (rev 0)
+++ trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/Manifest 2012-11-01 15:38:55 UTC (rev 2254)
@@ -0,0 +1,5 @@
+AUX zita-alsa-pcmi-0.2.0-Makefile.patch 2616 SHA256 41dd258d83b457d133209c182509377a9e222bec64a7b6fa28dce7aa036f3cac SHA512 2ee4d9d3be5ff268f854f195e4895163fc530e349a568455c5bb7883990d4af1e09bfe4f8d8424219f476d3f8b9de70fd90396e5432f869efe91191958a96ce8 WHIRLPOOL cb6d35afa722e1386d19e4412ee613a9c01a7c5e1f17b3f81e1b45624bc7c4bf6e2ce6469faba5c6bc261998842f121e04a65ccd17b46e6b741cef063f97fb41
+DIST zita-alsa-pcmi-0.2.0.tar.bz2 21278 SHA256 491eaf9da24fb20b94723f8e75e2ea3a667fc53555b54d2acd390bf4c418fbe5 SHA512 6b521dc8bef96a6ee73bc2accd3c7d0641e9a4f3d955868cd3fe04ae46f15a1b1ffaa45d56518f54f4fdf9f68f629e3036dca294936015205c20f01d55338e96 WHIRLPOOL 2a2f577269f882f3d2bdc70294641742bc98ea3784b5e4e9fd973c802fe96564b2e4d35da24b3af41d413b446879c9b9c7358834f91aecc0111a6edf2cecdd62
+EBUILD zita-alsa-pcmi-0.2.0.ebuild 818 SHA256 5462aa96093c4e5d5c1071f8e9927846ae4bbb513a0a3eda17340d73a101dd43 SHA512 ef7cfe6b9ba8c94621320c6ceffefa577a814c507964471c673ed088e557bc47e2f24f01f5a6430b8678ed0c96790ddc54f91e344782685da7f07ff7d448e499 WHIRLPOOL 2ac1105859a53f47d06dec570ab65f27c367ff46393dbd2d50a70a354387bf70f0e48939b5d76a0a517ec88e308d32a402102a50b4cde53885eef94dd2b1fed2
+MISC ChangeLog 451 SHA256 c5f07aa090a4135f717ce5eb57b546b487657b8949583a1cc1dd7c1257cf95bd SHA512 547a37dd1b7bc1549a4d7065da506b9cc118b5e394b58c6d4ac71c9e135978625ab2dfdd9d69676e6ea593cd0cc8ca5d7b3d531a890ff21c5115e7fca446b85b WHIRLPOOL fc41c07ca75dcaad1497da1fe24090133957c87085bc99ad54a7fdd04132aec9bd7967e76ce36b5c49cf89e59098959611985c10e69c96d7cc5f97de01bda462
+MISC metadata.xml 246 SHA256 f32f31abe9dcc1f9a5dc9b6a36996d773abd006d92c13c4df48f8d7d1061060f SHA512 327022589c637a14219eb603a62050fbb93b980f4693960c0ac4117b6b483d9f0d9fe1366d8e18227b34373a399aef339f49c16df8ca57b9ec870568a4d394f4 WHIRLPOOL e55381a9a9fd1d0efbe87da1c3aa302efdcf4734827f56273faeb55b17361c529518fcf16ac0946102e26165e8eedba81ab0cd07c7b08ce6bad001e944e43a0f
Added: trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/files/zita-alsa-pcmi-0.2.0-Makefile.patch
===================================================================
--- trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/files/zita-alsa-pcmi-0.2.0-Makefile.patch (rev 0)
+++ trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/files/zita-alsa-pcmi-0.2.0-Makefile.patch 2012-11-01 15:38:55 UTC (rev 2254)
@@ -0,0 +1,76 @@
+--- libs/Makefile.old 2012-10-02 11:25:41.608862450 +0200
++++ libs/Makefile 2012-10-02 11:26:07.139043080 +0200
+@@ -20,7 +20,7 @@
+
+ # Modify as required.
+ #
+-PREFIX = /usr/local
++PREFIX = /usr
+ SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
+ LIBDIR = lib$(SUFFIX)
+
+@@ -31,7 +31,7 @@
+
+
+ CPPFLAGS += -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
+-CXXFLAGS += -O2 -Wall -I. -fPIC
++CXXFLAGS += -Wall -I. -fPIC
+ LDLFAGS +=
+ LDLIBS +=
+
+@@ -45,18 +45,14 @@
+
+
+ $(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
+-
+-uninstall:
+- rm -rf $(DESTDIR)$(PREFIX)/include/zita-alsa-pcmi.h
+- rm -rf $(DESTDIR)$(PREFIX)/$(LIBDIR)/libzita-alsa-pcmi*
++ ln -sf $(ZITA-ALSA-PCMI_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(ZITA-ALSA-PCMI_SO)
++ ln -sf $(ZITA-ALSA-PCMI_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(ZITA-ALSA-PCMI_MAJ)
+
+ clean:
+ /bin/rm -f *~ *.o *.a *.d *.so.*
+--- apps/Makefile.orig 2012-11-01 00:50:06.272961455 +0000
++++ apps/Makefile 2012-11-01 00:53:26.586873134 +0000
+@@ -24,25 +24,25 @@
+ LIBDIR = lib$(SUFFIX)
+ VERSION = "0.1.0"
+ LDFLAGS += -L$(PREFIX)/$(LIBDIR)
+-CPPFLAGS += -DVERSION=\"$(VERSION)\"
+-CXXFLAGS += -O2 -Wall -MMD -MP
++CPPFLAGS += -DVERSION=\"$(VERSION)\" -I../libs
++CXXFLAGS += -Wall -MMD -MP
+
+
+ all: alsa_loopback alsa_delay
+
+
+ ALSA_LOOPBACK_O = alsa_loopback.o pxthread.o
+-alsa_loopback: LDLIBS += -lzita-alsa-pcmi -lasound -lpthread -lrt
++alsa_loopback: LDLIBS += ../libs/libzita-alsa-pcmi.so.0.2.0 -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)
+
+
+ ALSA_DELAY_O = alsa_delay.o mtdm.o pxthread.o
+-alsa_delay: LDLIBS += -lzita-alsa-pcmi -lasound -lpthread -lrt
++alsa_delay: LDLIBS += ../libs/libzita-alsa-pcmi.so.0.2.0 -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)
+
Added: trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/metadata.xml
===================================================================
--- trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/metadata.xml (rev 0)
+++ trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/metadata.xml 2012-11-01 15:38:55 UTC (rev 2254)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>proaudio@xxxxxxxxxxxxx</email>
+ <name>pro-audio overlay team</name>
+ </maintainer>
+</pkgmetadata>
Added: trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/zita-alsa-pcmi-0.2.0.ebuild
===================================================================
--- trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/zita-alsa-pcmi-0.2.0.ebuild (rev 0)
+++ trunk/overlays/proaudio/media-libs/zita-alsa-pcmi/zita-alsa-pcmi-0.2.0.ebuild 2012-11-01 15:38:55 UTC (rev 2254)
@@ -0,0 +1,39 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit base toolchain-funcs multilib
+
+DESCRIPTION="Successor of clalsadrv. API providing 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"
+
+RESTRICT="mirror"
+
+DOCS=(AUTHORS README)
+
+PATCHES=("${FILESDIR}"/${P}-Makefile.patch)
+
+src_compile() {
+ tc-export CXX
+ cd libs
+ emake
+ cd ../apps
+ emake
+}
+
+src_install() {
+ cd libs
+ emake DESTDIR="${D}" LIBDIR="$(get_libdir)" PREFIX="${EPREFIX}/usr" install
+ cd ../apps
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+ base_src_install_docs
+}