$(objdir_gtk_shared) $(objdir_gtk_static) $(objdir_gtk_debug) \
$(objdir_doc) $(objdir_examples)
+# note that the i18n package is actually arch indep (once built)
+# but must be built (and installed) during the arch any phase as
+# it's pulled out of the wxGtk shared lib package.
+
# Build stamps:
build_arch_stamps=build-wxbase-shared-stamp build-wxbase-static-stamp \
build-wxbase-debug-stamp build-gtk-shared-stamp \
build-gtk-static-stamp build-gtk-debug-stamp \
build-contrib-shared-stamp build-contrib-static-stamp \
- build-gtk-py-stamp
+ build-gtk-py-stamp build-i18n-stamp
-build_indep_stamps=build-examples-stamp build-doc-stamp build-i18n-stamp
+build_indep_stamps=build-examples-stamp build-doc-stamp
build_stamps=$(build_arch_stamps) $(build_indep_stamps)
install_all_arch=install-wxbase-lib install-wxbase-dev install-wxbase-dbg \
install-gtk-lib install-gtk-dev install-gtk-dbg \
install-gtk-contrib install-gtk-contrib-dev install-gtk-py \
- install-headers
+ install-headers install-i18n
-install_all_indep=install-i18n install-doc install-examples
+install_all_indep=install-examples install-doc
install_all=$(install_all_arch) $(install_all_indep)
+wxconfig:=$(shell pwd)/$(objdir_gtk_shared)/wx-config \
+ --prefix=$(shell pwd) \
+ --exec-prefix=$(shell pwd)/$(objdir_gtk_shared)
+
+
# The Rules:
debian/control: debian/control.in
touch $@
build_arch: control-files-stamp $(build_arch_stamps)
+build_all: control-files-stamp $(build_stamps)
+
+# do nothing until we know which binary target is called
+build:
-build: control-files-stamp $(build_stamps)
build-wxbase-shared-stamp:
dh_testdir
dh_testdir
touch docs/lgpl.txt
cd wxPython \
- && ./setup.py build IN_CVS_TREE=1
+ && ./setup.py build IN_CVS_TREE=1 WX_CONFIG='$(wxconfig)'
touch $@
build-doc-stamp: build-gtk-shared-stamp
install_arch: build_arch $(install_all_arch)
-install: build $(install_all)
+install: build_all $(install_all)
install-wxbase-lib: DH_OPTIONS=-p$(package_wxbase_lib)
install-wxbase-lib: build-wxbase-shared-stamp
dh_installdirs
binary-common:
- dh_testversion 1.1.17
dh_testdir
dh_testroot
dh_installdocs
dh_strip -N$(package_gtk_dbg) -N$(package_wxbase_dbg)
dh_compress
dh_fixperms
- dh_makeshlibs -N$(package_gtk_py)
+ dh_makeshlibs -N$(package_gtk_py) -V
dh_installdeb
dh_shlibdeps -ldebian/$(package_gtk_lib)/usr/lib
dh_gencontrol
# Build architecture-independent files here.
# Note that you currently can't build the indep packages without first
# building the arch specific package files needed to create them.
-binary-indep: build install
+binary-indep: build_all install
$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
# Build just the architecture-dependent files here.
$(MAKE) -f debian/rules DH_OPTIONS=-p$(package_doc) binary-common
-.PHONY: build build_arch clean binary-indep binary-arch binary binary-common \
+.PHONY: build build_all build_arch clean 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 install install_arch install-wxbase-lib \
install-wxbase-dev install-wxbase-dbg install-gtk-lib install-gtk-dev \