+ && $(MAKE) install prefix=`pwd`/../$(objdir_gtk_install)
+ cd $(objdir_gtk_shared)/contrib/src \
+ && $(MAKE) install prefix=`pwd`/../../../$(objdir_gtk_install)
+ touch $@
+
+install-gtk-lib: DH_OPTIONS=-p$(package_gtk_lib)
+install-gtk-lib: install-gtk-shared-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_install $(objdir_gtk_install)/lib/libwx_gtk*.so.* usr/lib
+ dh_installdirs usr/share/lintian/overrides
+ cp debian/lintian-override debian/$(package_gtk_lib)/usr/share/lintian/overrides/$(package_gtk_lib)
+
+install-gtk-dev: DH_OPTIONS=-p$(package_gtk_dev)
+install-gtk-dev: install-gtk-shared-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_install $(objdir_gtk_install)/lib/libwx_gtk*.so usr/lib
+ dh_install $(objdir_gtk_install)/lib/wx/include usr/lib/wx
+ dh_install $(objdir_gtk_install)/lib/wx/config/gtk* usr/lib/wx/config
+
+install-gtk-dbg: DH_OPTIONS=-p$(package_gtk_dbg)
+install-gtk-dbg: build-gtk-debug-stamp build-gtk-debug-contrib-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_install $(objdir_gtk_debug)/lib/libwx_gtk* usr/lib
+ dh_install $(objdir_gtk_debug)/lib/wx/include usr/lib/wx
+ dh_install $(objdir_gtk_debug)/lib/wx/config/gtk* usr/lib/wx/config
+ dh_installdirs usr/share/lintian/overrides
+ cp debian/lintian-override debian/$(package_gtk_dbg)/usr/share/lintian/overrides/$(package_gtk_dbg)
+
+
+install-gtk-py-lib: DH_OPTIONS=-p$(package_gtk_py_lib)
+install-gtk-py-lib: build-gtk-py-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs usr/lib/wx/python
+ cd wxPython \
+ && $(python_ver) ./setup.py install \
+ --prefix=`pwd`/../debian/$(package_gtk_py_lib)/usr \
+ WX_CONFIG='$(wxconfig)' \
+ SYS_WX_CONFIG='$(py_wxconfig)' \
+ WXPORT=$(pytoolkit) \
+ $(PY_UNICODE) \
+ FLAVOUR=$(DEBIAN_WXFLAVOUR)
+
+ mv debian/$(package_gtk_py_lib)/$(pydir)/wx.pth \
+ debian/$(package_gtk_py_lib)/usr/lib/wx/python/wx$(release).pth
+
+ find debian/$(package_gtk_py_lib)/$(pydir) -name '*.py?' -exec rm '{}' ';'
+
+ # This is rather bogus, its included in the main copyright file now though.
+ rm -f debian/$(package_gtk_py_lib)/$(wxpydir)/wx/tools/XRCed/license.txt
+
+install-gtk-py-ver: DH_OPTIONS=-p$(package_gtk_py_ver)
+install-gtk-py-ver: install-gtk-py-lib
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+
+ifndef DEBIAN_WX_DEFAULT_VERSION
+
+ dh_movefiles --sourcedir=debian/$(package_gtk_py_lib) $(pydir)/wxversion.py
+else
+ rm debian/$(package_gtk_py_lib)/$(pydir)/wxversion.py
+endif
+
+
+
+install-gtk-py-tools: DH_OPTIONS=-p$(package_gtk_py_tools)
+install-gtk-py-tools: install-gtk-py-ver
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+
+ifndef DEBIAN_WX_DEFAULT_VERSION
+
+ dh_movefiles --sourcedir=debian/$(package_gtk_py_lib) usr/bin
+
+ dh_installman debian/wxPython-tools.1
+ dh_link usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/img2py.1 \
+ usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/img2xpm.1 \
+ usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/img2png.1 \
+ usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/pycrust.1 \
+ usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/pyshell.1 \
+ usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/xrced.1 \
+ usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/helpviewer.1 \
+ usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/pyalacarte.1 \
+ usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/pyalamode.1 \
+ usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/pywrap.1 \
+ usr/share/man/man1/wxPython-tools.1 usr/share/man/man1/pywxrc.1
+
+ dh_installdirs usr/share/lintian/overrides
+ cp debian/lintian-override debian/$(package_gtk_py_tools)/usr/share/lintian/overrides/$(package_gtk_py_tools)
+endif
+ mkdir -p debian/$(package_gtk_py_tools)/usr/share/pixmaps
+ mkdir -p debian/$(package_gtk_py_tools)/usr/share/applications
+
+ cp wxPython/wx/py/PyCrust_32.png debian/$(package_gtk_py_tools)/usr/share/pixmaps/pycrust.png
+ cp wxPython/wx/py/PyCrust_32.png debian/$(package_gtk_py_tools)/usr/share/pixmaps/pyshell.png
+ cp wxPython/wx/tools/XRCed/XRCed_32.png debian/$(package_gtk_py_tools)/usr/share/pixmaps/xrced.png
+ cp debian/pycrust.desktop debian/$(package_gtk_py_tools)/usr/share/applications
+ cp debian/pyshell.desktop debian/$(package_gtk_py_tools)/usr/share/applications
+ cp debian/xrced.desktop debian/$(package_gtk_py_tools)/usr/share/applications
+
+ rm -r debian/$(package_gtk_py_lib)/usr/bin
+
+install-gtk-py-addons: DH_OPTIONS=-p$(package_gtk_py_addons)
+install-gtk-py-addons: install-gtk-py-tools
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ifndef DEBIAN_WX_DEFAULT_VERSION
+
+ dh_movefiles --sourcedir=debian/$(package_gtk_py_lib) $(pydir)/wxaddons
+else
+ rm -r debian/$(package_gtk_py_lib)/$(pydir)/wxaddons
+endif
+
+
+install-gtk-py: install-gtk-py-addons
+
+
+install-common: DH_OPTIONS=-p$(package_common)
+install-common: install-gtk-shared-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+
+ dh_install $(objdir_gtk_install)/share/bakefile/presets usr/share/bakefile
+ dh_install $(objdir_gtk_install)/share/bakefile/presets/wx*.bkl usr/share/bakefile/presets
+
+ dh_install $(objdir_gtk_install)/share/aclocal usr/share
+ dh_installman debian/wx-config.1
+
+ dh_install $(objdir_gtk_shared)/utils/wxrc/wxrc usr/bin
+ dh_installman debian/wxrc-tools.1
+ dh_link usr/share/man/man1/wxrc-tools.1 usr/share/man/man1/wxrc.1
+
+
+install-headers: DH_OPTIONS=-p$(package_headers)
+install-headers: install-gtk-shared-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+
+# The only way to be really sure we get the univ headers correct is to install
+# them. Do that in a scratch dirs, and move the gtk ones last, so at least
+# they win in the result of any uncaught conflict.
+
+# cd $(objdir_gtk_univ) \
+# && $(MAKE) install prefix=`pwd`/../$(objdir_univ_install)/usr
+
+# dh_movefiles --sourcedir=$(objdir_univ_install)
+ dh_install $(objdir_gtk_install)/include usr
+
+ # TODO: Should probably use setup.py's install of the wxPython headers...
+ mkdir -p debian/$(package_headers)/usr/include/wx-$(release)/wx/wxPython
+ mkdir -p debian/$(package_headers)/usr/include/wx-$(release)/wx/wxPython/i_files
+ cp -p wxPython/include/wx/wxPython/*.h \
+ debian/$(package_headers)/usr/include/wx-$(release)/wx/wxPython/
+ cp -p wxPython/include/wx/wxPython/src/*.i wxPython/include/wx/wxPython/src/_*.py \
+ wxPython/include/wx/wxPython/src/*.swg \
+ debian/$(package_headers)/usr/include/wx-$(release)/wx/wxPython/i_files
+
+install-i18n: DH_OPTIONS=-p$(package_i18n)
+install-i18n: build-i18n-stamp install-gtk-shared-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_install $(objdir_gtk_install)/share/locale usr/share
+
+
+install-doc: DH_OPTIONS=-p$(package_doc)
+install-doc: build-doc-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_install $(objdir_doc) usr/share/doc/$(package_doc)
+
+ @# Link this monstrosity with an overly obfuscated name
+ @# to something that both people and browsers can expect to find.
+ dh_link usr/share/doc/$(package_doc)/wx-manual.html/wx-$(release)-manual_contents.html \
+ usr/share/doc/$(package_doc)/wx-manual.html/index.html
+
+
+install-examples: DH_OPTIONS=-p$(package_examples)
+install-examples: build-examples-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+
+install-gtk-dbg-py: DH_OPTIONS=-p$(package_gtk_dbg_py)
+install-gtk-dbg-py: build-gtk-dbg-py-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs usr/lib/wx/python
+ cd wxPython \
+ && $(python_ver) ./setup.py install \
+ --prefix=`pwd`/../debian/$(package_gtk_dbg_py)/usr \
+ WX_CONFIG='$(wxconfig-dbg)' \
+ SYS_WX_CONFIG='$(pyd_wxconfig)' \
+ WXPORT=$(pytoolkit) \
+ $(PY_UNICODE) \
+ FLAVOUR=$(addsuffix -,$(DEBIAN_WXFLAVOUR))dbg
+
+ mv debian/$(package_gtk_py_lib)/$(pydir)/wx.pth \
+ debian/$(package_gtk_py_lib)/usr/lib/wx/python/wx$(release)-dbg.pth
+
+ find debian/$(package_gtk_dbg_py)/$(pydir) -name '*.py?' -exec rm '{}' ';'
+ rm -rf usr/bin $(pydir)/{wxversion.py,wx.pth}
+
+ # This is rather bogus, its included in the main copyright file now though.
+ rm -f debian/$(package_gtk_dbg_py)/$(wxpydir)/wx/tools/XRCed/license.txt
+
+
+install-msw-dev: DH_OPTIONS=-p$(package_msw_dev)
+install-msw-dev: build-msw-shared-stamp build-msw-static-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_install $(objdir_msw_shared)/lib/*.dll* usr/$(cross_host)/lib
+ dh_install $(objdir_msw_shared)/lib/wx/include usr/$(cross_host)/lib/wx
+ dh_install $(objdir_msw_shared)/lib/wx/config/$(cross_host)* usr/$(cross_host)/lib/wx/config
+ dh_install $(objdir_msw_static)/lib/*.a usr/$(cross_host)/lib
+ dh_install $(objdir_msw_static)/lib/wx/include usr/$(cross_host)/lib/wx
+ dh_install $(objdir_msw_static)/lib/wx/config/$(cross_host)* usr/$(cross_host)/lib/wx/config
+ $(cross_host)-strip --strip-debug debian/$(package_msw_dev)/usr/$(cross_host)/lib/*.a
+
+ @# As a special case for the cross packages, we link their config
+ @# under /usr as well as under the normal cross prefix. This way
+ @# --prefix=/usr/$(cross_host) and --prefix=/usr --host=$(cross_host)
+ @# will have a congruent effect on wx-config.
+ @( for f in `ls -1 debian/$(package_msw_dev)/usr/$(cross_host)/lib/wx/config`; do \
+ all_cfg="$${all_cfg} usr/$(cross_host)/lib/wx/config/$$f usr/lib/wx/config/$$f"; \
+ echo "linking cross config /usr/$(cross_host)/lib/wx/config/$$f"; \
+ done; \
+ dh_link $${all_cfg}; \
+ )
+
+install-msw-dbg: DH_OPTIONS=-p$(package_msw_dbg)
+install-msw-dbg: build-msw-dbg-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_install $(objdir_msw_dbg)/lib/*.dll* usr/$(cross_host)/lib
+ dh_install $(objdir_msw_dbg)/lib/wx/include usr/$(cross_host)/lib/wx
+ dh_install $(objdir_msw_dbg)/lib/wx/config/$(cross_host)* usr/$(cross_host)/lib/wx/config
+ # No static lib, they're freakin' huge!
+ #$(cross_host)-strip --strip-debug debian/$(package_msw_dbg)/usr/$(cross_host)/lib/*.a
+
+ @( for f in `ls -1 debian/$(package_msw_dbg)/usr/$(cross_host)/lib/wx/config`; do \
+ all_cfg="$${all_cfg} usr/$(cross_host)/lib/wx/config/$$f usr/lib/wx/config/$$f"; \
+ echo "linking cross config /usr/$(cross_host)/lib/wx/config/$$f"; \
+ done; \
+ dh_link $${all_cfg}; \
+ )
+
+install-headers-msw: DH_OPTIONS=-p$(package_headers_msw)
+install-headers-msw:
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+
+ cd $(objdir_msw_shared) \
+ && $(MAKE) install prefix=`pwd`/../$(objdir_msw_install)
+
+# Symlink all the headers that will be installed by the main -headers
+# package to where the cross compiler will expect them.
+ @( for f in `ls -1 $(objdir_msw_install)/include/wx-$(release)/wx`; do \
+ all_h="$${all_h} usr/include/wx-$(release)/wx/$$f usr/$(cross_host)/include/wx-$(release)/wx/$$f"; \
+ echo "linking header /usr/include/wx-$(release)/wx/$$f"; \
+ done; \
+ dh_link $${all_h}; \
+ )
+
+# But install this lot for real.
+ rm -f debian/$(package_headers_msw)/usr/$(cross_host)/include/wx-$(release)/wx/msw
+ dh_install $(objdir_msw_install)/include/wx-$(release)/wx/msw usr/$(cross_host)/include/wx-$(release)/wx
+
+
+#---------------------------------------------------------------------------
+# Tying it all together
+
+
+binary-indep: build_all install
+ dh_testdir -i
+ dh_testroot -i
+ dh_installdocs -i
+ dh_installchangelogs -i
+ dh_installexamples -i
+ dh_installmenu -i
+ifdef NO_PYCENTRAL
+ dh_python -i
+else
+ dh_pycentral -i
+endif
+ dh_link -i
+ dh_compress -i
+ dh_fixperms -i
+ dh_installdeb -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
+
+
+binary-arch: build_arch install_arch
+ dh_testdir -a
+ dh_testroot -a
+ dh_installdocs -a
+ dh_installchangelogs -a
+ dh_installexamples -a
+ dh_installmenu -a
+
+ rm -rf debian/$(package_gtk_dbg_py)/usr/share/doc/$(package_gtk_dbg_py)
+ ln -s $(package_gtk_py_lib) debian/$(package_gtk_dbg_py)/usr/share/doc/$(package_gtk_dbg_py)
+
+ifdef NO_PYCENTRAL
+ dh_python -a
+else
+ dh_pycentral -a
+endif
+
+# Don't strip debug libs at all, and strip cross libs elsewhere
+# with the cross host tools until dh_strip gets smarter.
+ dh_strip -p$(package_gtk_py_lib) --dbg-package=$(package_gtk_dbg_py)
+ dh_strip -N$(package_gtk_dbg) -N$(package_wxbase_dbg) \
+ -N$(package_msw_dev) -N$(package_msw_dbg) \
+ -N$(package_gtk_py_lib) -N$(package_gtk_dbg_py)
+
+ dh_link -a
+ dh_compress -a
+ dh_fixperms -a
+ dh_makeshlibs -N$(package_gtk_py_lib) -N$(package_gtk_dbg_py) -V
+ dh_installdeb -a
+ dh_shlibdeps -ldebian/$(package_wxbase_lib)/usr/lib:debian/$(package_wxbase_dbg)/usr/lib:debian/$(package_gtk_lib)/usr/lib:debian/$(package_gtk_dbg)/usr/lib
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a
+
+
+# Build all packages target.
+binary: binary-indep binary-arch
+
+
+
+# This is a special target for building the wxMSW-cross packages.
+# It's not currently called during the official package build run
+# but may be run separately to build the extra packages.
+# There is an implied build dep on the mingw32 cross compiler
+# that is not in the control file.
+binary-cross: control-files-stamp $(install_all_cross)
+ $(MAKE) -f debian/rules \
+ DH_OPTIONS="-p$(package_msw_dev) -p$(package_msw_dbg) -p$(package_headers_msw)" \
+ binary-common
+
+
+############################################################################
+#
+# Some rules to build a subset of the complete list of packages that can be
+# built from CVS. Beware that packages produced with these rules may *NOT*
+# be compatible with packages built using the 'binary' target or even with
+# Debian policy. Do not distribute packages built with these rules, they
+# are currently useful for rapid in-house testing by developers only.
+
+DH_OPTIONS_GTK := -p$(package_wxbase_lib) -p$(package_gtk_lib) -p$(package_headers)
+
+# libwxgtk shared lib package
+binary-gtk: control-files-stamp install-gtk-lib install-wxbase-lib install-headers
+ $(MAKE) -f debian/rules DH_OPTIONS="$(DH_OPTIONS_GTK)" binary-common
+
+binary-gtk-dev: control-files-stamp install-gtk-dev install-wxbase-dev install-headers
+ $(MAKE) -f debian/rules \
+ DH_OPTIONS="-p$(package_wxbase_dev) -p$(package_gtk_dev) $(DH_OPTIONS_GTK)" \
+ binary-common
+
+binary-gtk-dbg: control-files-stamp install-gtk-dbg install-wxbase-dbg install-headers
+ $(MAKE) -f debian/rules \
+ DH_OPTIONS="-p$(package_wxbase_dbg) -p$(package_gtk_dbg) -p$(package_headers)" \
+ binary-common
+
+
+# docs package
+binary-doc: control-files-stamp install-doc
+ $(MAKE) -f debian/rules DH_OPTIONS=-p$(package_doc) binary-common
+
+binary-fast:control-files-stamp install-gtk-dbg install-msw-dev install-headers install-headers-msw
+ $(MAKE) -f debian/rules DH_OPTIONS="-p$(package_gtk_dbg) -p$(package_msw_dev) -p$(package_headers) -p$(package_headers_msw)" binary-common
+
+
+.PHONY: build build_all build_arch \
+ clean clean-py purge-release-py purge-dbg-py \
+ binary-indep binary-arch binary binary-common \
+ binary-gtk binary-gtk-dev binary-gtk-dbg \
+ binary-wxbase binary-wxbase-dev binary-wxbase-dbg \
+ binary-doc binary-cross binary-dbg-py \
+ install install_arch install-gtk-lib install-gtk-dev \
+ install-gtk-dbg \
+ install-gtk-py install-gtk-py-tools install-gtk-py-ver \
+ install-gtk-py-lib install-gtk-dbg-py \
+ install-common install-headers install-i18n install-doc \
+ install-examples install-msw-dev install-msw-dbg install-headers-msw
+