diff options
Diffstat (limited to 'media-sound/tapiir')
-rw-r--r-- | media-sound/tapiir/Manifest | 7 | ||||
-rw-r--r-- | media-sound/tapiir/files/tapiir-0.7.2-ldflags.patch | 15 | ||||
-rw-r--r-- | media-sound/tapiir/files/tapiir-0.7.3-acinclude.m4 | 173 | ||||
-rw-r--r-- | media-sound/tapiir/metadata.xml | 8 | ||||
-rw-r--r-- | media-sound/tapiir/tapiir-0.7.3.ebuild | 41 |
5 files changed, 244 insertions, 0 deletions
diff --git a/media-sound/tapiir/Manifest b/media-sound/tapiir/Manifest new file mode 100644 index 000000000000..511e50dcd2ee --- /dev/null +++ b/media-sound/tapiir/Manifest @@ -0,0 +1,7 @@ +AUX tapiir-0.7.2-ldflags.patch 422 SHA256 8145d4694cb59320adabb599e1d042af36bfb95d03bd08bfbe8e5ab1706a1d8b SHA512 5141831956322ef1df0909bc5e55124cb6367eae7a043a826843a9363b95f7d75fed8e0439eef66a0b7e3aa982a19da83fba80687a8451f9b3ed272082414cbf WHIRLPOOL 1ccbf89e80b88482f1380fd967f56de08dc5bf08165b1e7291afbf640b0a714a891cc47ad06f13f11650bbf004184895c99d066cca6ebf4824b55138acaf8240 +AUX tapiir-0.7.3-acinclude.m4 4975 SHA256 5527c63eec9ccde73a43d89b5e60f4a1901ed36e53d259ebd83d51a0d4d74970 SHA512 b97e115a2c113280dc7c3c705a8b2e4270259c05a0379cf94b4709b2744e6aafba048ce1c6dc00ba2a01df6861308e244749881f0159508bea61d7c73faea640 WHIRLPOOL be77deee37bfdb472d8fed1168a5eecf3c74074ad391b20a68b63719b27e92b8e7d6c035748e7bd4afb7b988375204fea1d2006765ca20622c9345ae59657138 +DIST tapiir-0.7.3.tgz 168651 SHA256 9b2f6f0c4f642c3b128f5dd5b3b8d44e80a6eb3310f8f59e0b7460f71cc36d5f SHA512 e9b935f775ddcaf9d6a2b963a1d002d400fc34220845122188b82f1d6075176afc195ae4320679d8990b57f71d0a44fb6ba0cee8a74cb732b92957596c13f4b3 WHIRLPOOL 20ea8a3d7e8b7afdea88278df4990fb5acdcb5224d95fb45fdbdbc3990abaf1ebf2f07e24b45e4f4e9ba371ce0575f20589a43d88712779aa2640282f9eda541 +EBUILD tapiir-0.7.3.ebuild 860 SHA256 38d256ac8ff9eba4ac4621513b0faeb2155895eb9f362010ac8017da9090f6d4 SHA512 ddc51f88eda721f87d0e25c1a6d7ac10efce4d3e39739f9994fe98524326b375ed3483a4a93456078dbe1cd1c22e01163942df2497df98cd112f044f3299f6d6 WHIRLPOOL ee261efa814bc9cc8d6f8ad7919ea8c9b58c211faf0c47f74c2dc38391338e628d9bda187cc02d4b4180b3dd6a27bfccf14fbbfc6ff9aa2cb1ce4c58b9763429 +MISC ChangeLog 3008 SHA256 787164c619ab3bf6a33e5bf3dccc70ea7f0a995e130681034a0db94308fdc034 SHA512 f486e152f7e28ccccc136819dcf59055ac14035e64029bc2b6d037f3922989ca1e7d899b3e0bf27d4f7370498f2bc5d69a41d6c35b276a2d6c5c3ad838fad9a9 WHIRLPOOL 3c7d4b3c49a746ed85883e158f29fc392c5cd023fba8108ebba24fc1456f34709904a626848fe97c2d1a519a94d37819599664ede45f5389f31550d6a30e919e +MISC ChangeLog-2015 1668 SHA256 7f2ef02837d31e353beb5b13aea6ccf0519d9dfcf19a798e94f13e9f972801a6 SHA512 4168e059320f54f20f6fb07a056158702b0e80e7103c53628110764ffa04d0f15001463903f0eb2badae752b8a1c54e77a3602aff24f8546cb30f60386eb7553 WHIRLPOOL a6594edfb88a01d3b2b6d29f5500ce0f2055723fe3a7e91b639a2be1c46ccbb7ebbcf70dbec22b4f8f46496d9c8b558c6499b65edd96af9027effa83496cb000 +MISC metadata.xml 249 SHA256 a591aa91a9c413e7f7e24fd25b924ce2dfef686da8b4ce38bebb088ebfdba9db SHA512 9a100fb26586365eda99724330a03a512f4d0be18d39c3a195ba02c2fc841edeee99d22512acf5a058a3b978d3a74f4d963a5aff9aa343b6cb4086cdfefe6343 WHIRLPOOL ae5b0c583f3a07ed1ccf651b5b9c8d6c8c637fba2d505fc4b028ea60239fc0a84e37a169b5114f879712ae74f7f41960a2cc6b59e67cacc7f964b105b5fb8723 diff --git a/media-sound/tapiir/files/tapiir-0.7.2-ldflags.patch b/media-sound/tapiir/files/tapiir-0.7.2-ldflags.patch new file mode 100644 index 000000000000..27b616e9b263 --- /dev/null +++ b/media-sound/tapiir/files/tapiir-0.7.2-ldflags.patch @@ -0,0 +1,15 @@ +Index: tapiir-0.7.2/configure +=================================================================== +--- tapiir-0.7.2.orig/configure ++++ tapiir-0.7.2/configure +@@ -3667,8 +3667,8 @@ See \`config.log' for more details." >&2 + { (exit 1); exit 1; }; } + fi + +-CXXFLAGS=`fltk-config --cxxflags` +-LDFLAGS=`fltk-config --ldflags` ++CXXFLAGS="$CXXFLAGS `fltk-config --cxxflags`" ++LIBS="$LIBS `fltk-config --ldflags`" + + + ac_ext=c diff --git a/media-sound/tapiir/files/tapiir-0.7.3-acinclude.m4 b/media-sound/tapiir/files/tapiir-0.7.3-acinclude.m4 new file mode 100644 index 000000000000..9442a32c8566 --- /dev/null +++ b/media-sound/tapiir/files/tapiir-0.7.3-acinclude.m4 @@ -0,0 +1,173 @@ +AC_DEFUN([AM_PATH_ALSA], +[dnl Save the original CFLAGS, LDFLAGS, and LIBS +alsa_save_CFLAGS="$CFLAGS" +alsa_save_LDFLAGS="$LDFLAGS" +alsa_save_LIBS="$LIBS" +alsa_found=yes + +dnl +dnl Get the cflags and libraries for alsa +dnl +AC_ARG_WITH(alsa-prefix, +[ --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)], +[alsa_prefix="$withval"], [alsa_prefix=""]) + +AC_ARG_WITH(alsa-inc-prefix, +[ --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)], +[alsa_inc_prefix="$withval"], [alsa_inc_prefix=""]) + +dnl FIXME: this is not yet implemented +AC_ARG_ENABLE(alsatest, +[ --disable-alsatest Do not try to compile and run a test Alsa program], +[enable_alsatest="$enableval"], +[enable_alsatest=yes]) + +dnl Add any special include directories +AC_MSG_CHECKING(for ALSA CFLAGS) +if test "$alsa_inc_prefix" != "" ; then + ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix" + CFLAGS="$CFLAGS -I$alsa_inc_prefix" +fi +AC_MSG_RESULT($ALSA_CFLAGS) + +dnl add any special lib dirs +AC_MSG_CHECKING(for ALSA LDFLAGS) +if test "$alsa_prefix" != "" ; then + ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix" + LDFLAGS="$LDFLAGS $ALSA_LIBS" +fi + +dnl add the alsa library +ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread" +LIBS="$ALSA_LIBS $LIBS" +AC_MSG_RESULT($ALSA_LIBS) + +dnl Check for a working version of libasound that is of the right version. +min_alsa_version=ifelse([$1], ,0.1.1,$1) +AC_MSG_CHECKING(for libasound headers version >= $min_alsa_version) +no_alsa="" + alsa_min_major_version=`echo $min_alsa_version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` + alsa_min_minor_version=`echo $min_alsa_version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` + alsa_min_micro_version=`echo $min_alsa_version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` + +AC_LANG_SAVE +AC_LANG_C +AC_TRY_COMPILE([ +#include <alsa/asoundlib.h> +], [ +/* ensure backward compatibility */ +#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR) +#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR +#endif +#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR) +#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR +#endif +#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR) +#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR +#endif + +# if(SND_LIB_MAJOR > $alsa_min_major_version) + exit(0); +# else +# if(SND_LIB_MAJOR < $alsa_min_major_version) +# error not present +# endif + +# if(SND_LIB_MINOR > $alsa_min_minor_version) + exit(0); +# else +# if(SND_LIB_MINOR < $alsa_min_minor_version) +# error not present +# endif + +# if(SND_LIB_SUBMINOR < $alsa_min_micro_version) +# error not present +# endif +# endif +# endif +exit(0); +], + [AC_MSG_RESULT(found.)], + [AC_MSG_RESULT(not present.) + ifelse([$3], , [AC_MSG_ERROR(Sufficiently new version of libasound not found.)]) + alsa_found=no] +) +AC_LANG_RESTORE + +dnl Now that we know that we have the right version, let's see if we have the library and not just the headers. +if test "x$enable_alsatest" = "xyes"; then +AC_CHECK_LIB([asound], [snd_ctl_open],, + [ifelse([$3], , [AC_MSG_ERROR(No linkable libasound was found.)]) + alsa_found=no] +) +fi + +if test "x$alsa_found" = "xyes" ; then + ifelse([$2], , :, [$2]) + LIBS=`echo $LIBS | sed 's/-lasound//g'` + LIBS=`echo $LIBS | sed 's/ //'` + LIBS="-lasound $LIBS" +fi +if test "x$alsa_found" = "xno" ; then + ifelse([$3], , :, [$3]) + CFLAGS="$alsa_save_CFLAGS" + LDFLAGS="$alsa_save_LDFLAGS" + LIBS="$alsa_save_LIBS" + ALSA_CFLAGS="" + ALSA_LIBS="" +fi + +dnl That should be it. Now just export out symbols: +AC_SUBST(ALSA_CFLAGS) +AC_SUBST(ALSA_LIBS) +]) + + +AC_DEFUN(AM_PATH_FLTK, +[ +AC_MSG_CHECKING(fltk version) + +min_fltk_version=ifelse([$1], ,1.1.0,$1) +cur_fltk_version=`fltk-config --version` + +fltk_min_major_version=`echo $min_fltk_version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` +fltk_min_minor_version=`echo $min_fltk_version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` +fltk_min_patch_version=`echo $min_fltk_version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` + + +fltk_cur_major_version=`echo $cur_fltk_version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` +fltk_cur_minor_version=`echo $cur_fltk_version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` +fltk_cur_patch_version=`echo $cur_fltk_version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` + +fltk_version_ok=no + +if test x"$fltk_cur_major_version" != x -a x"$fltk_cur_minor_version" != x -a x"$fltk_cur_patch_version" != x; then + if test $fltk_cur_major_version -eq $fltk_min_major_version; then + if test $fltk_cur_minor_version -ge $fltk_min_minor_version; then + if test $fltk_cur_patch_version -ge $fltk_min_patch_version; then + fltk_version_ok=yes + fi + fi + fi +fi + +if test $fltk_version_ok == yes; then + AC_MSG_RESULT([ok]) +else + AC_MSG_FAILURE([not ok]) +fi + +CXXFLAGS=`fltk-config --cxxflags` +LIBS="$LIBS `fltk-config --ldflags`" +]) + + diff --git a/media-sound/tapiir/metadata.xml b/media-sound/tapiir/metadata.xml new file mode 100644 index 000000000000..c870d0eef0ab --- /dev/null +++ b/media-sound/tapiir/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> diff --git a/media-sound/tapiir/tapiir-0.7.3.ebuild b/media-sound/tapiir/tapiir-0.7.3.ebuild new file mode 100644 index 000000000000..b0640c8448a1 --- /dev/null +++ b/media-sound/tapiir/tapiir-0.7.3.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +DESCRIPTION="A flexible audio effects processor, inspired by classical tape delay systems" +HOMEPAGE="http://www.resorama.com/maarten/tapiir/" +SRC_URI="http://www.resorama.com/maarten/files/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc ~sparc x86" + +RDEPEND=" + media-sound/jack-audio-connection-kit + media-libs/alsa-lib + x11-libs/fltk:1 +" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}"/${PN}-0.7.2-ldflags.patch ) + +src_prepare() { + default + mv configure.{in,ac} || die + cp "${FILESDIR}"/${P}-acinclude.m4 acinclude.m4 || die + eautoreconf +} + +src_install() { + local HTML_DOCS=( doc/{*.html,images/*.png} ) + default + + doman doc/${PN}.1 + dodoc doc/${PN}.txt + + insinto /usr/share/${PN}/examples + doins doc/examples/*.mtd +} |