diff options
Diffstat (limited to 'media-libs/sdif')
-rw-r--r-- | media-libs/sdif/Manifest | 8 | ||||
-rw-r--r-- | media-libs/sdif/files/sdif-3.11.4-fix-buildsystem.patch | 60 | ||||
-rw-r--r-- | media-libs/sdif/files/sdif-3.8.6-cflags.patch | 39 | ||||
-rw-r--r-- | media-libs/sdif/metadata.xml | 20 | ||||
-rw-r--r-- | media-libs/sdif/sdif-3.11.4.ebuild | 38 | ||||
-rw-r--r-- | media-libs/sdif/sdif-3.8.6.ebuild | 50 |
6 files changed, 215 insertions, 0 deletions
diff --git a/media-libs/sdif/Manifest b/media-libs/sdif/Manifest new file mode 100644 index 000000000000..5903f5303945 --- /dev/null +++ b/media-libs/sdif/Manifest @@ -0,0 +1,8 @@ +AUX sdif-3.11.4-fix-buildsystem.patch 2325 BLAKE2B 7192e2d0c4cc1c4203a6613a975c4458888499e524c95c7706ed98948ce9ab0bd0c7fb37fe6a3223c9373167f3105fa6f51c9e3a0889a346db024c0c1c7ba68b SHA512 50321ac50d622959aed59be2462af30e8cb0a3d159f24e9a0837cf72a98d6b0b19799d20c824bcfeb4d3e2952972e6849294f4b79b13f1accc32975e885f7b5a +AUX sdif-3.8.6-cflags.patch 1369 BLAKE2B a5ee59d74809f75e305852df1db521561cb1724042a7227354b9c61cede9c91294d1c57c9423ffaf276a05e80d33f6d4d6d9a73e91aac701e5dddc1168dd9c54 SHA512 d07bdfc045d8283b4800a758b7a902550b298c7220bff1e4c8c39c2b446ef52b5d1952d9ae3828a79c5360092536ed8276af85785d8e5ce15cf52b26115552ad +DIST SDIF-3.11.4-src.zip 1230479 BLAKE2B 2883083bbb8555f27532964965afd02fdeb023d15d28629c070259f057552b3227aed7f9add78b7315eb94c569a754fd4bc85df2439d24d3f17d3a41bc6dfdb8 SHA512 3730fdb527909403e43ea793ab97e0a3175bb63dee3d0183db831bb6be85837823c42ae2a3559b6ec94218b4338d04017353282fdc7bb79bbee467e09685d3e9 +DIST SDIF-3.8.6-src.tar.gz 786261 BLAKE2B 406d6e51a9fe00f3d25de6d6a1e682bc049b56333d27a015c9e7eb44a4b4e78a765c22743f63f083e24518fb95e17e0cc0a5c25868ed649709cc94051fbac0b3 SHA512 5b9603bed121afe4e4bd524372332c48a226711c029271ce0a26ae644990f060104b03983a3b49afe141897bdf6e878dbfd31a853c38ab14b8d4eb98f868f9e7 +DIST SDIF-doc.tar.gz 534161 BLAKE2B 0508a0824ab737e76aeeef11f240d1166e8e2731f4ccde127e202aeddd3880abf768266c6130a670ea8810e6ff0e9671431f5c7e05f6abe7f33cd257af12373f SHA512 df03d8dcb69603a5ad96dbee77789b0422e39b5dfbe1f944dff1d3763a59d9dce779ef714fa041a44d9fe30ab4714c0f2343502004c1e9b03286ae701fb14e22 +EBUILD sdif-3.11.4.ebuild 788 BLAKE2B 2707fab4d453b9fc78719ad0c9adc639be5b674d86efea80640b1b90f068cdeac440632de723a922bb8062cdf36dda7d929af2a5aac27e6e1b9740ce6a4d7a7c SHA512 8be7f0fcf6d6e34c2b4db6af554ddcb182d51d6f0b669a294084140fae64a425b6025ba720d29a38b2e15df13903e0a5f85f14073acabbeea15f6ac55940ed0e +EBUILD sdif-3.8.6.ebuild 1226 BLAKE2B c57b1b2a535f18749be98ad7ee2d39d4775fdd0d2003eb96c97941a72108179c4d64b505339ef158009a32c3319daa46f7d64fd0a4b47b0f5701e46af27080b1 SHA512 ed0bfdcf7b1a9062a45a560d9750407afcfa79f01f99eec85b222cb9f69e64d7a1f3affaf8cc4006454d8e648cefbd553f025609560a4b11008a6273eef88247 +MISC metadata.xml 725 BLAKE2B 66d8d7bd0aa41ac85d2f544bb902c9ebdf740d2ec74587511ea4ab609a4bec2f8aabc1e839c0a02f59c0d93f4882a8d9df00672034b55f14b7c3ec1dc4ae64f3 SHA512 3836d62692b81ac8a290194e3dc0079a34e80add8d2e4b253e5396674be20058901db7beeb2fb3aee30b3cdc4966263852105666bfbf910a1b0ea56ac50d0cbc diff --git a/media-libs/sdif/files/sdif-3.11.4-fix-buildsystem.patch b/media-libs/sdif/files/sdif-3.11.4-fix-buildsystem.patch new file mode 100644 index 000000000000..162976c6ab45 --- /dev/null +++ b/media-libs/sdif/files/sdif-3.11.4-fix-buildsystem.patch @@ -0,0 +1,60 @@ +Remove hardcoded CFLAGS, fix broken example generation. + +--- SDIF-3.11.4-src/configure.ac ++++ SDIF-3.11.4-src/configure.ac +@@ -518,15 +518,15 @@ + [--enable-debug support additional library/programs with debug enabled], + [echo FEATURE enable-debug... $enableval; + if test "$enableval" = "yes"; then +- SELLIB=libsdif-debug.la; CFLAGS="$EXTERNAL_CFLAGS -g2 -Wall"; ++ SELLIB=libsdif-debug.la; + PROGLIST="querysdif-debug\$(EXEEXT) sdifextract-debug\$(EXEEXT) sdiftotext-debug\$(EXEEXT) tosdif-debug\$(EXEEXT)"; + + else +- SELLIB=libsdif.la; CFLAGS="$EXTERNAL_CFLAGS -O3"; ++ SELLIB=libsdif.la; + PROGLIST="querysdif\$(EXEEXT) sdifextract\$(EXEEXT) sdiftotext\$(EXEEXT) tosdif\$(EXEEXT)"; + fi ], + [ +-SELLIB=libsdif.la; CFLAGS="$EXTERNAL_CFLAGS -O3"; ++SELLIB=libsdif.la; + PROGLIST="querysdif\$(EXEEXT) sdifextract\$(EXEEXT) sdiftotext\$(EXEEXT) tosdif\$(EXEEXT)"; + ]) + +@@ -538,7 +538,7 @@ + [--enable-profile generate additional library/programs with profiling output enabled], + [echo FEATURE enable-profile... $enableval; + if test "$enableval" = "yes"; then +- SELLIB=libsdif-profile.la; CFLAGS="$CFLAGS -g -pg -fprofile-arcs"; ++ SELLIB=libsdif-profile.la; + PROGLIST="querysdif-profile\$(EXEEXT) sdifextract-profile\$(EXEEXT) sdiftotext-profile\$(EXEEXT) tosdif-profile\$(EXEEXT)"; + dnl else use the one selected above + fi ], +--- SDIF-3.11.4-src/examples/Makefile.am ++++ SDIF-3.11.4-src/examples/Makefile.am +@@ -18,18 +18,14 @@ + # trying to add source code to dist, not working yet + # + +-INCLUDES = -I../include -I$(top_srcdir)/include -I$(top_srcdir)/sdif +-CFLAGS = @CFLAGS@ '-DVERSION="$(VERSION)"' ++AM_CPPFLAGS = -I../include -I$(top_srcdir)/include -I$(top_srcdir)/sdif ++AM_CFLAGS = '-DVERSION="$(VERSION)"' @PTHREAD_CFLAGS@ + +-libsdif = $(top_srcdir)/sdif/.libs/libsdif.a ++bin_PROGRAMS = list-types list-nvt + +-# this is for automake +-EXTRA_DIST = list-types.c list-nvt.c ++list_types_SOURCES = list-types.c ++list_types_LDADD = $(top_srcdir)/sdif/.libs/libsdif.a @PTHREAD_CFLAGS@ @PTHREAD_LIBS@ + +-all: list-types list-nvt ++list_nvt_SOURCES = list-nvt.c ++list_nvt_LDADD = $(top_srcdir)/sdif/.libs/libsdif.a @PTHREAD_CFLAGS@ @PTHREAD_LIBS@ + +-list-types: list-types.c $(libsdif) +- gcc -I../include -g -o $@ $^ +- +-list-nvt: list-nvt.c $(libsdif) +- gcc $(LDFLAGS) -I../include -g -o $@ $^ diff --git a/media-libs/sdif/files/sdif-3.8.6-cflags.patch b/media-libs/sdif/files/sdif-3.8.6-cflags.patch new file mode 100644 index 000000000000..27debd5b67c5 --- /dev/null +++ b/media-libs/sdif/files/sdif-3.8.6-cflags.patch @@ -0,0 +1,39 @@ +--- configure.old 2004-09-03 06:49:36.454205056 +0900 ++++ configure 2004-09-03 09:24:10.924271296 +0900 +@@ -19247,6 +19247,7 @@ + done + + ++CFLAGS="${CFLAGS}" + + # Check whether --enable-doc-compilation or --disable-doc-compilation was given. + if test "${enable_doc_compilation+set}" = set; then +@@ -19844,16 +19845,16 @@ + enableval="$enable_debug" + echo FEATURE enable-debug... $enableval; + if test "$enableval" = "yes"; then +- SELLIB=libsdif-debug.la; CFLAGS="-g2"; ++ SELLIB=libsdif-debug.la; CFLAGS="${CFLAGS} -g2"; + PROGLIST="querysdif-debug\$(EXEEXT) sdifextract-debug\$(EXEEXT) sdiftotext-debug\$(EXEEXT) tosdif-debug\$(EXEEXT)"; + + else +- SELLIB=libsdif.la; CFLAGS="-O3"; ++ SELLIB=libsdif.la; + PROGLIST="querysdif\$(EXEEXT) sdifextract\$(EXEEXT) sdiftotext\$(EXEEXT) tosdif\$(EXEEXT)"; + fi + else + +-SELLIB=libsdif.la; CFLAGS="-O3"; ++SELLIB=libsdif.la; + PROGLIST="querysdif\$(EXEXT) sdifextract\$(EXEEXT) sdiftotext\$(EXEEXT) tosdif\$(EXEEXT)"; + + fi; +@@ -19865,7 +19866,7 @@ + enableval="$enable_profile" + echo FEATURE enable-profile... $enableval; + if test "$enableval" = "yes"; then +- SELLIB=libsdif-profile.la; CFLAGS="-g -pg -fprofile-arcs"; ++ SELLIB=libsdif-profile.la; CFLAGS="${CFLAGS} -g -pg -fprofile-arcs"; + PROGLIST="querysdif-profile\$(EXEEXT) sdifextract-profile\$(EXEEXT) sdiftotext-profile\$(EXEEXT) tosdif-profile\$(EXEEXT)"; + fi + else diff --git a/media-libs/sdif/metadata.xml b/media-libs/sdif/metadata.xml new file mode 100644 index 000000000000..1adcb2a99c94 --- /dev/null +++ b/media-libs/sdif/metadata.xml @@ -0,0 +1,20 @@ +<?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> + <longdescription> + The general idea of SDIF is to store information related to signal + processing and specifically of sound, in files, according to a common + format to all data types. Thus, it is possible to store results or + parameters of analyses, syntheses... + </longdescription> + <use> + <flag name="ftruncate">Enables usage of ftruncate v. truncate</flag> + </use> + <upstream> + <remote-id type="sourceforge">sdif</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-libs/sdif/sdif-3.11.4.ebuild b/media-libs/sdif/sdif-3.11.4.ebuild new file mode 100644 index 000000000000..274f5729f910 --- /dev/null +++ b/media-libs/sdif/sdif-3.11.4.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils + +DESCRIPTION="Sound Description Interchange Format Library for audio and wave processing" +HOMEPAGE="https://sourceforge.net/projects/sdif/" +SRC_URI="https://sourceforge.net/projects/sdif/files/sdif/SDIF-${PV}/SDIF-${PV}-src.zip" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="debug ftruncate threads" + +PATCHES=( + "${FILESDIR}/${P}-fix-buildsystem.patch" +) +S="${WORKDIR}/SDIF-${PV}-src" + +src_prepare() { + mv configure.{in,ac} || die + default + eautoreconf +} + +src_configure() { + econf \ + $(use_enable debug) \ + $(use_enable ftruncate) \ + $(use_enable threads pthreads) +} + +src_install() { + default + prune_libtool_files --all +} diff --git a/media-libs/sdif/sdif-3.8.6.ebuild b/media-libs/sdif/sdif-3.8.6.ebuild new file mode 100644 index 000000000000..75665aac5501 --- /dev/null +++ b/media-libs/sdif/sdif-3.8.6.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=0 + +IUSE="doc threads ftruncate debug" + +inherit eutils + +MY_PN="${PN/sdif/SDIF}" +MY_P=${MY_PN}-${PV}-src +S=${WORKDIR}/${MY_P} + +DESCRIPTION="The Sound Description Interchange Format Library deals with audio and wave processing" +HOMEPAGE="http://www.ircam.fr/anasyn/sdif" +SRC_URI="http://www.ircam.fr/anasyn/sdif/download/${MY_P}.tar.gz + doc? ( http://www.ircam.fr/anasyn/sdif/download/${MY_PN}-doc.tar.gz )" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc sparc x86" + +DEPEND="" + +src_unpack() { + # a hack that I need to bother upstream about + # they don't want to use the "Package-Name-Docs/file1.html" format + # instead it's just file1.html :| + unpack "${MY_P}.tar.gz" + mkdir "${WORKDIR}/SDIF-doc" + use doc && tar xfz "${DISTDIR}/${MY_PN}-doc.tar.gz" -C "${WORKDIR}/SDIF-doc" + + cd "${S}" + #custom cflags... + epatch "${FILESDIR}/${P}-cflags.patch" +} + +src_compile() { + econf $(use_enable debug) \ + $(use_enable ftruncate) \ + $(use_enable threads pthreads) \ + || die "configure failed" + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die + use doc && dohtml -r "${WORKDIR}/SDIF-doc" +} |