[proaudio] [2193] fix dynamic linking consistency

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


Revision: 2193
Author:   dominique
Date:     2012-07-30 04:37:02 +0200 (Mon, 30 Jul 2012)
Log Message:
-----------
fix dynamic linking consistency

Modified Paths:
--------------
    trunk/overlays/proaudio/media-libs/zita-resampler/ChangeLog
    trunk/overlays/proaudio/media-libs/zita-resampler/Manifest
    trunk/overlays/proaudio/media-libs/zita-resampler/files/zita-resampler-1.1.0-Makefile.patch

Added Paths:
-----------
    trunk/overlays/proaudio/media-libs/zita-resampler/zita-resampler-1.1.0-r1.ebuild

Removed Paths:
-------------
    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-07-29 13:01:25 UTC (rev 2192)
+++ trunk/overlays/proaudio/media-libs/zita-resampler/ChangeLog	2012-07-30 02:37:02 UTC (rev 2193)
@@ -2,6 +2,14 @@
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*zita-resampler-1.1.0-r1 (30 Jul 2012)
+
+  30 Jul 2012; Dominique Michel <dominique@xxxxxxxxxxxxx>
+  - zita-resampler-1.1.0 (30 Jun 2012)
+  -files/zita-resampler-1.1.0-apps-Makefile.patch
+  zita-resampler-1.1.0-Makefile.patch: drop arch; pass DESTDIR
+  + zita-resampler-1.1.0.ebuild-r1: the new patch fix dynamic linking consistency
+ 
 *zita-resampler-1.1.0 (30 Jun 2012)
 
   30 Jun 2012; Dominique Michel <dominique@xxxxxxxxxxxxx>

