diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-05-11 20:21:32 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-05-11 20:21:32 +0000 |
commit | 6a6b338a37c6bbc210c21c1d191939ee1a184b3b (patch) | |
tree | 34d1514db9c0bdf67d62751c008c019b5ade8b4e /media-sound/substract_wave | |
parent | Fix bug #268784 (essential libdir not respected in splash_geninitramfs). (diff) | |
download | historical-6a6b338a37c6bbc210c21c1d191939ee1a184b3b.tar.gz historical-6a6b338a37c6bbc210c21c1d191939ee1a184b3b.tar.bz2 historical-6a6b338a37c6bbc210c21c1d191939ee1a184b3b.zip |
Fix Makefile to work with -Wl,--as-needed wrt #240484, thanks to Diego E. Pettenò.
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'media-sound/substract_wave')
-rw-r--r-- | media-sound/substract_wave/ChangeLog | 8 | ||||
-rw-r--r-- | media-sound/substract_wave/Manifest | 6 | ||||
-rw-r--r-- | media-sound/substract_wave/files/substract_wave-0.3-Makefile.patch | 42 | ||||
-rw-r--r-- | media-sound/substract_wave/files/substract_wave-0.3.diff | 19 | ||||
-rw-r--r-- | media-sound/substract_wave/substract_wave-0.3.ebuild | 24 |
5 files changed, 63 insertions, 36 deletions
diff --git a/media-sound/substract_wave/ChangeLog b/media-sound/substract_wave/ChangeLog index 3719f9bc2ad7..205afb311fcc 100644 --- a/media-sound/substract_wave/ChangeLog +++ b/media-sound/substract_wave/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-sound/substract_wave # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/substract_wave/ChangeLog,v 1.2 2009/02/06 14:10:48 sbriesen Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/substract_wave/ChangeLog,v 1.3 2009/05/11 20:21:32 ssuominen Exp $ + + 11 May 2009; Samuli Suominen <ssuominen@gentoo.org> + substract_wave-0.3.ebuild, +files/substract_wave-0.3-Makefile.patch, + -files/substract_wave-0.3.diff: + Fix Makefile to work with -Wl,--as-needed wrt #240484, thanks to Diego E. + Pettenò. 06 Feb 2009; Stefan Briesenick <sbriesen@gentoo.org> substract_wave-0.3.ebuild: diff --git a/media-sound/substract_wave/Manifest b/media-sound/substract_wave/Manifest index c85428ef848b..c56b571fb261 100644 --- a/media-sound/substract_wave/Manifest +++ b/media-sound/substract_wave/Manifest @@ -1,5 +1,5 @@ -AUX substract_wave-0.3.diff 594 RMD160 1774a14e549f684f7e777e7fe14000dac71045e2 SHA1 11ae2aaf2f1eb14b494b1f05475d9f91dc48eda6 SHA256 b0d501fca4afc934b276010a5da7f07e8277969c4ab7cdad1d083e7b4a8d964e +AUX substract_wave-0.3-Makefile.patch 1112 RMD160 3edef7bad9b875bf41e4e0745ca948663a577378 SHA1 4d4d5bad074320bccf154778a5fe2d3a92841f14 SHA256 a1de0faa146f9686664357d6aed98d2c37301446f81359795e07cc96347cf66a DIST substract_wave-0.3.tgz 14793 RMD160 adf7c7307911745876552f2025016dcced316632 SHA1 12e39587977c188d705391033aee01dac04cc024 SHA256 c1f833eb892e9acaa48d47e395cbdb127325b7787c78383bf2623289157731e4 -EBUILD substract_wave-0.3.ebuild 884 RMD160 857acf00dda52150252671c4fa540c8186388bf6 SHA1 1fc62429e04077b88af15186f3a004580f81a00f SHA256 97d8ed55996ead0b62abdd07d363ca0bda8f115cf273def52b20ac9026783db3 -MISC ChangeLog 578 RMD160 55a0d53dcfdd1b7a3d39de26968ee5bb7200b54b SHA1 6bdf62de1374f3c0b43832dea89d5cc593601b94 SHA256 4e6df02c7021ff22b136e6aff9eab1d27f58b70675c24db11183bca3963e2ea6 +EBUILD substract_wave-0.3.ebuild 776 RMD160 23cb38be5d01410b17e511ec31097302f149807e SHA1 27c05083e801aa8cbea36faa79e28c332fd8c555 SHA256 a89d559cb3d4933a2730ace42e41c57300b96906ff0850d296c7b17683b2b263 +MISC ChangeLog 827 RMD160 4e269e8480422c90b2691e6782d63b74880d1cd3 SHA1 3cf1c5d612df1f451df474ecebd6e773e37c9d9d SHA256 f01298606c47b8f8a58eae177551f01e2256c4b8e2f31fc8b811734761b8e813 MISC metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e SHA1 703cea5a2109d41f7c87993c1f01d418a4c85174 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b diff --git a/media-sound/substract_wave/files/substract_wave-0.3-Makefile.patch b/media-sound/substract_wave/files/substract_wave-0.3-Makefile.patch new file mode 100644 index 000000000000..db99dc1f5fe0 --- /dev/null +++ b/media-sound/substract_wave/files/substract_wave-0.3-Makefile.patch @@ -0,0 +1,42 @@ +diff -ur substract_wave-0.3.orig/Makefile substract_wave-0.3/Makefile +--- substract_wave-0.3.orig/Makefile 2005-10-06 17:23:42.000000000 +0300 ++++ substract_wave-0.3/Makefile 2009-05-11 23:19:30.000000000 +0300 +@@ -1,27 +1,22 @@ +-#CC=gcc +-#CC=/usr/local/bin/gcc +- +- +-CFLAGS = -O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ++CC ?= gcc ++CFLAGS += -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE ++LIBRARY = -lm + + .c.o: +- gcc $(CFLAGS) -c $< ++ $(CC) $(CFLAGS) -c $< + +-OBJECT =\ +-substract_wave.o ++OBJECT = substract_wave.o + + a.out : $(OBJECT) +- gcc -o substract_wave $(OBJECT) $(LIBRARY) ++ $(CC) $(LDFLAGS) $(CFLAGS) $(OBJECT) $(LIBRARY) -o substract_wave + +-# DEPENDENCIES + substract_wave.o : substract_wave.c substract_wave.h wave_header.h + +-install: +- cp substract_wave /usr/local/bin/ +- +-install.man: +- cp substract_wave.man /usr/local/man/man1/substract_wave.1 ++install: ++ mkdir -p $(DESTDIR)/usr/bin ++ cp substract_wave $(DESTDIR)/usr/bin ++ mkdir -p $(DESTDIR)/usr/share/man/man1 ++ cp substract_wave.man $(DESTDIR)/usr/share/man/man1/substract_wave.1 + + clean: + rm *.o +- diff --git a/media-sound/substract_wave/files/substract_wave-0.3.diff b/media-sound/substract_wave/files/substract_wave-0.3.diff deleted file mode 100644 index b9afb0272462..000000000000 --- a/media-sound/substract_wave/files/substract_wave-0.3.diff +++ /dev/null @@ -1,19 +0,0 @@ -diff -Naur substract_wave-0.3.orig/Makefile substract_wave-0.3/Makefile ---- substract_wave-0.3.orig/Makefile 2005-10-06 16:23:42.000000000 +0200 -+++ substract_wave-0.3/Makefile 2007-10-06 16:46:09.000000000 +0200 -@@ -5,13 +5,13 @@ - CFLAGS = -O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - - .c.o: -- gcc $(CFLAGS) -c $< -+ $(CC) $(CFLAGS) -c $< - - OBJECT =\ - substract_wave.o - - a.out : $(OBJECT) -- gcc -o substract_wave $(OBJECT) $(LIBRARY) -+ $(CC) $(LDFLAGS) -o substract_wave $(OBJECT) $(LIBRARY) - - # DEPENDENCIES - substract_wave.o : substract_wave.c substract_wave.h wave_header.h diff --git a/media-sound/substract_wave/substract_wave-0.3.ebuild b/media-sound/substract_wave/substract_wave-0.3.ebuild index a6bd3fb13f5a..9b9e5ed71b16 100644 --- a/media-sound/substract_wave/substract_wave-0.3.ebuild +++ b/media-sound/substract_wave/substract_wave-0.3.ebuild @@ -1,10 +1,9 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/substract_wave/substract_wave-0.3.ebuild,v 1.2 2009/02/06 14:10:48 sbriesen Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/substract_wave/substract_wave-0.3.ebuild,v 1.3 2009/05/11 20:21:32 ssuominen Exp $ -inherit eutils toolchain-funcs flag-o-matic - -IUSE="" +EAPI=2 +inherit eutils toolchain-funcs DESCRIPTION="substracts 2 mono wave files from each other by a factor specified on the command line" HOMEPAGE="http://panteltje.com/panteltje/dvd/" @@ -12,20 +11,19 @@ SRC_URI="http://panteltje.com/panteltje/dvd/${P}.tgz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~x86" +KEYWORDS="~amd64 ~x86" +IUSE="" -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}/${P}.diff" +src_prepare() { + epatch "${FILESDIR}"/${P}-Makefile.patch } src_compile() { - append-flags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LIBRARY="-lm" || die "emake failed" + tc-export CC + emake || die "emake failed" } src_install() { - dobin substract_wave - dodoc CHANGES README mono-stereo.txt substract_wave.man + emake DESTDIR="${D}" install || die "emake install failed" + dodoc CHANGES mono-stereo.txt README } |