diff options
Diffstat (limited to 'media-sound/snd')
-rw-r--r-- | media-sound/snd/Manifest | 7 | ||||
-rw-r--r-- | media-sound/snd/files/snd-17.4-portaudio.patch | 49 | ||||
-rw-r--r-- | media-sound/snd/files/snd-17.4-undefined-oss_sample_types.patch | 21 | ||||
-rw-r--r-- | media-sound/snd/metadata.xml | 11 | ||||
-rw-r--r-- | media-sound/snd/snd-17.4.ebuild | 119 |
5 files changed, 207 insertions, 0 deletions
diff --git a/media-sound/snd/Manifest b/media-sound/snd/Manifest new file mode 100644 index 000000000000..9959e0bf64ed --- /dev/null +++ b/media-sound/snd/Manifest @@ -0,0 +1,7 @@ +AUX snd-17.4-portaudio.patch 2154 SHA256 f37a861b312032ec544a79e40814d67b7dd63fce1099c2daada8b94c5e9c1ed8 SHA512 01f7d7f3bd315a8b372d81e2f5a96b9f1cd100eb4afe62a57c5b0422740892b80d504ab2774190814fde04849bc097817262f7bc96bda1f90a08f544caa439ce WHIRLPOOL c07878174acf02e08f98bf81f5fc39f73b4a736377775e559ecb5f250b9cd8536229ef4efd0e0d657642da6fc9a118d3cb1e61575424c635e7b7f85389e4ca14 +AUX snd-17.4-undefined-oss_sample_types.patch 372 SHA256 98999381eebb15846467bcc0bd49886ea52e7fa3603e7de410fbbeeae86eb51f SHA512 3b6a64eea622d77389edf754450a6ef1a5036b1ef0c5e02f7c84c4aa150fd0c30dd3e7855126dbbce1582a9ff1e02ddc2abfb5e7636feb71713e08c7b1bc0478 WHIRLPOOL 5aaccd99172d283135e406c6c52f3525d88a27b182cf47cc13b48a2c02d215be37343eb315706f3cd3306b36b53cbd3f6cda6f9a8f8b53d76075cd3a63118010 +DIST snd-17.4.tar.gz 15096338 SHA256 efa311586661a5e73bb0fe894a366e2320a494d975424928b563dab450d0fb48 SHA512 cbbc546fe4a3ef758c5372edbdae4db29457c559eafa08854819917e153ce850f5ab302da68dee826f99c26f10769aae8c6df6ea8434614f084f21d0dbbc5c88 WHIRLPOOL ec7fc7848edf84d91312fbb7316d5f96ba8fa30d7b39bc12a0b71f5bb771cb31cacf1044401177f35ae665df59513951166b7654c955e0cf53e2ae0e5d8847e2 +EBUILD snd-17.4.ebuild 2633 SHA256 b63faf1909f77ddeb1ba68eb96a2aa7d98e80ba5b6369e193b25f66e14b45e79 SHA512 5503254ec86f746dd67513f6e21a3db31a1298dc740a3b3ffd6a90be4b5a9f5a935444067508f5d216a188aaabd03b94b272e4adb1ef6ef9b9bcf9c599cd745f WHIRLPOOL 19f39a47c5cfbfee76bc820e1ea75fa7469fea018937b112679adbe8827c2d0b6096a5823102c3af546ae1caf76d1cbed6e6d79dadc04777e200e0d6e21c04ee +MISC ChangeLog 2856 SHA256 e661b00e7c782a5f2264b29b8452fd61ffeca8f2c8b4fd381aea61c3ae23e782 SHA512 9d4e465c142c4a6ab09b4f592a8db7cb6c87a8ca7fd3831679868abfb5ce26c75fe95a0c7c1838644aacaad40a94cfa9bbee244c7117737d679013ee245b0a16 WHIRLPOOL 53b1a6241706e5592cf8243e7b6b32940d6cedc3b4826f2e6d898b02b2658a4cc89b0ec60254ff5e843ff4fcaeda164f0a88e34fd5d8d06770a7fb1b3638f6ac +MISC ChangeLog-2015 8958 SHA256 a268cc271ce223410b8d477b6e2c85480ce16dd0f14d69b23ec003d686a89982 SHA512 98361ff384e6b7dc23939ac68df04a3e2f1e6cc78ffaed882bdbfe151f21fb30583195775753448ce7265af6946921457bca1bd6629a83b2eef0fa742cb84dd5 WHIRLPOOL 8eed7e3d623fd33399200f1254a0f97ab566e164472b64fb16f46665acaec406a68d8e7c708b8ba6266942ed5820c0889b4ef45959f024e795519bb2a67da11a +MISC metadata.xml 344 SHA256 3676a938c60059124534f946c7c7f1df76c2aba915098e85bd166a12e29ae304 SHA512 42144ef636272ad14dee0131dd1181ddb6635aaecec547b1d4eb3e66ef00eebfbbd8a551ce33f041fe44fb2e1758fd46c24b5961f5a148e90d94c6825fd37c87 WHIRLPOOL 735c243bccccc5c9b450327f1328a28c1498061baadac80fd34b45d5cf20a271ccde142b3522692ee95d4557dc355fceb10aca6c1fab826e3a6500c6e33ccccc diff --git a/media-sound/snd/files/snd-17.4-portaudio.patch b/media-sound/snd/files/snd-17.4-portaudio.patch new file mode 100644 index 000000000000..8bdb1af01e8a --- /dev/null +++ b/media-sound/snd/files/snd-17.4-portaudio.patch @@ -0,0 +1,49 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -521,8 +521,9 @@ + + if test "$with_portaudio" = yes ; then + AC_DEFINE(MUS_PORTAUDIO) ++ PKG_CHECK_MODULES([PORTAUDIO], [portaudio-2.0]) + AUDIO_SYSTEM=portaudio +- AUDIO_LIB="-lportaudio" ++ AUDIO_LIB="${PORTAUDIO_LIBS}" + fi + + if test "$with_jack" = yes ; then +--- a/makefile.in ++++ b/makefile.in +@@ -11,6 +11,7 @@ + GL_FLAGS = @GL_FLAGS@ + GSL_FLAGS = @GSL_CFLAGS@ + JACK_FLAGS = @JACK_FLAGS@ ++PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ + + ORIGINAL_LDFLAGS = @ORIGINAL_LDFLAGS@ + LDFLAGS = @LDFLAGS@ +@@ -28,6 +29,7 @@ + WEBSERVER_FILES = @WEBSERVER_FILES@ + JACK_LIBS = @JACK_LIBS@ + GMP_LIBS = @GMP_LIBS@ ++PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ + + LDSO_FLAGS = @LDSO_FLAGS@ + SO_FLAGS = @SO_FLAGS@ +@@ -53,7 +55,7 @@ + .SUFFIXES: .c .o + + .c.o: +- $(CC) -c $(DEFS) $(GTK_CFLAGS) $(CAIRO_CFLAGS) $(CFLAGS) $(XEN_CFLAGS) $(GSL_FLAGS) $(GL_FLAGS) $(JACK_FLAGS) $(FFTW_CFLAGS) $< ++ $(CC) -c $(DEFS) $(GTK_CFLAGS) $(CAIRO_CFLAGS) $(CFLAGS) $(XEN_CFLAGS) $(GSL_FLAGS) $(GL_FLAGS) $(JACK_FLAGS) $(FFTW_CFLAGS) $(PORTAUDIO_CFLAGS) $< + + SND_SCRIPTS = *.scm *.fs *.rb *.fsm + SNDLIB_HEADERS = mus-config.h sndlib.h _sndlib.h sndlib-strings.h clm.h vct.h sndlib2xen.h clm2xen.h xen.h clm-strings.h +@@ -84,7 +86,7 @@ + main_target: @MAKE_TARGET@ + + snd: $(SNDLIB_HEADERS) $(SND_HEADERS) $(GX_HEADERS) $(S7_HEADERS) $(S7_O_FILES) $(SNDLIB_O_FILES) $(O_FILES) $(GX_FILES) $(GL_FILES) $(WEBSERVER_FILES) +- $(CC) $(LDFLAGS) $(CFLAGS) $(S7_O_FILES) $(SNDLIB_O_FILES) $(O_FILES) $(GX_FILES) $(GL_FILES) $(WEBSERVER_FILES) -o snd $(SNDLIB_LIB) $(XEN_LIBS) $(GTK_LIBS) $(GL_LIBS) $(WEBSERVER_LIBS) $(JACK_LIBS) $(AUDIO_LIB) $(FFTW_LIBS) $(GSL_LIBS) $(GMP_LIBS) $(LIBS) ++ $(CC) $(LDFLAGS) $(CFLAGS) $(S7_O_FILES) $(SNDLIB_O_FILES) $(O_FILES) $(GX_FILES) $(GL_FILES) $(WEBSERVER_FILES) -o snd $(SNDLIB_LIB) $(XEN_LIBS) $(GTK_LIBS) $(GL_LIBS) $(WEBSERVER_LIBS) $(JACK_LIBS) $(AUDIO_LIB) $(FFTW_LIBS) $(GSL_LIBS) $(GMP_LIBS) $(PORTAUDIO_LIBS) $(LIBS) + + xm: xen.h mus-config.h $(S7_HEADERS) + $(CC) -c xm.c -DUSE_SND=0 $(DEFS) $(SO_FLAGS) $(GTK_CFLAGS) $(CAIRO_CFLAGS) $(CFLAGS) $(XEN_CFLAGS) $(GSL_FLAGS) $(JACK_FLAGS) $(GL_FLAGS) diff --git a/media-sound/snd/files/snd-17.4-undefined-oss_sample_types.patch b/media-sound/snd/files/snd-17.4-undefined-oss_sample_types.patch new file mode 100644 index 000000000000..6199a7b183fd --- /dev/null +++ b/media-sound/snd/files/snd-17.4-undefined-oss_sample_types.patch @@ -0,0 +1,21 @@ +Always compile the `oss_sample_types` function +Bug: https://bugs.gentoo.org/show_bug.cgi?id=621758 + +--- a/audio.c ++++ b/audio.c +@@ -743,7 +743,6 @@ + } + + +-#if (!HAVE_ALSA) + static int oss_sample_types(int ur_dev, mus_sample_t *val) + { + int fd, samp_types = 0, sys, ind; +@@ -774,7 +773,6 @@ + val[0] = (mus_sample_t)(ind - 1); + return(MUS_NO_ERROR); + } +-#endif + + + diff --git a/media-sound/snd/metadata.xml b/media-sound/snd/metadata.xml new file mode 100644 index 000000000000..45299bb81517 --- /dev/null +++ b/media-sound/snd/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>sound@gentoo.org</email> + <name>Gentoo Sound project</name> +</maintainer> +<use> + <flag name="s7">Enable the s7 extension language (a version of Scheme)</flag> +</use> +</pkgmetadata> diff --git a/media-sound/snd/snd-17.4.ebuild b/media-sound/snd/snd-17.4.ebuild new file mode 100644 index 000000000000..5b746a352c8a --- /dev/null +++ b/media-sound/snd/snd-17.4.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools flag-o-matic + +DESCRIPTION="Snd is a sound editor" +HOMEPAGE="http://ccrma.stanford.edu/software/snd/" +SRC_URI="ftp://ccrma-ftp.stanford.edu/pub/Lisp/${P}.tar.gz" + +LICENSE="Snd BSD-2 HPND GPL-2+ LGPL-2.1+ LGPL-3+ ruby? ( free-noncomm ) s7? ( free-noncomm )" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="alsa doc fftw gmp gsl gtk jack ladspa motif opengl oss portaudio pulseaudio readline ruby +s7" + +RDEPEND="media-libs/audiofile + alsa? ( media-libs/alsa-lib ) + fftw? ( sci-libs/fftw:3.0= ) + gmp? ( + dev-libs/gmp:0= + dev-libs/mpc + dev-libs/mpfr:0= + ) + gsl? ( sci-libs/gsl:= ) + gtk? ( + x11-libs/gtk+:3 + x11-libs/pango + x11-libs/cairo + opengl? ( x11-libs/gtkglext ) + ) + jack? ( media-sound/jack-audio-connection-kit ) + ladspa? ( media-libs/ladspa-sdk ) + motif? ( >=x11-libs/motif-2.3:0 ) + opengl? ( virtual/opengl ) + portaudio? ( media-libs/portaudio ) + pulseaudio? ( media-sound/pulseaudio ) + readline? ( sys-libs/readline:* ) + ruby? ( dev-lang/ruby:* )" +DEPEND="${RDEPEND}" + +REQUIRED_USE=" + ?? ( portaudio pulseaudio ) + ?? ( ruby s7 )" + +PATCHES=( + "${FILESDIR}"/${PN}-17.4-portaudio.patch + "${FILESDIR}"/${PN}-17.4-undefined-oss_sample_types.patch +) + +pkg_setup() { + if ! use gtk && ! use motif ; then + ewarn "Warning: no graphic toolkit selected (gtk or motif)." + ewarn "Upstream suggests to enable one of the toolkits (or both)" + ewarn "or only the command line utilities will be helpful." + fi +} + +src_prepare() { + default + sed -i -e "s:-O2 ::" configure.ac || die + eautoreconf +} + +src_configure() { + # Workaround executable sections QA warning (bug #348754) + append-ldflags -Wl,-z,noexecstack + + local myconf + if ! use ruby && ! use s7 ; then + myconf+=" --without-extension-language" + fi + + econf \ + $(use_with alsa) \ + $(use_with fftw) \ + $(use_with gmp) \ + $(use_with gsl) \ + $(use_with gtk) \ + $(use_with jack) \ + $(use_with ladspa) \ + $(use_with motif) \ + $(use_with oss) \ + $(use_with portaudio) \ + $(use_with pulseaudio) \ + $(use_with ruby) \ + $(use_with s7) \ + ${myconf} +} + +src_compile() { + emake snd + + # Do not compile ruby extensions for command line programs since they fail + sed -i -e "s:HAVE_RUBY 1:HAVE_RUBY 0:" mus-config.h || die + + local i + for i in sndplay sndinfo; do + emake ${i} + done +} + +src_install () { + dobin snd sndplay sndinfo + + if use ruby ; then + insinto /usr/share/snd + doins *.rb + fi + + if use s7 ; then + insinto /usr/share/snd + doins *.scm + fi + + use doc && HTML_DOCS=( *.html pix/*.png ) + einstalldocs + dodoc HISTORY.Snd +} |