diff options
author | David Seifert <soap@gentoo.org> | 2019-12-22 12:52:18 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2019-12-22 12:52:18 +0100 |
commit | 528ca451bbec1d3291cd53d096e6f683bd236c93 (patch) | |
tree | a993c7b5a50569859a40a51b3b92fdcf0e98d836 | |
parent | media-plugins/tap-plugins: Port to EAPI 7 (diff) | |
download | gentoo-528ca451bbec1d3291cd53d096e6f683bd236c93.tar.gz gentoo-528ca451bbec1d3291cd53d096e6f683bd236c93.tar.bz2 gentoo-528ca451bbec1d3291cd53d096e6f683bd236c93.zip |
media-plugins/mcp-plugins: Port to EAPI 7
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
-rw-r--r-- | media-plugins/mcp-plugins/files/mcp-plugins-0.4.0-makefile.patch | 44 | ||||
-rw-r--r-- | media-plugins/mcp-plugins/mcp-plugins-0.4.0-r1.ebuild | 22 |
2 files changed, 55 insertions, 11 deletions
diff --git a/media-plugins/mcp-plugins/files/mcp-plugins-0.4.0-makefile.patch b/media-plugins/mcp-plugins/files/mcp-plugins-0.4.0-makefile.patch new file mode 100644 index 000000000000..7d733014aa9b --- /dev/null +++ b/media-plugins/mcp-plugins/files/mcp-plugins-0.4.0-makefile.patch @@ -0,0 +1,44 @@ +--- a/Makefile ++++ b/Makefile +@@ -15,35 +15,36 @@ + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + + +-CPPFLAGS += -I. -fPIC -D_REENTRANT -Wall -O3 ++CXXFLAGS += -fPIC -Wall ++CPPFLAGS += -I. -D_REENTRANT + + + all: mvclpf24.so mvchpf24.so cs_phaser.so cs_chorus.so + + + mvclpf24.so: mvclpf24.o mvclpf24_if.o exp2ap.o +- g++ -shared mvclpf24.o mvclpf24_if.o exp2ap.o -o mvclpf24.so ++ $(CXX) $(LDFLAGS) -shared mvclpf24.o mvclpf24_if.o exp2ap.o -o mvclpf24.so + + mvclpf24.o: ladspaplugin.h mvclpf24.h + mvclpf24_if.o: ladspaplugin.h mvclpf24.h + + + mvchpf24.so: mvchpf24.o mvchpf24_if.o exp2ap.o +- g++ -shared mvchpf24.o mvchpf24_if.o exp2ap.o -o mvchpf24.so ++ $(CXX) $(LDFLAGS) -shared mvchpf24.o mvchpf24_if.o exp2ap.o -o mvchpf24.so + + mvchpf24.o: ladspaplugin.h mvchpf24.h + mvchpf24_if.o: ladspaplugin.h mvchpf24.h + + + cs_phaser.so: cs_phaser.o cs_phaser_if.o exp2ap.o +- g++ -shared cs_phaser.o cs_phaser_if.o exp2ap.o -o cs_phaser.so ++ $(CXX) $(LDFLAGS) -shared cs_phaser.o cs_phaser_if.o exp2ap.o -o cs_phaser.so + + cs_phaser.o: ladspaplugin.h cs_phaser.h + cs_phaser_if.o: ladspaplugin.h cs_phaser.h + + + cs_chorus.so: cs_chorus.o cs_chorus_if.o exp2ap.o +- g++ -shared cs_chorus.o cs_chorus_if.o exp2ap.o -o cs_chorus.so ++ $(CXX) $(LDFLAGS) -shared cs_chorus.o cs_chorus_if.o exp2ap.o -o cs_chorus.so + + cs_chorus.o: ladspaplugin.h cs_chorus.h + cs_chorus_if.o: ladspaplugin.h cs_chorus.h diff --git a/media-plugins/mcp-plugins/mcp-plugins-0.4.0-r1.ebuild b/media-plugins/mcp-plugins/mcp-plugins-0.4.0-r1.ebuild index ef7276cd46ca..6953b27216b7 100644 --- a/media-plugins/mcp-plugins/mcp-plugins-0.4.0-r1.ebuild +++ b/media-plugins/mcp-plugins/mcp-plugins-0.4.0-r1.ebuild @@ -1,8 +1,9 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 -inherit multilib toolchain-funcs +EAPI=7 + +inherit toolchain-funcs MY_P=${P/mcp/MCP} @@ -12,23 +13,22 @@ SRC_URI="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="0" -KEYWORDS="amd64 ~ppc ~x86" -IUSE="" +KEYWORDS="amd64 ~ppc x86" DEPEND="media-libs/ladspa-sdk" RDEPEND="${DEPEND}" S=${WORKDIR}/${MY_P} -src_prepare() { +PATCHES=( "${FILESDIR}"/${PN}-0.4.0-makefile.patch ) + +src_configure() { tc-export CXX - sed -i -e "s/-O3//" \ - -e "s/g++/$(tc-getCXX) ${LDFLAGS}/" Makefile || die "sed failed" } src_install() { - dodoc AUTHORS README - insinto /usr/$(get_libdir)/ladspa - insopts -m0755 - doins *.so + einstalldocs + + exeinto /usr/$(get_libdir)/ladspa + doexe *.so } |