diff options
author | Cédric Krier <cedk@gentoo.org> | 2012-03-17 09:59:59 +0000 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2012-03-17 09:59:59 +0000 |
commit | 62dded26c13e76d1ce83dba870422b2f59666f6d (patch) | |
tree | 287a51cff31fed22382efc73c15cca48f929ba80 /media-sound/audicle | |
parent | Remanifest. Bug #408553 (diff) | |
download | historical-62dded26c13e76d1ce83dba870422b2f59666f6d.tar.gz historical-62dded26c13e76d1ce83dba870422b2f59666f6d.tar.bz2 historical-62dded26c13e76d1ce83dba870422b2f59666f6d.zip |
Version bump
Package-Manager: portage-2.1.10.41/cvs/Linux i686
Diffstat (limited to 'media-sound/audicle')
-rw-r--r-- | media-sound/audicle/ChangeLog | 11 | ||||
-rw-r--r-- | media-sound/audicle/Manifest | 19 | ||||
-rw-r--r-- | media-sound/audicle/audicle-1.0.0.7.ebuild | 91 | ||||
-rw-r--r-- | media-sound/audicle/files/audicle-1.0.0.7-const.patch | 12 | ||||
-rw-r--r-- | media-sound/audicle/files/audicle-1.0.0.7-gcc43.patch | 68 | ||||
-rw-r--r-- | media-sound/audicle/files/audicle-1.0.0.7-hid-smc.patch | 149 |
6 files changed, 335 insertions, 15 deletions
diff --git a/media-sound/audicle/ChangeLog b/media-sound/audicle/ChangeLog index bc4e20e7ffad..5595825eb945 100644 --- a/media-sound/audicle/ChangeLog +++ b/media-sound/audicle/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-sound/audicle -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/audicle/ChangeLog,v 1.7 2011/03/29 12:38:01 angelos Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/audicle/ChangeLog,v 1.8 2012/03/17 09:59:59 cedk Exp $ + +*audicle-1.0.0.7 (17 Mar 2012) + + 17 Mar 2012; Cédric Krier <cedk@gentoo.org> +audicle-1.0.0.7.ebuild, + +files/audicle-1.0.0.7-const.patch, +files/audicle-1.0.0.7-gcc43.patch, + +files/audicle-1.0.0.7-hid-smc.patch: + Version bump 29 Mar 2011; Christoph Mende <angelos@gentoo.org> audicle-1.0.0.6-r1.ebuild: Fix gtk+ slot deps diff --git a/media-sound/audicle/Manifest b/media-sound/audicle/Manifest index 4dc006b99bb1..d6167ede17ed 100644 --- a/media-sound/audicle/Manifest +++ b/media-sound/audicle/Manifest @@ -1,19 +1,12 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 - AUX audicle-1.0.0.6-font.patch 2862 RMD160 12edc5098b4ae21adbdcc0eaef7b6c386329dd44 SHA1 2d0845bad78570b084087f4489c86bb24f6eabd2 SHA256 ca958277aaead8c7cfe4f02a4ee78a0ba3d527bfb61857f4e349ad8f1389c152 AUX audicle-1.0.0.6-gcc43.patch 3747 RMD160 90ec72eeb2038965d660511c712043a42184ee7d SHA1 73caf64faf837c31ed71fb2d091b42d890156ed9 SHA256 f4384983659a18d1eeff51f5de8434d874284b427aa5c8d0129465d904a17b35 AUX audicle-1.0.0.6-hid-smc.patch 3105 RMD160 759c6d34beb8fb00be475f7c82f2f313d4f22e6c SHA1 21e2b0875483598ed5fdeabd07911b59d98d00c4 SHA256 051cffc2db8207f5e78cec4fa059580fc734c57d00b0055eb9de7a67b10c462d +AUX audicle-1.0.0.7-const.patch 455 RMD160 c638f35f464411c9064b7fc9de772f90839c8698 SHA1 b4220873021c67c04557912ca27fa5d6b629f6d7 SHA256 72283e31406be66ab7730584767a6f54c6a5ce52d43a9b4387325e7fa6050d2d +AUX audicle-1.0.0.7-gcc43.patch 2777 RMD160 50c383146961f0ae8c099be0a51a7b7157670057 SHA1 7fde4523d1eca594be28f0fff4f763519b381c26 SHA256 95466803195f8d3eaec75fc74bf387c806f4ce876c6f9695467a2ac5be2dab17 +AUX audicle-1.0.0.7-hid-smc.patch 3181 RMD160 0031983bc1aa13e29293016b61d8c0f7dd7ddfa7 SHA1 1b66dad243afa73f22aabeb7bdc5014a031ace10 SHA256 992f7792208a164c6f03c7748f75bced25537d35dbfdfb6ce50ad7a1395aba49 DIST audicle-1.0.0.6.tgz 5531625 RMD160 66a4a69b2a7dbe0d8aa705358f71c0d8df312a3e SHA1 c8967cfb3238064fb12cb91d0fcf19dc90628bb4 SHA256 685b86a263e92be279ccbae001202b159175363ecc87d8a7bc521f8a42a92f90 +DIST audicle-1.0.0.7.tgz 5561088 RMD160 bbc02b5bfbd94479cb2646607d7658eb7a75b0d7 SHA1 35bee115b5b4965381920a26f95aae4d2cc3f3f9 SHA256 72d739c887eb8af612e821bf0ede966a7a84254e1224290fd8acfb80fadb2514 EBUILD audicle-1.0.0.6-r1.ebuild 2579 RMD160 7be9c3f810076b3fc91997a10eed69b36e50c4c4 SHA1 9be88153112c6dc1920f2bcbb0bb7b7bb8a98a69 SHA256 f27c3792d0e9eda0c2b33113474644766fec0bb33fa781d7fbc8736ac03c204a -MISC ChangeLog 1313 RMD160 74ddddf4c919beba3cb3987fb82a650115452434 SHA1 4d990410ee3667169243b77ca2f449892e7c7f29 SHA256 dd7cd375b737fb3e046cad4dce1cd6d6ed4a769272be057356d8f7db93bc107c +EBUILD audicle-1.0.0.7.ebuild 2621 RMD160 b2d90100176a079c7fa562a07366885bc61be21d SHA1 b436d6f0810545a5101c882d0a38841bcb007d95 SHA256 b8da2870da40f8f97beb0dc75cc9fc4df339a0d2040b5c42c92319286f47f7ed +MISC ChangeLog 1544 RMD160 864a764700edb7a3c7e0c931715991b48e2b516a SHA1 1693b66b7fc3da8033ecaf45c2f4a6d7b925c6a0 SHA256 bed3b76644a0e90c17258edf035c8effb6a3db9ece0c8f791a118bcd8a497259 MISC metadata.xml 450 RMD160 1c660783ad4c98ff33c6d638586191e8bf941eee SHA1 1b8183f097d88aa8392a76647bb4b3e96b024387 SHA256 6f573897a2046fab112034346dcc66ffc812a335d84922e7f0c179a762faeb66 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.18 (GNU/Linux) - -iJwEAQEIAAYFAk59o8sACgkQfXuS5UK5QB3I4wP/RIlR17iPxbslHS9oZkVhedjT -+V65RwncJnRcf1jPU4fGIxGiAQwQP9kIxSN+L5F1FbLfWlDLv4miptsjSWzfsjGo -Dbtba/QvcOCyCFvKw1EBWICyMQ8U25Px/JYI1nLHE6gMs0Wv8IzVZtvhdSBbLd0P -uDFffOl0bpPB/YVVIpY= -=6f7u ------END PGP SIGNATURE----- diff --git a/media-sound/audicle/audicle-1.0.0.7.ebuild b/media-sound/audicle/audicle-1.0.0.7.ebuild new file mode 100644 index 000000000000..3467aba1dbf4 --- /dev/null +++ b/media-sound/audicle/audicle-1.0.0.7.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/audicle/audicle-1.0.0.7.ebuild,v 1.1 2012/03/17 09:59:59 cedk Exp $ + +EAPI=2 +inherit eutils toolchain-funcs flag-o-matic + +DESCRIPTION="A Context-sensitive, On-the-fly Audio Programming Environ/mentality" +HOMEPAGE="http://audicle.cs.princeton.edu/" +SRC_URI="http://audicle.cs.princeton.edu/release/files/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="+alsa jack oss truetype" + +RDEPEND="jack? ( media-sound/jack-audio-connection-kit ) + alsa? ( >=media-libs/alsa-lib-0.9 ) + media-libs/libsndfile + media-libs/freeglut + virtual/opengl + virtual/glu + x11-libs/gtk+:2 + truetype? ( media-libs/ftgl + media-fonts/corefonts ) + app-admin/eselect-audicle" +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex + dev-util/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}/${PN}-1.0.0.6-font.patch" + epatch "${FILESDIR}/${P}-hid-smc.patch" + epatch "${FILESDIR}/${P}-gcc43.patch" + epatch "${FILESDIR}/${P}-const.patch" + + sed -i \ + -e "s@../ftgl_lib/FTGL/include@/usr/include/FTGL@" \ + -e "s@../ftgl_lib/FTGL/mac/build@/usr/lib@" \ + -e "s/gcc -o/\$(CC) -o/" \ + -e "s/-O3 -c/-c \$(CFLAGS)/" \ + src/makefile.{alsa,jack,oss} || die "sed failed" +} + +pkg_setup() { + if ! use alsa && ! use jack && ! use oss; then + eerror "One of the following USE flags is needed: jack, alsa or oss" + die "Please set one audio engine type" + fi +} + +compile_backend() { + backend=$1 + local config + use truetype && config="USE_FREETYPE_LIBS=1" + einfo "Compiling against ${backend}" + cd "${S}/src" + emake -f "makefile.${backend}" CC=$(tc-getCC) CXX=$(tc-getCXX) LEX=flex \ + YACC=bison ${config} || die "emake failed" + mv audicle{,-${backend}} + emake -f makefile clean +} + +src_compile() { + # when compile with athlon or athlon-xp flags + # audicle crashes on removing a shred with a double free or corruption + # it happens in Chuck_VM_Stack::shutdown() on the line + # SAFE_DELETE_ARRAY( stack ); + replace-cpu-flags athlon athlon-xp i686 + + use jack && compile_backend jack + use alsa && compile_backend alsa + use oss && compile_backend oss +} + +src_install() { + use jack && dobin src/audicle-jack + use alsa && dobin src/audicle-alsa + use oss && dobin src/audicle-oss + dodoc AUTHORS PROGRAMMER README THANKS TODO VERSIONS +} + +pkg_postinst() { + elog "Audicle now can use many audio engines, so you can specify audio engine" + elog "with audicle-{jack,alsa,oss}" + elog "Or you can use 'eselect audicle' to set the audio engine" + + einfo "Calling eselect audicle update..." + eselect audicle update --if-unset +} diff --git a/media-sound/audicle/files/audicle-1.0.0.7-const.patch b/media-sound/audicle/files/audicle-1.0.0.7-const.patch new file mode 100644 index 000000000000..38acbf2f2ede --- /dev/null +++ b/media-sound/audicle/files/audicle-1.0.0.7-const.patch @@ -0,0 +1,12 @@ +diff -ru audicle-1.0.0.7.orig//src/audicle_font.cpp audicle-1.0.0.7/src/audicle_font.cpp +--- audicle-1.0.0.7.orig//src/audicle_font.cpp 2012-03-17 10:23:39.000000000 +0100 ++++ audicle-1.0.0.7/src/audicle_font.cpp 2012-03-17 10:49:24.000000000 +0100 +@@ -215,7 +215,7 @@ + protected : + FTFont * m_font; + public: +- AudicleFTGLFont( char * name ) { ++ AudicleFTGLFont( const char * name ) { + + glEnable ( GL_TEXTURE_2D ); + diff --git a/media-sound/audicle/files/audicle-1.0.0.7-gcc43.patch b/media-sound/audicle/files/audicle-1.0.0.7-gcc43.patch new file mode 100644 index 000000000000..f6fc08e7da47 --- /dev/null +++ b/media-sound/audicle/files/audicle-1.0.0.7-gcc43.patch @@ -0,0 +1,68 @@ +diff -ru audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/chuck_vm.cpp audicle-1.0.0.7/lang/chuck-1.2.1.3/src/chuck_vm.cpp +--- audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/chuck_vm.cpp 2012-03-17 10:23:39.000000000 +0100 ++++ audicle-1.0.0.7/lang/chuck-1.2.1.3/src/chuck_vm.cpp 2012-03-17 10:27:23.000000000 +0100 +@@ -48,6 +48,7 @@ + #else + #include <unistd.h> + #include <pthread.h> ++ #include <algorithm> + #endif + + +Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: chuck_vm.cpp.orig +Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: rtaudio.cpp.orig +Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: rtaudio.cpp.rej +Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: ugen_stk.cpp.orig +Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: ugen_stk.cpp.rej +Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: ugen_xxx.cpp.orig +Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: ugen_xxx.cpp.rej +diff -ru audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/util_hid.cpp audicle-1.0.0.7/lang/chuck-1.2.1.3/src/util_hid.cpp +--- audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/util_hid.cpp 2012-03-17 10:23:39.000000000 +0100 ++++ audicle-1.0.0.7/lang/chuck-1.2.1.3/src/util_hid.cpp 2012-03-17 10:27:23.000000000 +0100 +@@ -38,6 +38,7 @@ + #include <limits.h> + #include <vector> + #include <map> ++#include <climits> + + using namespace std; + +Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: util_hid.cpp.orig +diff -ru audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/util_opsc.cpp audicle-1.0.0.7/lang/chuck-1.2.1.3/src/util_opsc.cpp +--- audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/util_opsc.cpp 2012-03-17 10:23:39.000000000 +0100 ++++ audicle-1.0.0.7/lang/chuck-1.2.1.3/src/util_opsc.cpp 2012-03-17 10:27:23.000000000 +0100 +@@ -57,6 +57,7 @@ + #include <netinet/tcp.h> + #include <arpa/inet.h> + #include <netdb.h> ++#include <algorithm> + #endif + + #if defined(__MACOSX_CORE__) +Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: util_opsc.cpp.orig +diff -ru audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/util_string.h audicle-1.0.0.7/lang/chuck-1.2.1.3/src/util_string.h +--- audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/util_string.h 2012-03-17 10:23:39.000000000 +0100 ++++ audicle-1.0.0.7/lang/chuck-1.2.1.3/src/util_string.h 2012-03-17 10:27:23.000000000 +0100 +@@ -36,6 +36,7 @@ + #include "chuck_def.h" + #include <string> + #include <vector> ++#include <cstdio> + + + // itoa +diff -ru audicle-1.0.0.7.orig//src/audicle_def.h audicle-1.0.0.7/src/audicle_def.h +--- audicle-1.0.0.7.orig//src/audicle_def.h 2012-03-17 10:23:39.000000000 +0100 ++++ audicle-1.0.0.7/src/audicle_def.h 2012-03-17 10:28:40.000000000 +0100 +@@ -39,8 +39,9 @@ + + #include "chuck_def.h" + +-#include <stdio.h> +-#include <math.h> ++#include <cstdio> ++#include <cmath> ++#include <algorithm> + #include <assert.h> + #ifndef __PLATFORM_WIN32__ + #include <unistd.h> diff --git a/media-sound/audicle/files/audicle-1.0.0.7-hid-smc.patch b/media-sound/audicle/files/audicle-1.0.0.7-hid-smc.patch new file mode 100644 index 000000000000..d362ed06423a --- /dev/null +++ b/media-sound/audicle/files/audicle-1.0.0.7-hid-smc.patch @@ -0,0 +1,149 @@ +diff -ru audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/util_hid.cpp audicle-1.0.0.7/lang/chuck-1.2.1.3/src/util_hid.cpp +--- audicle-1.0.0.7.orig//lang/chuck-1.2.1.3/src/util_hid.cpp 2012-03-17 10:23:39.000000000 +0100 ++++ audicle-1.0.0.7/lang/chuck-1.2.1.3/src/util_hid.cpp 2012-03-17 10:25:03.000000000 +0100 +@@ -7392,14 +7392,139 @@ + int WiiRemote_send( const HidMsg * msg ){ return -1; } + const char * WiiRemote_name( int wr ){ return NULL; } + ++#define SYSFS_TILTSENSOR_FILE "/sys/devices/platform/applesmc/position" ++#define TILTSENSOR_BUF_LEN 32 ++ ++static struct t_TiltSensor_data ++{ ++ union ++ { ++ struct t_macbook ++ { ++ int x; ++ int y; ++ int z; ++ } macbook; ++ } data; ++ int dataType; ++ int detected; ++ int refcount; ++ ++ t_TiltSensor_data() ++ { ++ refcount = 0; ++ dataType = -1; ++ detected = 0; ++ } ++ ++} TiltSensor_data; ++enum ++{ ++ linuxAppleSMCMacBookDataType ++}; ++static int TiltSensor_detect() ++{ ++ int fd; ++ ++ fd = open(SYSFS_TILTSENSOR_FILE, O_RDONLY); ++ ++ if (fd > 0) ++ { ++ TiltSensor_data.dataType = linuxAppleSMCMacBookDataType; ++ TiltSensor_data.detected = 1; ++ close(fd); ++ return 1; ++ } ++ ++ TiltSensor_data.detected = -1; ++ ++ return 0; ++} ++ ++static int TiltSensor_do_read() ++{ ++ ++ switch(TiltSensor_data.dataType) ++ { ++ case linuxAppleSMCMacBookDataType: ++ char buf[TILTSENSOR_BUF_LEN]; ++ int ret, fd; ++ fd = open(SYSFS_TILTSENSOR_FILE, O_RDONLY); ++ ++ if (fd < 0) { ++ return -1; ++ } ++ ret = read(fd, buf, TILTSENSOR_BUF_LEN); ++ if (ret < 0) { ++ close(fd); ++ return -1; ++ } ++ if (sscanf(buf, "(%d,%d,%d)\n", &TiltSensor_data.data.macbook.x, &TiltSensor_data.data.macbook.y, &TiltSensor_data.data.macbook.z) != 3) { ++ close(fd); ++ return -1; ++ } ++ close(fd); ++ break; ++ default: ++ return 0; ++ } ++ return 1; ++} + void TiltSensor_init(){} + void TiltSensor_quit(){} + void TiltSensor_probe(){} +-int TiltSensor_count(){ return 0; } +-int TiltSensor_open( int ts ){ return -1; } +-int TiltSensor_close( int ts ){ return -1; } +-int TiltSensor_read( int ts, int type, int num, HidMsg * msg ){ return -1; } +-const char * TiltSensor_name( int ts ){ return NULL; } ++int TiltSensor_count() ++{ ++ if(TiltSensor_data.detected == 0) ++ TiltSensor_detect(); ++ ++ if(TiltSensor_data.detected == -1) ++ return 0; ++ else if(TiltSensor_data.detected == 1) ++ return 1; ++ ++ return 0; ++} ++int TiltSensor_open( int ts ) ++{ ++ if(TiltSensor_data.detected == 0) ++ TiltSensor_detect(); ++ ++ if(TiltSensor_data.detected == -1) ++ return -1; ++ ++ TiltSensor_data.refcount++; ++ ++ return 0; ++} ++int TiltSensor_close( int ts ) ++{ ++ TiltSensor_data.refcount--; ++ ++ return 0; ++} ++int TiltSensor_read( int ts, int type, int num, HidMsg * msg ) ++{ ++ ++ if(TiltSensor_data.detected == -1) ++ return -1; ++ ++ if(!TiltSensor_do_read()) ++ return -1; ++ ++ if(TiltSensor_data.dataType == linuxAppleSMCMacBookDataType) ++ { ++ msg->idata[0] = TiltSensor_data.data.macbook.x; ++ msg->idata[1] = TiltSensor_data.data.macbook.y; ++ msg->idata[2] = TiltSensor_data.data.macbook.z; ++ } ++ ++ return 0; ++} ++const char * TiltSensor_name( int ts ) ++{ ++ return "Apple Sudden Motion Sensor"; ++} + + + #endif +Only in audicle-1.0.0.7/lang/chuck-1.2.1.3/src: util_hid.cpp.orig |