summaryrefslogtreecommitdiff
path: root/media-libs/sdif
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/sdif
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/sdif')
-rw-r--r--media-libs/sdif/Manifest10
-rw-r--r--media-libs/sdif/files/sdif-3.11.4-fix-buildsystem.patch60
-rw-r--r--media-libs/sdif/files/sdif-3.8.6-cflags.patch39
-rw-r--r--media-libs/sdif/metadata.xml20
-rw-r--r--media-libs/sdif/sdif-3.11.4.ebuild38
-rw-r--r--media-libs/sdif/sdif-3.8.6.ebuild48
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..736f30784523
--- /dev/null
+++ b/media-libs/sdif/Manifest
@@ -0,0 +1,10 @@
+AUX sdif-3.11.4-fix-buildsystem.patch 2325 SHA256 5b4d4da49635c0d1e578aa3c51c7261f36605e02126347d37f528181ecbf98b6 SHA512 50321ac50d622959aed59be2462af30e8cb0a3d159f24e9a0837cf72a98d6b0b19799d20c824bcfeb4d3e2952972e6849294f4b79b13f1accc32975e885f7b5a WHIRLPOOL a7c2ac37fb2457ef6221c340fb2925a6dc5b892d2a7f6308c8eb07b24e6900af17fddb4caa5638f6ccf1fa8e309522fa55b75841b07ff7c936de87ba2233c48e
+AUX sdif-3.8.6-cflags.patch 1369 SHA256 6a6c1c521005ab646c15fab0fadbc8c7c8cbbf2f82c0f2bf48bbccda6eaa3d0a SHA512 d07bdfc045d8283b4800a758b7a902550b298c7220bff1e4c8c39c2b446ef52b5d1952d9ae3828a79c5360092536ed8276af85785d8e5ce15cf52b26115552ad WHIRLPOOL bad685c34119000e5a2f56ead79f41b00f05f6af073fe9d1eb7a07a33455e48eea35ff6b89c321cbf7c4fed9355eaf148fe471b0fba111d1f4959d244297c81b
+DIST SDIF-3.11.4-src.zip 1230479 SHA256 b1719b93babf13c6461f3db960cf383803dce274682bc284d9b6ac12405be531 SHA512 3730fdb527909403e43ea793ab97e0a3175bb63dee3d0183db831bb6be85837823c42ae2a3559b6ec94218b4338d04017353282fdc7bb79bbee467e09685d3e9 WHIRLPOOL bc639fc8c51eb9e69d8ba18de393830f3f3bfabc266a47fff1c19c847ec81ef7b857882a0968ed79c4b0220b86cbe1df70f7374d5ba0c538ba7f156d4ecc17c7
+DIST SDIF-3.8.6-src.tar.gz 786261 SHA256 857484135cfd5f0623ff3179c60540d06c2351a21e4101f59bebfca032e8655b SHA512 5b9603bed121afe4e4bd524372332c48a226711c029271ce0a26ae644990f060104b03983a3b49afe141897bdf6e878dbfd31a853c38ab14b8d4eb98f868f9e7 WHIRLPOOL b0f5a3730d8ff324bb0e2e3fe230d4880ddbc10b0999ffd80b18e09516b89bb8103c5eea4e322bd3d2d3c94534b732aca1e33b742c5a0687c74550d462239658
+DIST SDIF-doc.tar.gz 534161 SHA256 0ff5598019b92a4068b92175285ba03abfdfa4587f5dc1abd980bd17da73f13d SHA512 df03d8dcb69603a5ad96dbee77789b0422e39b5dfbe1f944dff1d3763a59d9dce779ef714fa041a44d9fe30ab4714c0f2343502004c1e9b03286ae701fb14e22 WHIRLPOOL c05c64eb1d290dfbd98fc5356141740851de94bd3cf0af27c114fb0713f229662f1a1e2ce1b415d1790ae5f596d2acf961a7c85fd19284f36edbdcaa7787441c
+EBUILD sdif-3.11.4.ebuild 788 SHA256 3fa3bbc6e6b63d5971a28d23941457a6c1a90912412b483797a2711ed6395c1f SHA512 8be7f0fcf6d6e34c2b4db6af554ddcb182d51d6f0b669a294084140fae64a425b6025ba720d29a38b2e15df13903e0a5f85f14073acabbeea15f6ac55940ed0e WHIRLPOOL fcd48ae41eb55c33eb0fb643d991d15b42678f72eaeccccbfbe9184ef80160c13892d47602e732c992db13724ccbef71d614e1e3b3f98e329853e297a8db8a8e
+EBUILD sdif-3.8.6.ebuild 1218 SHA256 b7f29938c10f61335e3f087f194b2b5f2016bcfdfa42f4291f7f209fd9e8a60c SHA512 527a5e27ebffb6a5b5f79fe4b00bf1f96841e35969cca34962b4504862defec2a5b24d93906757e5987405fe381f4c1e41a247c4a4311a93193edcc78dbe00fa WHIRLPOOL 54b4947f823cb81b2d701218cfc411178ab30bf9c4fb1bb0658caeb94166eadf4a67e3480f80f471583a31dad9a5abd297953a5fac8b3e207f91bbc30b8957fb
+MISC ChangeLog 2817 SHA256 eb89e1e56e7908118dc5e92a4818b611529de447e8f3b38abc7c3c3e4be0bf1b SHA512 ab43f5ee7ac43646779cbdb784132625f2d50aec8bee50313f0edf127caaee4963dc2088d96de15c60c7222f39f8563f874d5390b63fe956bcc1180f46a4f11f WHIRLPOOL b871249c187033c4c7d80f3ce9a6da23466fbbc0a637a580f2353ca5a636eaad07206d7ae0ee90f23ccb854f9596b54565878fac6b9cf08877e23f0fbcdfb40d
+MISC ChangeLog-2015 1233 SHA256 3a378a78d2574ffd3ed06276c03b28556235831379b1acdb3a4e30d515088385 SHA512 88c75c71505f9176876f467a2c944981524eff29f058bf9b032dc711ffb8fbcb5f7688380c98e43bed524a80839322ff84ca7299090b4900dcdc667501ccd440 WHIRLPOOL af20690af3ecef0d38cab1e4510024721f8e6fa29b7b22c66fe60496302de4cc706c57ec2c169f56490aa50b60b5f70d0ec0eedaf148df8220a699349ae5ec47
+MISC metadata.xml 725 SHA256 7562478093b663faa072dd4f59cc0a9d8c36749d883ba67eee7bb85cff447a4f SHA512 3836d62692b81ac8a290194e3dc0079a34e80add8d2e4b253e5396674be20058901db7beeb2fb3aee30b3cdc4966263852105666bfbf910a1b0ea56ac50d0cbc WHIRLPOOL 464c4ea25f226d24771283f383efe5d7fd1fd668e5f3d8baf89ab0fda8440cd357991bfcf42c53a74357bede30138c406622efa251a95f503fad9352a7239384
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..b984ae0e2b42
--- /dev/null
+++ b/media-libs/sdif/sdif-3.8.6.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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"
+}