diff options
author | rh <rh> | 2001-06-18 12:27:36 +0000 |
---|---|---|
committer | rh <rh> | 2001-06-18 12:27:36 +0000 |
commit | d700cd1a7132a75928b6fc39f8ba6646c85dc3c0 (patch) | |
tree | ef7c6ee9965cbd03bad952a1aeccfdea5b0c7d2d /audio | |
parent | 59eb7ef9e2b3852ebb0e6aa6b871cfbf957a36a9 (diff) | |
download | pkgsrc-d700cd1a7132a75928b6fc39f8ba6646c85dc3c0.tar.gz |
Initial import of cheesetracker-0.2.1, an ImpulsTracker clone. This
package was provided in PR 13215 by Ben Collver <collver@linuxfreemail.com>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/cheesetracker/Makefile | 21 | ||||
-rw-r--r-- | audio/cheesetracker/distinfo | 8 | ||||
-rw-r--r-- | audio/cheesetracker/patches/patch-aa | 17 | ||||
-rw-r--r-- | audio/cheesetracker/patches/patch-ab | 44 | ||||
-rw-r--r-- | audio/cheesetracker/patches/patch-ac | 13 | ||||
-rw-r--r-- | audio/cheesetracker/patches/patch-ad | 54 | ||||
-rw-r--r-- | audio/cheesetracker/pkg/DESCR | 7 | ||||
-rw-r--r-- | audio/cheesetracker/pkg/PLIST | 2 |
8 files changed, 166 insertions, 0 deletions
diff --git a/audio/cheesetracker/Makefile b/audio/cheesetracker/Makefile new file mode 100644 index 00000000000..22d072c82e1 --- /dev/null +++ b/audio/cheesetracker/Makefile @@ -0,0 +1,21 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/06/18 12:27:36 rh Exp $ +# + +DISTNAME= cheesetracker-0.2.1 +CATEGORIES= audio +MASTER_SITES= http://www.reduz.com.ar/cheesetracker/ + +MAINTAINER= collver@linuxfreemail.com +HOMEPAGE= http://www.reduz.com.ar/cheesetracker/ +COMMENT= impulse tracker clone + +DEPENDS+= gtk-->=1.2:../../x11/gtk-- +BUILD_DEPENDS+= autoconf>=2.13:../../devel/autoconf + +GNU_CONFIGURE= yes +CONFIGURE_ENV= CXXFLAGS="-O -Dusleep=pth_usleep -Dwrite=__pthread_write" + +pre-configure: + cd ${WRKSRC} && autoreconf --force + +.include "../../mk/bsd.pkg.mk" diff --git a/audio/cheesetracker/distinfo b/audio/cheesetracker/distinfo new file mode 100644 index 00000000000..1814127fe5d --- /dev/null +++ b/audio/cheesetracker/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/06/18 12:27:36 rh Exp $ + +SHA1 (cheesetracker-0.2.1.tar.gz) = a8500b96222b74019529b573e5d65821639a451b +Size (cheesetracker-0.2.1.tar.gz) = 181193 bytes +SHA1 (patch-aa) = 363a9f2595723c9a2cfccaf351965405f60775a5 +SHA1 (patch-ab) = 81a12ba155e08608ad608a3e9229be1c819ca844 +SHA1 (patch-ac) = 26f451e9b2dcc9dceb940886fcda3eac4ce317e9 +SHA1 (patch-ad) = ae6d9096984a82edbde66a341703a3baf19722bb diff --git a/audio/cheesetracker/patches/patch-aa b/audio/cheesetracker/patches/patch-aa new file mode 100644 index 00000000000..134eae81032 --- /dev/null +++ b/audio/cheesetracker/patches/patch-aa @@ -0,0 +1,17 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/06/18 12:27:36 rh Exp $ + +--- src/sound_driver_oss.h.orig Wed May 9 06:43:05 2001 ++++ src/sound_driver_oss.h Thu Jun 14 23:33:41 2001 +@@ -22,7 +22,12 @@ + + #include <sound_driver.h> + #include <fcntl.h> ++#if defined(__NetBSD__) ++#include <sys/audioio.h> ++#include <soundcard.h> ++#else + #include <sys/soundcard.h> ++#endif + #include <sys/ioctl.h> + + #include "mutex_lock_pthreads.h" diff --git a/audio/cheesetracker/patches/patch-ab b/audio/cheesetracker/patches/patch-ab new file mode 100644 index 00000000000..4757fb14385 --- /dev/null +++ b/audio/cheesetracker/patches/patch-ab @@ -0,0 +1,44 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/06/18 12:27:36 rh Exp $ + +--- src/main.cpp.orig Wed May 9 06:43:01 2001 ++++ src/main.cpp Thu Jun 14 23:25:55 2001 +@@ -78,6 +78,10 @@ + return NULL; + } + ++gint pth_nbschedule(gint no_need_this) { ++ pthread_yield_np(); ++ return 1; ++} + + void initialize_objects () { + +@@ -145,7 +149,9 @@ + + + pthread_attr_t thread_attr; ++#if !defined(_POSIX_THREAD_IS_GNU_PTH) || defined(_POSIX_THREAD_PRIORITY_SCHEDULING) + sched_param thread_sched_param; ++#endif + + int tmperror,counter=0; + char * filename; +@@ -182,9 +188,18 @@ + quit_player=false; + + pthread_attr_init(&thread_attr); ++#if !defined(_POSIX_THREAD_IS_GNU_PTH) || defined(_POSIX_THREAD_PRIORITY_SCHEDULING) + thread_sched_param.sched_priority=0; + pthread_attr_setschedparam (&thread_attr,&thread_sched_param); ++#endif + pthread_create(&player_thread,&thread_attr,&player_thread_callback,NULL); ++ ++#ifdef _POSIX_THREAD_IS_GNU_PTH ++ SigC::Slot0<gint> my_slot = SigC::bind( ++ SigC::slot(pth_nbschedule), ++ 0); ++ Gtk::Connection conn = Gtk::Main::timeout.connect(my_slot, 150); ++#endif + + begin_threads=true; + diff --git a/audio/cheesetracker/patches/patch-ac b/audio/cheesetracker/patches/patch-ac new file mode 100644 index 00000000000..1b42f340091 --- /dev/null +++ b/audio/cheesetracker/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2001/06/18 12:27:36 rh Exp $ + +--- configure.in.orig Wed May 9 08:12:57 2001 ++++ configure.in Mon Jun 11 07:00:59 2001 +@@ -341,7 +356,7 @@ + + dnl optimization + +-TF_CXXFLAGS="-O3 $TF_CXXFLAGS" ++TF_GTKMM_LIBS="$TF_GTKMM_LIBS -lpthread -lossaudio" + + AC_SUBST(TF_CFLAGS) + AC_SUBST(TF_CXXFLAGS) diff --git a/audio/cheesetracker/patches/patch-ad b/audio/cheesetracker/patches/patch-ad new file mode 100644 index 00000000000..c1dc60e0181 --- /dev/null +++ b/audio/cheesetracker/patches/patch-ad @@ -0,0 +1,54 @@ +$NetBSD: patch-ad,v 1.1.1.1 2001/06/18 12:27:36 rh Exp $ + +--- src/sound_driver_oss.cpp.orig Wed May 9 06:43:01 2001 ++++ src/sound_driver_oss.cpp Thu Jun 14 23:31:06 2001 +@@ -18,7 +18,11 @@ + #include "sound_driver_oss.h" + #include "math.h" + ++#if defined(__NetBSD__) ++#define AUDIO_DEVICE "/dev/audio" ++#else + #define AUDIO_DEVICE "/dev/dsp" ++#endif + + int Sound_Driver_OSS::init() { + +@@ -155,16 +159,37 @@ + + int done; + audio_buf_info buffinf; ++#if defined(__NetBSD__) && SOUND_VERSION <= 0x030000 ++ struct audio_info info; ++#endif + + if (!active) return false; + + for (;;) { + ++#if defined(__NetBSD__) && SOUND_VERSION <= 0x030000 ++/* ++ This is to work around a bug in NetBSD-1.5.1 and earlier, in which ++ the SNDCTL_DSP_GETOSPACE(&buf_info) ioctl was not handled properly. ++ The correct information is always available via the native audio ++ driver, so use that instead. ++*/ ++ if (ioctl(sound_fd, AUDIO_GETINFO, &info) == 0) { ++ buffinf.fragsize = info.blocksize; ++ buffinf.fragments = info.hiwat - info.play.seek / ++ info.blocksize; ++ buffinf.bytes = info.play.buffer_size; ++ } else { ++ buffinf.fragments--; ++ buffinf.fragsize = buffinf.bytes = buffersize; ++ } ++#else + if ((ioctl(sound_fd,SNDCTL_DSP_GETOSPACE,&buffinf)<0)) { + + buffinf.fragments--; + buffinf.fragsize = buffinf.bytes = buffersize; + } ++#endif + + if(!buffinf.fragments) break; + diff --git a/audio/cheesetracker/pkg/DESCR b/audio/cheesetracker/pkg/DESCR new file mode 100644 index 00000000000..a1918ddd8b8 --- /dev/null +++ b/audio/cheesetracker/pkg/DESCR @@ -0,0 +1,7 @@ +Cheese Tracker is a clone of Impulse Tracker, written in C++ and using GTK-- + +For more information, please refer to the Cheese Tracker web page and to +information about Impulse Tracker: + http://www.reduz.com.ar/cheesetracker/ + http://www.united-trackers.org/resources/itidiot/ + http://www.united-trackers.org/resources/handbook/ diff --git a/audio/cheesetracker/pkg/PLIST b/audio/cheesetracker/pkg/PLIST new file mode 100644 index 00000000000..b9ce1fa819d --- /dev/null +++ b/audio/cheesetracker/pkg/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/06/18 12:27:36 rh Exp $ +bin/cheesetracker |