[proaudio] [2165] Initial ebuild for zita-resampler-1.1.0

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Revision: 2165
Author:   dominique
Date:     2012-06-30 14:23:13 +0200 (Sat, 30 Jun 2012)
Log Message:
-----------
Initial ebuild for zita-resampler-1.1.0

Modified Paths:
--------------
    trunk/overlays/proaudio/media-libs/zita-resampler/ChangeLog
    trunk/overlays/proaudio/media-libs/zita-resampler/Manifest

Added Paths:
-----------
    trunk/overlays/proaudio/media-libs/zita-resampler/files/zita-resampler-1.1.0-Makefile.patch
    trunk/overlays/proaudio/media-libs/zita-resampler/files/zita-resampler-1.1.0-apps-Makefile.patch
    trunk/overlays/proaudio/media-libs/zita-resampler/zita-resampler-1.1.0.ebuild

Modified: trunk/overlays/proaudio/media-libs/zita-resampler/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-libs/zita-resampler/ChangeLog	2012-06-30 08:15:58 UTC (rev 2164)
+++ trunk/overlays/proaudio/media-libs/zita-resampler/ChangeLog	2012-06-30 12:23:13 UTC (rev 2165)
@@ -2,6 +2,11 @@
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*zita-resampler-1.1.0 (30 Jun 2012)
+
+  30 Jun 2012; Dominique Michel <dominique@xxxxxxxxxxxxx>
+  + zita-resampler-1.1.0.ebuild: initial ebuild for the 1.1.0 version
+
 *zita-resampler-0.1.1-r2 (06 Jan 2012)
 
   06 Jan 2012; Gavin Pryke <gavinlee303@xxxxxxxxxxxxxx>

Modified: trunk/overlays/proaudio/media-libs/zita-resampler/Manifest
===================================================================
--- trunk/overlays/proaudio/media-libs/zita-resampler/Manifest	2012-06-30 08:15:58 UTC (rev 2164)
+++ trunk/overlays/proaudio/media-libs/zita-resampler/Manifest	2012-06-30 12:23:13 UTC (rev 2165)
@@ -1,7 +1,11 @@
 AUX zita-resampler-0.1.1-apps-Makefile.patch 902 RMD160 23663abdb28d11bca46ee6f2f146b8bcd02abd1e SHA1 b808776c2a6b1575ffb2a8282dd3013518abbdeb SHA256 f629a055da3317e839483f849a2a58c3c754b507df6e0e5086efe27d290d5eb4
 AUX zita-resampler-0.1.1-makefile.patch 1833 RMD160 7ee1ac29fdb15092736dbfc3447dc37d83a6beb4 SHA1 bbd49b2fc02716d54090ccd8ee78e2801e7f54e9 SHA256 000f9dc3ee74dd9b19827287970cf1f1705f91d8315b8f5b2784acdb39107e38
+AUX zita-resampler-1.1.0-Makefile.patch 1374 RMD160 e2d949d19d0ee4d775a46caa3889cef85815ee8e SHA1 31b6231fc63a9a3d2578406f2ac44d96d3ac78a4 SHA256 6db706892e1cd359a3022f12d3b8a20f86ebd98d280e2ac323dccb30c3e06b70
+AUX zita-resampler-1.1.0-apps-Makefile.patch 989 RMD160 958a6f471dd7cbcb7f7088d4c7aa2f24553cb4a1 SHA1 c192a00f33761283d8c101c7d13b4df418873e7a SHA256 d5d6100c116edf5a75afacaa4983cc633caee849f8010370708f02ccf73b8b34
 DIST zita-resampler-0.1.1.tar.bz2 34734 RMD160 3d42d2aebf47589d7e81de47f5b2ef1a9692b1be SHA1 8399756db6b90be8a89552f16b1dab3dd70dd511 SHA256 b86f8b4b2d69a63bcf343a3beb142e1bee26e200da5cb0167828701d682de848
