* [gentoo-commits] repo/gentoo:master commit in: media-sound/alac_decoder/, media-sound/alac_decoder/files/
@ 2017-03-11 20:47 David Seifert
0 siblings, 0 replies; only message in thread
From: David Seifert @ 2017-03-11 20:47 UTC (permalink / raw
To: gentoo-commits
commit: f093b9e257fec7af4e801c589c4f1617f1a7571c
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 11 20:17:37 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Mar 11 20:46:47 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f093b9e2
media-sound/alac_decoder: Modernise to EAPI 6
Package-Manager: Portage-2.3.4, Repoman-2.3.2
.../alac_decoder/alac_decoder-0.2.0-r1.ebuild | 28 ++++++++++++++++++++++
.../alac_decoder-0.2.0-fix-build-system.patch | 24 +++++++++++++++++++
2 files changed, 52 insertions(+)
diff --git a/media-sound/alac_decoder/alac_decoder-0.2.0-r1.ebuild b/media-sound/alac_decoder/alac_decoder-0.2.0-r1.ebuild
new file mode 100644
index 00000000000..db49dc6deca
--- /dev/null
+++ b/media-sound/alac_decoder/alac_decoder-0.2.0-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Basic decoder for Apple Lossless Audio Codec files (ALAC)"
+HOMEPAGE="http://craz.net/programs/itunes/alac.html"
+SRC_URI="http://craz.net/programs/itunes/files/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~ppc-macos ~x86-solaris"
+IUSE=""
+
+S=${WORKDIR}/${PN}
+
+PATCHES=( "${FILESDIR}"/${PN}-0.2.0-fix-build-system.patch )
+
+src_configure() {
+ tc-export CC
+}
+
+src_install() {
+ dobin alac
+ einstalldocs
+}
diff --git a/media-sound/alac_decoder/files/alac_decoder-0.2.0-fix-build-system.patch b/media-sound/alac_decoder/files/alac_decoder-0.2.0-fix-build-system.patch
new file mode 100644
index 00000000000..eac113e1d3d
--- /dev/null
+++ b/media-sound/alac_decoder/files/alac_decoder-0.2.0-fix-build-system.patch
@@ -0,0 +1,24 @@
+Make build system respect user flags
+
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,4 @@
+-CC=gcc
+ RM=rm -f
+-CFLAGS=-ggdb -O3 -W -Wall
+
+ C_SOURCES=alac.c \
+ demux.c \
+@@ -11,10 +9,10 @@
+ OBJECTS=$(C_SOURCES:.c=.o)
+
+ alac: $(OBJECTS)
+- $(CC) -o alac $(OBJECTS)
++ $(CC) $(LDFLAGS) $(CFLAGS) -o alac $(OBJECTS)
+
+ %.o: %.c
+- $(CC) -c $(CFLAGS) $< -o $@
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
+
+ clean:
+ rm -f $(OBJECTS) *.*~ alac
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-11 20:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-11 20:47 [gentoo-commits] repo/gentoo:master commit in: media-sound/alac_decoder/, media-sound/alac_decoder/files/ David Seifert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox