diff options
Diffstat (limited to 'audio')
13 files changed, 173 insertions, 8 deletions
diff --git a/audio/cheesetracker/Makefile b/audio/cheesetracker/Makefile index 88760ead187e..d494ebc9397f 100644 --- a/audio/cheesetracker/Makefile +++ b/audio/cheesetracker/Makefile @@ -14,20 +14,24 @@ MASTER_SITES= http://www.reduz.com.ar/cheesetracker/ MAINTAINER= ports@FreeBSD.org BUILD_DEPENDS= ${LOCALBASE}/share/automake14/install-sh:${PORTSDIR}/devel/automake14 -LIB_DEPENDS= sigc:${PORTSDIR}/devel/libsigc++ \ - gtkmm:${PORTSDIR}/x11-toolkits/gtk-- +LIB_DEPENDS= gtkmm.2:${PORTSDIR}/x11-toolkits/gtk-- -GNU_CONFIGURE= yes -USE_GMAKE= yes USE_REINPLACE= yes +USE_GNOMENG= yes +USE_GNOME= gtk12 +USE_GMAKE= yes +GNU_CONFIGURE= yes +MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \ + AUTOHEADER="${TRUE}" + +post-patch: + @${REINPLACE_CMD} -e 's|[$$]CXXFLAGS_OPT |\$$CXXFLAGS |g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|AFMT_S16_NE|AFMT_S16_LE|g' ${WRKSRC}/waveout/sound_driver_oss.cpp pre-configure: .for file in install-sh missing mkinstalldirs - @${LN} -sf ${LOCALBASE}/share/automake14/automake/${file} ${WRKSRC} + @${LN} -sf ${LOCALBASE}/share/automake14/${file} ${WRKSRC} .endfor @${RM} -f ${WRKSRC}/config.cache -post-patch: - @${REINPLACE_CMD} -e "s,AFMT_S16_NE,AFMT_S16_LE,g" ${WRKSRC}/waveout/sound_driver_oss.cpp - .include <bsd.port.mk> diff --git a/audio/cheesetracker/files/patch-interface_gtk::interface_widget_envelope.cpp b/audio/cheesetracker/files/patch-interface_gtk::interface_widget_envelope.cpp new file mode 100644 index 000000000000..28a35bf51053 --- /dev/null +++ b/audio/cheesetracker/files/patch-interface_gtk::interface_widget_envelope.cpp @@ -0,0 +1,11 @@ +--- interface_gtk/interface_widget_envelope.cpp.orig Sun Jan 20 23:56:00 2002 ++++ interface_gtk/interface_widget_envelope.cpp Fri Dec 27 21:58:41 2002 +@@ -373,7 +373,7 @@ + node_x=get_point_x(i); + node_y=get_point_y(i); + +- dist=(int)sqrt((p_node_x-node_x)*(p_node_x-node_x)+(p_node_y-node_y)*(p_node_y-node_y)); ++ dist=(int)sqrt((double)((p_node_x-node_x)*(p_node_x-node_x)+(p_node_y-node_y)*(p_node_y-node_y))); + + if (dist<6) { + diff --git a/audio/cheesetracker/files/patch-interface_gtk::properties.h b/audio/cheesetracker/files/patch-interface_gtk::properties.h new file mode 100644 index 000000000000..738d6ee29bd0 --- /dev/null +++ b/audio/cheesetracker/files/patch-interface_gtk::properties.h @@ -0,0 +1,18 @@ +--- interface_gtk/properties.h.orig Thu Apr 11 02:39:58 2002 ++++ interface_gtk/properties.h Sun Dec 29 01:44:47 2002 +@@ -19,8 +19,14 @@ + #define PROPERTIES_H + + #include "typedefs.h" +-#include <hash_map> + #include <stdio.h> ++ ++#if defined(__GNUC__) && (__GNUC__ > 2) ++#include <ext/hash_map> ++using namespace __gnu_cxx; ++#else ++#include <hash_map> ++#endif + + + /** diff --git a/audio/cheesetracker/files/patch-trackercore::loader_it.cpp b/audio/cheesetracker/files/patch-trackercore::loader_it.cpp new file mode 100644 index 000000000000..020b4e974d40 --- /dev/null +++ b/audio/cheesetracker/files/patch-trackercore::loader_it.cpp @@ -0,0 +1,11 @@ +--- trackercore/loader_it.cpp.orig Wed May 1 09:11:51 2002 ++++ trackercore/loader_it.cpp Fri Dec 27 21:53:21 2002 +@@ -192,7 +192,7 @@ + + } + +-void Loader_IT::free_info(bool free_sampledata=false) { ++void Loader_IT::free_info(bool free_sampledata) { + + clear_structs(free_sampledata); + } diff --git a/audio/cheesetracker/files/patch-trackercore::loader_s3m.cpp b/audio/cheesetracker/files/patch-trackercore::loader_s3m.cpp new file mode 100644 index 000000000000..b943ac8356da --- /dev/null +++ b/audio/cheesetracker/files/patch-trackercore::loader_s3m.cpp @@ -0,0 +1,11 @@ +--- trackercore/loader_s3m.cpp.orig Thu Sep 6 14:37:45 2001 ++++ trackercore/loader_s3m.cpp Fri Dec 27 21:54:34 2002 +@@ -346,7 +346,7 @@ + + } + +-void Loader_S3M::free_info(bool free_sampledata=false) { ++void Loader_S3M::free_info(bool free_sampledata) { + + int i; + diff --git a/audio/cheesetracker/files/patch-trackercore::loader_xm.cpp b/audio/cheesetracker/files/patch-trackercore::loader_xm.cpp new file mode 100644 index 000000000000..f6fd066c31a6 --- /dev/null +++ b/audio/cheesetracker/files/patch-trackercore::loader_xm.cpp @@ -0,0 +1,20 @@ +--- trackercore/loader_xm.cpp.orig Wed Apr 24 12:33:40 2002 ++++ trackercore/loader_xm.cpp Fri Dec 27 22:44:16 2002 +@@ -387,7 +387,7 @@ + return FUNCTION_SUCCESS; + } + +-int Loader_XM::load_instrument_internal(Instrument *p_instr,bool p_xi,int p_cpos, int p_hsize, int p_sampnum=-1) { ++int Loader_XM::load_instrument_internal(Instrument *p_instr,bool p_xi,int p_cpos, int p_hsize, int p_sampnum) { + + int sampnum; + Uint32 aux; +@@ -807,7 +807,7 @@ + + } + +-void Loader_XM::free_info(bool free_sampledata=false) { ++void Loader_XM::free_info(bool free_sampledata) { + + if (free_sampledata) + for (int x=0;x<samples.size();x++) { diff --git a/audio/cheesetracker/files/patch-trackercore::mixer_procedure.h b/audio/cheesetracker/files/patch-trackercore::mixer_procedure.h new file mode 100644 index 000000000000..f759203535ba --- /dev/null +++ b/audio/cheesetracker/files/patch-trackercore::mixer_procedure.h @@ -0,0 +1,17 @@ +--- trackercore/mixer_procedure.h.orig Tue Apr 30 16:11:28 2002 ++++ trackercore/mixer_procedure.h Sun Dec 29 01:44:12 2002 +@@ -19,7 +19,13 @@ + #define MIXER_PROCEDURE_H + + #include "sample_data.h" +-#include <hash_map> ++ ++#if defined(__GNUC__) && (__GNUC__ > 2) ++#include <ext/hash_map> ++using namespace __gnu_cxx; ++#else ++#include <hash_map> ++#endif + + /**Mixer Procedure + diff --git a/audio/cheesetracker/files/patch-trackercore::nsf_export.cpp b/audio/cheesetracker/files/patch-trackercore::nsf_export.cpp new file mode 100644 index 000000000000..99936d928f9f --- /dev/null +++ b/audio/cheesetracker/files/patch-trackercore::nsf_export.cpp @@ -0,0 +1,11 @@ +--- trackercore/nsf_export.cpp.orig Mon Apr 22 10:40:35 2002 ++++ trackercore/nsf_export.cpp Fri Dec 27 21:57:08 2002 +@@ -72,7 +72,7 @@ + write_byte(0x8d); write_byte(p_register_addr&0xFF); write_byte(p_register_addr >> 8); // STA $p_register_addr + } + +-void NSF_Export::update_voice_data(Uint8 p_voice, bool write_chunk=false) { ++void NSF_Export::update_voice_data(Uint8 p_voice, bool write_chunk) { + + if ((p_voice<2) || (p_voice==3)) { + diff --git a/audio/cheesetracker/files/patch-trackercore::pattern.h b/audio/cheesetracker/files/patch-trackercore::pattern.h new file mode 100644 index 000000000000..00e508732a5f --- /dev/null +++ b/audio/cheesetracker/files/patch-trackercore::pattern.h @@ -0,0 +1,17 @@ +--- trackercore/pattern.h.orig Wed May 9 22:43:05 2001 ++++ trackercore/pattern.h Fri Dec 27 21:14:20 2002 +@@ -18,11 +18,14 @@ + #ifndef PATTERN_H + #define PATTERN_H + ++#include <iostream> + #include <map> + #include <vector> + + #include "note.h" + #include "mutex_lock.h" ++ ++using namespace std; + + #define PATTERN_WIDTH 64 + #define MIN_PATTERN_LENGTH 32 diff --git a/audio/cheesetracker/files/patch-trackercore::player_data.cpp b/audio/cheesetracker/files/patch-trackercore::player_data.cpp new file mode 100644 index 000000000000..bbef8a3bb111 --- /dev/null +++ b/audio/cheesetracker/files/patch-trackercore::player_data.cpp @@ -0,0 +1,11 @@ +--- trackercore/player_data.cpp.orig Mon Mar 4 10:02:51 2002 ++++ trackercore/player_data.cpp Fri Dec 27 21:17:07 2002 +@@ -32,7 +32,7 @@ + Player_Data::~Player_Data(){ + } + +-void Player_Data::set_virtual_channels(int p_amount,bool p_lock = true) { ++void Player_Data::set_virtual_channels(int p_amount,bool p_lock) { + + if (p_amount<1) return; + if (p_amount==control.max_voices) return; diff --git a/audio/cheesetracker/files/patch-trackercore::player_data_effects.cpp b/audio/cheesetracker/files/patch-trackercore::player_data_effects.cpp new file mode 100644 index 000000000000..0c752e06ce5f --- /dev/null +++ b/audio/cheesetracker/files/patch-trackercore::player_data_effects.cpp @@ -0,0 +1,11 @@ +--- trackercore/player_data_effects.cpp.orig Tue Apr 30 14:58:11 2002 ++++ trackercore/player_data_effects.cpp Fri Dec 27 22:36:36 2002 +@@ -339,7 +339,7 @@ + + if (song->variables.use_linear_slides) { + +- control.channel[p_track].period=control.channel[p_track].aux_period-abs(get_period((Uint16)46,0)-get_period((Uint16)44,0))*note; ++ control.channel[p_track].period=control.channel[p_track].aux_period-abs((int)(get_period((Uint16)46,0)-get_period((Uint16)44,0)))*note; + } else { + + control.channel[p_track].period=get_period( (((Uint16)control.channel[p_track].note+control.channel[p_track].sample_ptr->data.note_offset)+note)<<1,control.channel[p_track].sample_ptr->data.finetune); diff --git a/audio/cheesetracker/files/patch-trackercore::sample.cpp b/audio/cheesetracker/files/patch-trackercore::sample.cpp new file mode 100644 index 000000000000..22f298a6d927 --- /dev/null +++ b/audio/cheesetracker/files/patch-trackercore::sample.cpp @@ -0,0 +1,11 @@ +--- trackercore/sample.cpp.orig Wed May 9 22:43:01 2001 ++++ trackercore/sample.cpp Fri Dec 27 21:53:58 2002 +@@ -24,7 +24,7 @@ + Sample::~Sample(){ + } + +-void Sample::reset(bool try_to_free_data=true) { ++void Sample::reset(bool try_to_free_data) { + + name=""; + filename=""; diff --git a/audio/cheesetracker/files/patch-trackercore::typedefs.h b/audio/cheesetracker/files/patch-trackercore::typedefs.h new file mode 100644 index 000000000000..edf80b08db92 --- /dev/null +++ b/audio/cheesetracker/files/patch-trackercore::typedefs.h @@ -0,0 +1,12 @@ +--- trackercore/typedefs.h.orig Mon Jan 21 00:07:38 2002 ++++ trackercore/typedefs.h Fri Dec 27 22:41:08 2002 +@@ -19,6 +19,9 @@ + #define TYPEDEFS_H + + #include <string> ++#include <iostream> ++ ++using namespace std; + + typedef unsigned char byte; + |