+DIST zita-resampler-1.1.0.tar.bz2 123224 RMD160 4991b4d6d64833db771dbedf955b6a227946bba7 SHA1 aa25da166d247ab75818b783291215c8fddd8616 SHA256 c8e1b7ce7915340cc63b8590518caa45f737fc6e43799389854bab9badcd2803
 EBUILD zita-resampler-0.1.1-r1.ebuild 846 RMD160 281cd98421d8a5c51619c458342de9e57262ec44 SHA1 84cea758b2023902006ad46676ae9dc561887848 SHA256 ca593e8a5d7d82e87145fcdad35694c21d8f2ff5f1c4b1dbb2cb78deb5b0b68f
 EBUILD zita-resampler-0.1.1-r2.ebuild 1284 RMD160 b771bf49c5210dae8faaa88164b9dbf58b53f4ff SHA1 70fe9c3b62dca2bbed299bcff730a6c976615cf2 SHA256 7a53994386a397220ad76fccba12f55175ab2b5ade0d228177c4552d2f884877
-MISC ChangeLog 943 RMD160 073a31116717325a8c135d73c55965be7cbd3eee SHA1 ac62f156e01fb8950d795a9e861d005dfd09433f SHA256 bcc040c8cf61c8ac1fc10f7bb5f62b04724e12f8fb3df753ff07024cfae001b8
+EBUILD zita-resampler-1.1.0.ebuild 1322 RMD160 4a1c7b3057f212248f4a1a7ed12d6f879a632d3f SHA1 9fcfc03a391659ecfef3b8e72e03e4f56fd250e0 SHA256 c5630b9e7dc07ae3318b5e12f46470441cc3ebc1ef7a247b68cdad4650477f46
+MISC ChangeLog 1109 RMD160 4fde7cefaf844c2a42f0efaa7a2eee3b99b0d6d0 SHA1 ec814ba54b995b5c3f2df285d7ddcbeb1b1461d1 SHA256 ad27f11e45eb74d7e095bb4aacb8dd88bdc6e8b3d25afab0f25d51b8fd65bf5a
 MISC metadata.xml 246 RMD160 cdd725771833663c8cfa684c4c71e57d86d9993d SHA1 973be5799e631fd26fb4abcfc8da942f2f759d06 SHA256 f32f31abe9dcc1f9a5dc9b6a36996d773abd006d92c13c4df48f8d7d1061060f

Added: trunk/overlays/proaudio/media-libs/zita-resampler/files/zita-resampler-1.1.0-Makefile.patch
===================================================================
--- trunk/overlays/proaudio/media-libs/zita-resampler/files/zita-resampler-1.1.0-Makefile.patch	                        (rev 0)
+++ trunk/overlays/proaudio/media-libs/zita-resampler/files/zita-resampler-1.1.0-Makefile.patch	2012-06-30 12:23:13 UTC (rev 2165)
@@ -0,0 +1,42 @@
+--- libs/Makefile.old	2012-06-30 14:49:33.000000000 +0200
++++ libs/Makefile	2012-06-30 15:02:27.000000000 +0200
+@@ -20,9 +20,10 @@
+ 
+ # Modify as required.
+ #
+-PREFIX = /usr/local
++CXX ?= g++
++PREFIX ?= /usr/local
+ SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
+-LIBDIR = lib$(SUFFIX)
++LIBDIR ?= lib$(SUFFIX)
+ 
+ MAJVERS = 1
+ MINVERS = 1.0
+@@ -32,7 +33,7 @@
+ 
+ CPPFLAGS += -I. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
+ CXXFLAGS += -Wall -fPIC -O2 -ffast-math
+-CXXFLAGS += -march=native
++#CXXFLAGS += -march=native
+ LDFLAGS += 
+ LDLIBS +=
+ 
+@@ -46,7 +47,7 @@
+ 
+ 
+ $(ZITA-RESAMPLER_MIN): $(ZITA-RESAMPLER_O)
+-	g++ -shared $(LDFLAGS) -Wl,-soname,$(ZITA-RESAMPLER_MAJ) -o $(ZITA-RESAMPLER_MIN) $(ZITA-RESAMPLER_O) $(ZITA-RESAMPLER_DEP)
++	$(CXX) -shared $(LDFLAGS) -Wl,-soname,$(ZITA-RESAMPLER_MAJ) -o $(ZITA-RESAMPLER_MIN) $(ZITA-RESAMPLER_O) $(ZITA-RESAMPLER_DEP)
+ 
+ $(ZITA-RESAMPLER_O):	$(ZITA-RESAMPLER_H)
+ 
+@@ -57,7 +58,7 @@
+ 	install -m 644 $(ZITA-RESAMPLER_H) $(DESTDIR)$(PREFIX)/include/zita-resampler
+ 	install -m 644 $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)
+ 	ln -sf $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(ZITA-RESAMPLER_SO)
+-	ldconfig
++	/sbin/ldconfig -n $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(ZITA-RESAMPLER_SO)
+ 
+ uninstall:
+ 	/bin/rm -rf $(DESTDIR)$(PREFIX)/include/zita-resampler