Modified: trunk/overlays/proaudio/media-libs/zita-resampler/Manifest
===================================================================
--- trunk/overlays/proaudio/media-libs/zita-resampler/Manifest	2012-07-29 13:01:25 UTC (rev 2192)
+++ trunk/overlays/proaudio/media-libs/zita-resampler/Manifest	2012-07-30 02:37:02 UTC (rev 2193)
@@ -1,11 +1,10 @@
-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
-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
+AUX zita-resampler-0.1.1-apps-Makefile.patch 902 SHA256 f629a055da3317e839483f849a2a58c3c754b507df6e0e5086efe27d290d5eb4 SHA512 cad05bc45c7c82423909e297f37adc854e9855a82f312c52dd0e856b4b75619f16221312a03bc903fc08366460a12e1cc412ed323d6f8abb776f4c551a85ff3a WHIRLPOOL 7c7d3bdbf3f977bfcc3b719a470c2caf8d04b7727429e813ea6a5d05565caa235062f93f6332d418f82d797c198208a7b154a6f47a8b2246c042015c5eaa15ad
+AUX zita-resampler-0.1.1-makefile.patch 1833 SHA256 000f9dc3ee74dd9b19827287970cf1f1705f91d8315b8f5b2784acdb39107e38 SHA512 0d3735b92aa310db1d62a1e0dfbd1b75752a5c5e968cbc93a78c165776b07b577ae496d81fffa8e7576c643055d459277348834860f30c99a90f0dc72df7fbe2 WHIRLPOOL 1eeb4a1900775cbc2c617745961fb96e470ad1a4dcdfe485676fb73820cabd07e2fc9eb625f7eeaf3bcd3cf6b57e606470db6fc0455bf6a8628ecc4fe00f80c2
+AUX zita-resampler-1.1.0-Makefile.patch 1676 SHA256 be84e2965c86b54a0cee5807a396b437310c8ae15424c82db4e0df438de6dfcd SHA512 0821629e0363a1219c2769362c9df6a3ccac0f36486e2aec0554d6c40aecf91b1e58b37fbcb8cef68aaa92778096f22d6fd4d63993f53a6b9ad119d5592a9055 WHIRLPOOL e4be668a37065626b43d8eb5c291fd38ae8c91373c6fdd8aa4e872363e8108f57ab5cf417db46084a9b466d3e779ace8f3b89b57e8248735da9bab037ecffb8e
+DIST zita-resampler-0.1.1.tar.bz2 34734 SHA256 b86f8b4b2d69a63bcf343a3beb142e1bee26e200da5cb0167828701d682de848 SHA512 d59bfb5bc31e37ef2b5589fc5c879e3cdb951d1afe5082cbae1459f18b96d3537debcb102a65eff18b46d60b34becfedee7303097ff9ab06f70b877a2cecfaa1 WHIRLPOOL f8e39ae94fe8f385c0433b6913e00cee4b8efc350cac68e098b34f9b8daf60dbf064e0c20f9d5fc1746309f61d14d2e221c23f2904df9d53a9104cba1e799bf7
+DIST zita-resampler-1.1.0.tar.bz2 123224 SHA256 c8e1b7ce7915340cc63b8590518caa45f737fc6e43799389854bab9badcd2803 SHA512 4a31e780e61591717042e7bf2583a3252eb6686e89c8931b7786fea7903a07785eb09094f9f1524cfb539b398881f21cc50eef59bfedb1f7d9c74961f4a0e572 WHIRLPOOL 6bc3cf88eaa85a9e0ccf4ee90d5216aca1ff29f4d2b227350501f88356f1c45402969fd2b790c60644e2f4a3df75f985ee3d45fff4b72d510440d35ed9c673b4
+EBUILD zita-resampler-0.1.1-r1.ebuild 846 SHA256 ca593e8a5d7d82e87145fcdad35694c21d8f2ff5f1c4b1dbb2cb78deb5b0b68f SHA512 ff9626c13cd6b19e75b56d5a8b37789f1085a7af84a67bae96e609eda37c5d47c234022e9b761236a442e972ac959ee879fc81832d774ddc95ce32f4fab62906 WHIRLPOOL 0623c8ffc550fc890cd3c611d9ea26a4b8ed0a2ca92d4aed2bbf5a1da8442e8ad282328312f92575f458d1e0a64a83286b39af0b99082c3ac6813cd5f74e39e4
+EBUILD zita-resampler-0.1.1-r2.ebuild 1284 SHA256 7a53994386a397220ad76fccba12f55175ab2b5ade0d228177c4552d2f884877 SHA512 4feeb20bd5a218b46741d883bd6008eac5cdf00f49d69c8c42e0ff766259a18e3d7af4801e9ea9cf9a2cd15f256891a365692adf4374a5e81cbec1dbc975525e WHIRLPOOL 2e7e61f376984d3ec274814375def99059b44c60966a8b549f750c6d5ad278829b21fe5e82dcf609ea1860310d2c2a76e0841f325b8d4c7c8d30354412db6787
+EBUILD zita-resampler-1.1.0-r1.ebuild 1149 SHA256 2586a50da2e3af985131ecbb8497e2a1f83b463cea560ba5fd97ccdfdc1d0c18 SHA512 93430fb9ddae5dac62041a1d9d82f50f3e852ff2a521baf62351c4c3c7a910438641e56e3d2a9cc7cdc4d4e19da1109f88dce6c5952a55510a1429736959d6bc WHIRLPOOL eac286d1ce8583e1dc25345e2f59ed2e84665a58e0304ffacf541cab108519b2fc71a208f392a7e3c0e194f538e82c892bb4abeab892b5e82d63c07847c49847
+MISC ChangeLog 1443 SHA256 e9d1c114c4839ec21503c2e2addea6978ef1720d383fbcc98651d74e82ccb20c SHA512 af40bbf01f1b3ac4650d293c27aa5dbfebe49fa5687d4abd51e4c62d69f4f186b0e82f0a68a6339b33ab947f73462caf016d8eb61de05b51fd1b4a21eaab1b77 WHIRLPOOL c4c6f6b7b064dfb9a80b18366894afe7798d9c8841b23af624be835aad4849d9b32b9d6997c436d15433d9c0f634414af27afd6ba290293494b2edb75c587f3c
+MISC metadata.xml 246 SHA256 f32f31abe9dcc1f9a5dc9b6a36996d773abd006d92c13c4df48f8d7d1061060f SHA512 327022589c637a14219eb603a62050fbb93b980f4693960c0ac4117b6b483d9f0d9fe1366d8e18227b34373a399aef339f49c16df8ca57b9ec870568a4d394f4 WHIRLPOOL e55381a9a9fd1d0efbe87da1c3aa302efdcf4734827f56273faeb55b17361c529518fcf16ac0946102e26165e8eedba81ab0cd07c7b08ce6bad001e944e43a0f

