Package-Name: audacity
Conflicts: audacity-cvs
# FIXME: audacity 1.2 requires wxGTK 2.4 w/ gtk1 (doesn't compile with 2.6
#        or gtk2)
Requires: gtk1
Rebuild-For: libmad libogg libvorbis libsndfile libid3tag libresample libflac
Homepage: http://audacity.sourceforge.net/
Source: sourceforge:///audacity/audacity-src-(\d+(.\d+)+).tar.gz $1
More-Source-1: sourceforge:///wxwindows/wxGTK-2.4.2.tar.gz
Zap-Before-Install: 1
Repack:
	tar xzvfp $(SOURCE)
	test -d audacity-"$(VERSION)" || mv audacity* audacity-"$(VERSION)"
	tar Cxzvfp audacity-"$(VERSION)" $(SOURCE1)
Compile:
	cd wxGTK-2.4* && $(MAKE) -f ../../Makefile configure CONFIGURE_OPTS="--enable-static --disable-shared --disable-gtk2 --disable-unicode" && $(MAKE) && $(MAKE) install
	PATH="$(PREFIX)/bin:$$PATH" $(MAKE) -f ../Makefile configure
	$(MAKE)
	$(MAKE) install
Install:
	$(MAKE) instbin BIN=audacity
	$(MAKE) instlocale FILE=audacity
Patch: <<EOT
######## begin compilation fix
--- wxGTK-2.4.2/include/wx/list.h.old	2003-09-21 20:31:34 +0900
+++ wxGTK-2.4.2/include/wx/list.h	2005-08-26 23:53:24 +0900
@@ -384,6 +384,7 @@
                  T *data = (T *)NULL,                                       \
                  const wxListKey& key = wxDefaultListKey)                   \
             : wxNodeBase(list, previous, next, data, key) { }               \
+        virtual ~nodetype() { }                                             \
                                                                             \
         nodetype *GetNext() const                                           \
             { return (nodetype *)wxNodeBase::GetNext(); }                   \
######## end compilation fix
######## begin wildcard fix (*.* -> *)
--- src/Project.cpp.old	2004-11-18 15:17:30 +0900
+++ src/Project.cpp	2005-08-27 00:18:19 +0900
@@ -1734,7 +1734,7 @@
 
    wxFileDialog dlog(NULL, _("Select one or more audio files..."),
                      path, "",
-                     _("All files (*.*)|*.*|"
+                     _("All files (*)|*|"
                        "Audacity projects (*.aup)|*.aup|"
                        "WAV files (*.wav)|*.wav|"
                        "AIFF files (*.aif)|*.aif|"
######## end wildcard fix
EOT

/pkg/audacity/
/usr/bin/audacity
/usr/share/locale/*/LC_MESSAGES/audacity.mo
