summaryrefslogtreecommitdiff
path: root/media-libs/libtimidity
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libtimidity')
-rw-r--r--media-libs/libtimidity/Manifest13
-rw-r--r--media-libs/libtimidity/files/libtimidity-0.1.0-automagic.patch30
-rw-r--r--media-libs/libtimidity/files/libtimidity-0.1.0-newlen-overflow.patch22
-rw-r--r--media-libs/libtimidity/libtimidity-0.1.0-r2.ebuild34
-rw-r--r--media-libs/libtimidity/libtimidity-0.2.0.ebuild28
-rw-r--r--media-libs/libtimidity/libtimidity-0.2.2.ebuild28
-rw-r--r--media-libs/libtimidity/libtimidity-0.2.4.ebuild28
-rw-r--r--media-libs/libtimidity/metadata.xml11
8 files changed, 194 insertions, 0 deletions
diff --git a/media-libs/libtimidity/Manifest b/media-libs/libtimidity/Manifest
new file mode 100644
index 000000000000..474430447674
--- /dev/null
+++ b/media-libs/libtimidity/Manifest
@@ -0,0 +1,13 @@
+AUX libtimidity-0.1.0-automagic.patch 872 SHA256 e7e762cda7ef5299e3c48a638ca3b74b5d48ab1db4dbb19355a16b5fb63c4da9 SHA512 6b9d562fa81089e32752406cfe6e5135d457e94f8c95a0c103fab7becbe9b41515f9039756f63f96c558c8a5b9db66eaa728c169935ac664e7601480e494ac1f WHIRLPOOL e127beab0c82e27d21d19588dc5a1577aa5295a6333095f21725e805912a0d8167f79dc31c29968db2b705fb71fc9b0da5865b4521d4821acbaf0d1c03361433
+AUX libtimidity-0.1.0-newlen-overflow.patch 863 SHA256 8450d7e0709439236656008c1cc887adbb99b821bf4121112367255359c4b30a SHA512 1028723c90a5a4ccb249f3d8e60d2b69f6956b37fcb0904fcd0476c590637073e8fa94eba2cdb1b06e62a88e2d4eab6ba1874e9153c87b793fa3a48c6af55ede WHIRLPOOL e1a4cdf1156c9660f7a87202b04e572a2799ebceb08a269926e541be5ac1099d580084d4e560194ff3c34a0955043cc5c40bb6ac35b5d2f199402f50be00ea2d
+DIST libtimidity-0.1.0.tar.bz2 273410 SHA256 52c6de6608ba640b4678041c01320290790a1f18c901ef03575fbf47807350bf SHA512 7401e9b85c7e93c17871a9d767dfa9434808bf90d7d693522862c5f534f56dcac6c39fe24fc38b097505df349dad9f57e7ea2c6ae2deb9adce7d2ec861184ed1 WHIRLPOOL 380075ba9b84a14f7ad36a7f974d74d94a221f375c2d59bf3afcfa4fb616f01945f1c9c8d0a940763d558243d9213b252850b81003b00174e31a47ea0b35e4f6
+DIST libtimidity-0.2.0.tar.gz 420643 SHA256 33acd168bcf133621bf68c0faa91ddb16b036500ce3199470729e72e29ef9a02 SHA512 691f38c69e344d328aa0a98846d6023f22fcb81bac33a6cb4df0c2c05df9c84a1818732f7498ff9aa942c9939dab8f0a318b49769e9f934e417c3ee540af2c55 WHIRLPOOL d514434a8a9f7988f6bd0ac15ca51ce5acfb7001c88fff50f189bd3a01c67a1dfcaf7b046a6559b96e7dbf210367692aa2f8338a9d38c1b4c473dad4e94775ec
+DIST libtimidity-0.2.2.tar.gz 420174 SHA256 ab2dc5ab49b7b9f28601629cc8cdf482a1199bcc6c79d33ed0e1f1b1b51356be SHA512 07b0a0d0467e746b0e61656b76157e1291f21a9eac1249457feec49d661a423069e2aca95e45819591d2c29f9cd9a8b5f5cb7ce6cb0e8d2c30eb28c80293e624 WHIRLPOOL 2a6bb29bc64673ea8cff6484060c905d54dee81b168d0f15f74b207f4ddc4b7c5da55a3a718841361973480d83d26af623eeee5bff315e9cb5d7f15bff5510b5
+DIST libtimidity-0.2.4.tar.gz 421572 SHA256 97da34991303e099854da81605611c59fc36c1d111b97b4c807df1cedb29015b SHA512 185c4ae58a14f69873869a9586cc23a1f7c9b681c67bb7cc9fe3c4ce51f53600004970af6a0d76d3055d9f2cb82a7fd062699006b0c26f90340fb751cb976930 WHIRLPOOL 3f9892bafead9b945e49195edcd5092b988cbcb17268773bc4fb9a4d71a386b2aef93810459261d3032d9f9c0dbb5104239fb8dc6496cc8c7b27c4c1535b1c92
+EBUILD libtimidity-0.1.0-r2.ebuild 803 SHA256 f3b9ff6c61bd75b578226b991a5ded0e7a562a6e5efb3268c661140e08250dfd SHA512 5ba40895e3fb107dbbc1748963d63bf6d936be966b555efe3941ab36344377b9320ae0bc14d1a12f7aeaa9293f1b8731fe8b0394da53a7fbd21972bfc289e26b WHIRLPOOL 371904ceab3ed3b32abe0291b1fa9699b1a4ee65454932ff74b00409b713f716f5c4bf95d78ca3f6b700deb0861765f7104ac76aff374170ffe0070db9a2b771
+EBUILD libtimidity-0.2.0.ebuild 673 SHA256 a76cfe66b465c3523660b3cc3eb236c31b55021eda770dd782b9de25927b14d0 SHA512 51ec7f7f7f6904d92cd56b4eea39d7f0916454dfeec560563839badc35a468575cc92b4097e7c483f80bd4b3ebbc815e1639a8f6dc67d2e3969704462936c133 WHIRLPOOL 621b91e8f12a508e9291f83d2272a21d58e203cf597789024a1e1c02720345ecfc291ac582fb20a62276f015a9a8921f118d4832720be6647d7cb38916f7447f
+EBUILD libtimidity-0.2.2.ebuild 658 SHA256 48c87d8ccc07159855d58fb92f725aff902d8dbc6c4b5ae949f3ee933b73bbba SHA512 52b514ee0a2975568b1ecd5deda3b28702adea2eda82b693937bf20aebf75cf70e3463fcb4a6dfb7bd0b81c404ba994054a22f16396d4bceff7854cf7cb30c7c WHIRLPOOL 5c02780c8be3ba2a8a2a3f73b3a55727395671efbebb3ec3f5d6d118a715d28abb38021fa861d58bf4dc4579f519475133f309d4138887ed1c2c766eef239faf
+EBUILD libtimidity-0.2.4.ebuild 665 SHA256 04dde003a34ea407533cb880d0887160a6bdc8fee720989f93d70e0d00e81b9e SHA512 dc1696de6431f0b8208dfa33463b2896301e07fd1e3bdd7e19548dfa8444040d7f188b8a28a6e884dd387d308db1a35e698075440e28ab001247dde834a79f22 WHIRLPOOL db6ef15a3691221f836a1c1ec1867cc22059731d4d2f00854130ae5e6ec6f5afbcfa07a2d9d0b520c7bc735b43e04ccd38b9b15fe7cc5a2435a0ef60375dcd8f
+MISC ChangeLog 2705 SHA256 416265a10a2e81b0ab65f64484b17273206b1674d40120451eaff02b63235112 SHA512 bf6e5e0458a249096c1394cb13ab939cef4fabdf76ac5d9d87bdd0f0d985eb6853f0f25cf7902cf266592713abbb6924817cce733c58d662e0567b180504d744 WHIRLPOOL b6b8725d458cf0d42a87f29768c6d490bc22af7dab30fe890bc702952bad9c7121318cc53dcf55b0c84667f7852ce77def8b5c665dade0f60953ab5d2fecc1d7
+MISC ChangeLog-2015 3906 SHA256 8350d814246ac2e2753100c3e05d4a00bffbe0c998125d03ba387ad8aa701cc3 SHA512 02312fee62b2948ed98ee8950a7f6760d24cc35610c0b53c216cb4399be5a9e4bd926c010d7c3dba9399452c87ea18db49195369455bb3b71148f8d4224931b4 WHIRLPOOL c37d8fc9cc22a76b1e613abc17dc228741406c2f6e3faf4fcde456f9b3fe40010318f0fe9c532406b5a780904725c4f406143ef9de6c18b2206c2b61d39ce2f6
+MISC metadata.xml 334 SHA256 f62e490b5b9900b343d95cfaa2962693842e053dd7aa9f15d799c5eed5a2a9d8 SHA512 9b744ea46e81fa07fdbed4bd7b71840eeb1500bc35651e9c8461f91e8041e76567fd5b20472767d2b8ebb16967005ae025bb7a8165b14c2e33ec1a891770d91b WHIRLPOOL 6db83178223870009b2d671125add8b0881cd2471088875c6c94c89bac438f411f3159be6e0860f585eb9c93efb15f519f000c2f7f617a4969f9e42cfe1659ec
diff --git a/media-libs/libtimidity/files/libtimidity-0.1.0-automagic.patch b/media-libs/libtimidity/files/libtimidity-0.1.0-automagic.patch
new file mode 100644
index 000000000000..ead93ffd32dd
--- /dev/null
+++ b/media-libs/libtimidity/files/libtimidity-0.1.0-automagic.patch
@@ -0,0 +1,30 @@
+diff -ur libtimidity-0.1.0.orig/configure.ac libtimidity-0.1.0/configure.ac
+--- libtimidity-0.1.0.orig/configure.ac 2004-11-23 06:30:46.000000000 +0200
++++ libtimidity-0.1.0/configure.ac 2007-08-02 15:51:47.000000000 +0300
+@@ -39,9 +39,24 @@
+ # Checks for libraries.
+ LIBTIMIDITY_LIBS=""
+ AC_CHECK_LIB([m], [pow], [LIBTIMIDITY_LIBS="$TIMIDITY_LIBS -lm"])
+-have_ao=no
+-XIPH_PATH_AO([have_ao=yes])
++
++AC_ARG_ENABLE([ao],
++ [AS_HELP_STRING([--enable-ao], [Enable libao (default=disabled)])],
++ [have_ao="$enableval"],
++ [have_ao="no"]
++)
++
++if test "$have_ao" = "yes"; then
++ PKG_CHECK_MODULES([AO], [ao >= 0.8.5])
++ AC_DEFINE([AO], [], [Define when building with ao])
++ HAVE_AO="true"
++else
++ HAVE_AO="false"
++fi
++
++AC_SUBST([ENABLE_AO])
+ AM_CONDITIONAL([HAVE_AO], [test $have_ao = yes])
++AC_SUBST(AO_LIBS)
+
+ # Checks for header files.
+ AC_HEADER_STDC
diff --git a/media-libs/libtimidity/files/libtimidity-0.1.0-newlen-overflow.patch b/media-libs/libtimidity/files/libtimidity-0.1.0-newlen-overflow.patch
new file mode 100644
index 000000000000..22952a5ebba1
--- /dev/null
+++ b/media-libs/libtimidity/files/libtimidity-0.1.0-newlen-overflow.patch
@@ -0,0 +1,22 @@
+diff -Naur libtimidity-0.1.0/src/resample.c libtimidity-0.1.0-r1/src/resample.c
+--- libtimidity-0.1.0/src/resample.c 2004-11-21 23:02:53.000000000 +0100
++++ libtimidity-0.1.0-r1/src/resample.c 2008-02-24 18:46:36.000000000 +0100
+@@ -545,7 +545,8 @@
+ void pre_resample(MidSong *song, MidSample *sp)
+ {
+ double a, xdiff;
+- sint32 incr, ofs, newlen, count;
++ sint32 incr, ofs, count;
++ unsigned int newlen;
+ sint16 *newdata, *dest, *src = (sint16 *) sp->data;
+ sint16 v1, v2, v3, v4, *vptr;
+ #ifdef DEBUG_CHATTER
+@@ -561,7 +562,7 @@
+
+ a = ((double) (sp->sample_rate) * freq_table[(int) (sp->note_to_use)]) /
+ ((double) (sp->root_freq) * song->rate);
+- newlen = (sint32)(sp->data_length / a);
++ newlen = (unsigned int)(sp->data_length / a);
+ dest = newdata = safe_malloc(newlen >> (FRACTION_BITS - 1));
+
+ count = (newlen >> FRACTION_BITS) - 1;
diff --git a/media-libs/libtimidity/libtimidity-0.1.0-r2.ebuild b/media-libs/libtimidity/libtimidity-0.1.0-r2.ebuild
new file mode 100644
index 000000000000..565472056916
--- /dev/null
+++ b/media-libs/libtimidity/libtimidity-0.1.0-r2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils multilib-minimal
+
+DESCRIPTION="MIDI to WAVE converter library"
+HOMEPAGE="http://libtimidity.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 hppa ppc ppc64 sparc x86"
+IUSE="ao debug"
+
+RDEPEND="ao? ( >=media-libs/libao-1.1.0-r2[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+RESTRICT="test"
+DOCS="AUTHORS ChangeLog CHANGES NEWS TODO README*"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-newlen-overflow.patch \
+ "${FILESDIR}"/${P}-automagic.patch
+ eautoreconf
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" econf \
+ --disable-static \
+ $(use_enable ao) \
+ $(use_enable debug)
+}
diff --git a/media-libs/libtimidity/libtimidity-0.2.0.ebuild b/media-libs/libtimidity/libtimidity-0.2.0.ebuild
new file mode 100644
index 000000000000..3a948d94033d
--- /dev/null
+++ b/media-libs/libtimidity/libtimidity-0.2.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit multilib-minimal
+
+DESCRIPTION="MIDI to WAVE converter library"
+HOMEPAGE="http://libtimidity.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/2"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="ao debug"
+
+RDEPEND="ao? ( >=media-libs/libao-1.1.0-r2[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+RESTRICT="test"
+DOCS="AUTHORS ChangeLog CHANGES NEWS TODO README*"
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" econf \
+ --disable-static \
+ $(use_enable ao) \
+ $(use_enable debug)
+}
diff --git a/media-libs/libtimidity/libtimidity-0.2.2.ebuild b/media-libs/libtimidity/libtimidity-0.2.2.ebuild
new file mode 100644
index 000000000000..3f7018d75c80
--- /dev/null
+++ b/media-libs/libtimidity/libtimidity-0.2.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit multilib-minimal
+
+DESCRIPTION="MIDI to WAVE converter library"
+HOMEPAGE="http://libtimidity.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/2"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="ao debug"
+
+RDEPEND="ao? ( >=media-libs/libao-1.1.0-r2[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+RESTRICT="test"
+DOCS="AUTHORS CHANGES TODO README*"
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" econf \
+ --disable-static \
+ $(use_enable ao) \
+ $(use_enable debug)
+}
diff --git a/media-libs/libtimidity/libtimidity-0.2.4.ebuild b/media-libs/libtimidity/libtimidity-0.2.4.ebuild
new file mode 100644
index 000000000000..2387fc911b2d
--- /dev/null
+++ b/media-libs/libtimidity/libtimidity-0.2.4.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit multilib-minimal
+
+DESCRIPTION="MIDI to WAVE converter library"
+HOMEPAGE="http://libtimidity.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/2"
+KEYWORDS="~amd64 ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="ao debug"
+
+RDEPEND="ao? ( >=media-libs/libao-1.1.0-r2[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+RESTRICT="test"
+DOCS="AUTHORS CHANGES TODO README*"
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" econf \
+ --disable-static \
+ $(use_enable ao) \
+ $(use_enable debug)
+}
diff --git a/media-libs/libtimidity/metadata.xml b/media-libs/libtimidity/metadata.xml
new file mode 100644
index 000000000000..81d4d4259b19
--- /dev/null
+++ b/media-libs/libtimidity/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>
+ <upstream>
+ <remote-id type="sourceforge">libtimidity</remote-id>
+ </upstream>
+</pkgmetadata>