Modified: 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	2012-07-29 13:01:25 UTC (rev 2192)
+++ trunk/overlays/proaudio/media-libs/zita-resampler/files/zita-resampler-1.1.0-Makefile.patch	2012-07-30 02:37:02 UTC (rev 2193)
@@ -1,42 +1,54 @@
---- 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 @@
+--- zita-resampler.orig/apps/Makefile
++++ zita-resampler/apps/Makefile
+@@ -18,16 +18,15 @@
+ # ----------------------------------------------------------------------------
  
+ 
+-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)
++LIBDIR ?= lib
+ DISTDIR = zresample-$(VERSION)
+ VERSION = 0.4.0
+ MANDIR = /usr/share/man/man1
+-LDFLAGS += -L$(PREFIX)/$(LIBDIR)
+-CPPFLAGS += -MMD -MP -DVERSION=\"$(VERSION)\"
++LDFLAGS += -L$(PREFIX)/$(LIBDIR) -L$(DESTDIR)$(PREFIX)/$(LIBDIR)
++CPPFLAGS += -MMD -MP -DVERSION=\"$(VERSION)\" -I$(DESTDIR)$(PREFIX)/include
+ CXXFLAGS += -O3  -ffast-math -Wall
+-CXXFLAGS += -march=native
+ 
+ 
+ all:	zresample zresample.1.gz
+--- zita-resampler.orig/libs/Makefile
++++ zita-resampler/libs/Makefile
+@@ -20,9 +20,9 @@
+ 
  # Modify as required.
  #
 -PREFIX = /usr/local
-+CXX ?= g++
-+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)
-+LIBDIR ?= lib$(SUFFIX)
++LIBDIR ?= lib
  
  MAJVERS = 1
  MINVERS = 1.0
-@@ -32,7 +33,7 @@
+@@ -32,7 +32,6 @@ DISTDIR = zita-resampler-$(VERSION)
  
  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 @@
+@@ -57,7 +56,7 @@ install:	$(ZITA-RESAMPLER_MIN)
  	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)
++	/sbin/ldconfig -n $(DESTDIR)$(PREFIX)/$(LIBDIR)
  
  uninstall:
  	/bin/rm -rf $(DESTDIR)$(PREFIX)/include/zita-resampler

Deleted: 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	2012-07-29 13:01:25 UTC (rev 2192)
+++ trunk/overlays/proaudio/media-libs/zita-resampler/files/zita-resampler-1.1.0-apps-Makefile.patch	2012-07-30 02:37:02 UTC (rev 2193)
@@ -1,32 +0,0 @@
---- 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-r1.ebuild
===================================================================
--- trunk/overlays/proaudio/media-libs/zita-resampler/zita-resampler-1.1.0-r1.ebuild	                        (rev 0)
+++ trunk/overlays/proaudio/media-libs/zita-resampler/zita-resampler-1.1.0-r1.ebuild	2012-07-30 02:37:02 UTC (rev 2193)
@@ -0,0 +1,52 @@
+# 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() {
+	# drop arch suffux; pass DESTDIR; as a bonus
+	# fix dynamic linking consistency -:)
+	epatch "${FILESDIR}/${P}-Makefile.patch"
+}
+
+src_compile() {
+	cd libs
+	append-cppflags -Dlibs
+	CXX="$(tc-getCXX)" emake LIBDIR=$(get_libdir) || die "make libs failed"
+
+	cd ../apps
+	append-cppflags -Dlibs
+	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
+}

Deleted: 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	2012-07-29 13:01:25 UTC (rev 2192)
+++ trunk/overlays/proaudio/media-libs/zita-resampler/zita-resampler-1.1.0.ebuild	2012-07-30 02:37:02 UTC (rev 2193)
@@ -1,54 +0,0 @@
-# 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/