Package-Name: wxGTK
# FIXME: wxPython needs gtk1
#Requires: gtk+
Requires: gtk1
Suggests: mesa3d
Homepage: http://www.wxwindows.org/
Source: sourceforge:///wxwindows/wxGTK-(\d+.\d*[02468].\d+).tar.gz $1
#Source: sourceforge:///wxwindows/wxGTK-(\d+.\d+.\d+).tar.gz $1
Zap-Before-Install: 1
Repack:
	tar xzvfp "$(SOURCE)"
Compile:
	if packager c mesa3d ; then OPENGL="--with-opengl" ; else OPENGL="" ; fi ; \
# FIXME: as above
#	$(MAKE) -f ../Makefile configure CONFIGURE_OPTS="--with-gtk --enable-gtk2 --enable-static $$OPENGL --enable-intl"
	$(MAKE) -f ../Makefile configure CONFIGURE_OPTS="--with-gtk --enable-static $$OPENGL --enable-intl"
	$(MAKE)
	$(MAKE) install
	cp -p CHANGES* COPYING.LIB LICENCE.txt README* TODO.txt "$(PREFIX)/"
Install:
	$(MAKE) instbin BIN=wx-config
	$(MAKE) addldso
	$(MAKE) instlocale FILE=wxstd
Clean:
	@set -e ; cd "$(PREFIX)"/lib ; \
	for lib in *.so.[0-9] ; do \
		reallib=`/bin/ls -l "$$lib" | sed 's/.* -> //'` ; \
		for file in $$lib.[0-9]*.[0-9]* ; do \
			if test "$$file" != "$$reallib" ; then \
				rm -fv "$$file" ; \
			fi ; \
		done ; \
	done
Patch: <<EOT
--- include/wx/listbase.h.old	Mon Sep 16 03:19:48 2002
+++ include/wx/listbase.h	Fri Nov  8 22:46:24 2002
@@ -330,10 +330,12 @@
 
     wxListItemAttr *m_attr;     // optional pointer to the items style
 
-private:
+//private:
+public:  // for wxPython, src/gtk/controls2.cpp:2503 <achurch@achurch.org>
     // VZ: this is strange, we have a copy ctor but not operator=(), why?
     wxListItem& operator=(const wxListItem& item);
 
+private:
     DECLARE_DYNAMIC_CLASS(wxListItem)
 };
 
EOT

/pkg/wxGTK/
/usr/bin/wx-config
/usr/share/locale/*/LC_MESSAGES/wxstd.mo