Added: trunk/overlays/proaudio/media-libs/zita-resampler/files/zita-resampler-1.1.0-apps-Makefile.patch
===================================================================
--- trunk/overlays/proaudio/media-libs/zita-resampler/files/zita-resampler-1.1.0-apps-Makefile.patch	                        (rev 0)
+++ trunk/overlays/proaudio/media-libs/zita-resampler/files/zita-resampler-1.1.0-apps-Makefile.patch	2012-06-30 12:23:13 UTC (rev 2165)
@@ -0,0 +1,32 @@
+--- apps/Makefile.old	2012-01-26 18:19:50.000000000 +0100
++++ apps/Makefile	2012-06-30 14:32:35.000000000 +0200
+@@ -18,7 +18,8 @@
+ # ----------------------------------------------------------------------------
+ 
+ 
+-PREFIX = /usr/local
++CXX ?= g++
++PREFIX ?= /usr/local
+ SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
+ LIBDIR = lib$(SUFFIX)
+ DISTDIR = zresample-$(VERSION)
+@@ -26,8 +27,8 @@
+ MANDIR = /usr/share/man/man1
+ LDFLAGS += -L$(PREFIX)/$(LIBDIR)
+ CPPFLAGS += -MMD -MP -DVERSION=\"$(VERSION)\"
+-CXXFLAGS += -O3  -ffast-math -Wall
+-CXXFLAGS += -march=native
++CXXFLAGS += -Wall
++#CXXFLAGS += -march=native
+ 
+ 
+ all:	zresample zresample.1.gz
+@@ -36,7 +37,7 @@
+ ZRESAMPLE_O = zresample.o audiofile.o dither.o
+ zresample:	LDLIBS += -lzita-resampler -lsndfile -lrt
+ zresample:	$(ZRESAMPLE_O)
+-	g++ $(LDFLAGS) -o $@ $(ZRESAMPLE_O) $(LDLIBS)
++	$(CXX) $(LDFLAGS) -o $@ $(ZRESAMPLE_O) $(LDLIBS)
+ $(ZRESAMPLE_O):
+ -include $(ZRESAMPLE_O:%.o=%.d)
+ 

Added: trunk/overlays/proaudio/media-libs/zita-resampler/zita-resampler-1.1.0.ebuild
===================================================================
--- trunk/overlays/proaudio/media-libs/zita-resampler/zita-resampler-1.1.0.ebuild	                        (rev 0)
+++ trunk/overlays/proaudio/media-libs/zita-resampler/zita-resampler-1.1.0.ebuild	2012-06-30 12:23:13 UTC (rev 2165)
@@ -0,0 +1,54 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+inherit eutils toolchain-funcs flag-o-matic multilib
+
+DESCRIPTION="C++ library for real-time resampling of audio signals"
+HOMEPAGE="http://kokkinizita.linuxaudio.org/linuxaudio/";
+SRC_URI="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${P}.tar.bz2";
+
+RESTRICT="mirror"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND="media-libs/libsndfile"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+	epatch "${FILESDIR}/${P}-Makefile.patch"
+	epatch "${FILESDIR}/${P}-apps-Makefile.patch"
+	# maybe there's a better way to do this. we need to find the library
+	# to link the resample app but it's not installed to the system yet
+	sed -i -e "s|-lzita-resampler|../libs/libzita-resampler.so.${PV}|" \
+		apps/Makefile || die
+}
+
+src_compile() {
+	cd libs
+	CXX="$(tc-getCXX)" emake LIBDIR=$(get_libdir) || die "make libs failed"
+
+	cd ../apps
+	append-cppflags -I../libs
+	CXX="$(tc-getCXX)" emake LIBDIR=$(get_libdir) || die "make apps failed"
+}
+
+src_install() {
+	cd libs
+	emake DESTDIR="${D}" PREFIX=/usr LIBDIR=$(get_libdir) install || die
+
+	cd ../apps
+	emake DESTDIR="${D}" PREFIX=/usr LIBDIR=$(get_libdir) install || die
+	cd ..
+
+	dodoc AUTHORS
+
+	if use doc ; then
+		cd docs
+		dohtml -r *
+	fi
+}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/