2 # debian/rules file to build packages from wx CVS source
4 # Sculpted 13/2/2000 by Ron Lee <ron@debian.org> from new and
5 # variously stolen code :-)
6 # It makes copious use of the debhelper utilities written by
7 # Joey Hess and others.
12 ifdef CONCURRENCY_LEVEL
14 # A user who knows what they want, that's like gold...
15 # respect their precious opinion of how much blue smoke to use.
16 JOB_COUNT
:= $(CONCURRENCY_LEVEL
)
18 else ifdef DISTCC_HOSTS
20 # Otherwise, if they have a cluster, try to put it to good use.
21 JOB_COUNT
:= $(shell set
$${DISTCC_HOSTS} > /dev
/null
2>&1 ; echo
$$\
#)
23 # Not much faster, but it might keep you warm in winter...
24 #JOB_COUNT := $(shell set $${DISTCC_HOSTS} > /dev/null 2>&1 ; echo $$(($$\# + $$\#)))
29 FAST_MAKE
= $(MAKE
) -j
$(JOB_COUNT
)
34 -include debian
/python-version
37 # If another source package is to supply the common binary packages
38 # for a particular Debian release, then define this variable to indicate
39 # the $(release) that is expected to provide it. Do not define it at
40 # all if this is to be the default (or only) wx source package for the
44 #DEBIAN_WX_DEFAULT_VERSION = 2.6
47 # This will extract a flavour out of the name of the source directory
48 # and flavour the packages and binaries with it. 'Official' builds
49 # should use a source dir of the form wxwidgets$RELEASE-$VERSION.
50 # Flavoured builds may use wxwidgets$RELEASE-$FLAVOUR-$VERSION, where
51 # any descriptive alphanumeric name will do for FLAVOUR. This will
52 # allow a custom build to be installed alongside the mainline ones
53 # without conflict. You will also need to make a corresponding
54 # changelog entry for your flavour source package using:
55 # wxwidget$RELEASE-$FLAVOUR ($VERSION) to satify dpkg-source and
56 # to correctly set the release below.
57 DEBIAN_WXFLAVOUR
:= $(shell pwd | sed
-e
's@.*/wxwidgets[0-9.]\+-\?\(.*\)-[0-9.]\+-\?.*@\1@')
59 release
:= $(shell dpkg-parsechangelog | sed
-n
's/^Source: wxwidgets//p')
61 # This is broken completely now by bakefiles changes. Until we add
62 # some hocus pocus to the main tree, to export these values from it
63 # again, we approximate its behaviour (fairly precisely fwiw) to
64 # specify $soversion below. Re-automate if incompatible changes
65 # result in it actually changing.
66 #soversion := $(shell grep '^WX_CURRENT=' configure.in | sed 's/WX_CURRENT=\([0-9]\+\).*/\1/')
68 sorelease
:= $(release
:%-$(DEBIAN_WXFLAVOUR
)=%)-$(soversion
)$(addprefix -,$(DEBIAN_WXFLAVOUR
))
70 # Base value for alternative priorities.
71 alt_prio
:= $(subst .
,,$(release
))
74 pydir
:= usr
/lib
/$(python_ver
)/site-packages
75 wxpydir
:= $(pydir
)/wx-
$(release
)-$(pytoolkit
)
77 cross_host
:= i586-mingw32msvc
78 cross_build
:= $(shell .
/config.guess
)
80 config_cache
= ..
/config_deb.cache
81 config_cache_cross
= ..
/config_deb_cross.cache
85 COMMON_CONFIGURE_OPTIONS
= \
87 --cache-file
=$(config_cache
) \
88 --with-flavour
=$(DEBIAN_WXFLAVOUR
) \
91 --disable-reserved_virtual \
93 BASE_CONFIGURE_OPTIONS
= $(COMMON_CONFIGURE_OPTIONS
) \
96 GTK_CONFIGURE_OPTIONS
= $(COMMON_CONFIGURE_OPTIONS
) \
108 PY_WX_CONFIG_OPTIONS
= --version
=$(release
) --toolkit
=$(pytoolkit
) --static
=no
113 ifeq ($(WX_UNICODE
),1)
114 COMMON_CONFIGURE_OPTIONS
+= --enable-unicode
115 PY_WX_CONFIG_OPTIONS
+= --unicode
116 PY_UNICODE
="UNICODE=1"
117 wxpydir
:= $(pydir
)/wx-
$(release
)-$(pytoolkit
)-unicode
120 ifeq ($(WX_OPENGL
),1)
121 GTK_CONFIGURE_OPTIONS
+= --with-opengl
123 GTK_CONFIGURE_OPTIONS
+= --without-opengl
127 package_wxbase_lib
:= libwxbase
$(sorelease
)
128 package_wxbase_dev
:= libwxbase
$(release
)-dev
129 package_wxbase_dbg
:= libwxbase
$(release
)-dbg
131 package_gtk_lib
:= libwxgtk
$(sorelease
)
132 package_gtk_dev
:= libwxgtk
$(release
)-dev
133 package_gtk_dbg
:= libwxgtk
$(release
)-dbg
138 package_gtk_py_lib
:= python-wxgtk
$(release
)
139 package_gtk_py_ver
= python-wxversion
140 package_gtk_py_tools
= python-wxtools
142 package_headers
:= wx
$(release
)-headers
143 package_i18n
:= wx
$(release
)-i18n
144 package_doc
:= wx
$(release
)-doc
145 package_examples
:= wx
$(release
)-examples
146 package_common
= wx-common
148 # The packages listed here are common to all wx versions, and may be provided
149 # by another source package if more than one is in the release simultaneously.
150 common_packages
:= $(package_common
) $(package_gtk_py_ver
) $(package_gtk_py_tools
)
153 package_gtk_dbg_py
:= python-wxgtk
$(release
)-dbg
157 package_msw_dev
:= libwxmsw
$(release
)-dev
158 package_msw_dbg
:= libwxmsw
$(release
)-dbg
159 package_headers_msw
:= wx
$(release
)-headers-msw
161 # The packages listed here will not be built by default.
162 extra_packages
:= $(package_gtk_dbg_py
) \
163 $(package_msw_dev
) $(package_msw_dbg
) $(package_headers_msw
)
165 ifdef DEBIAN_WX_DEFAULT_VERSION
167 extra_packages
+= $(common_packages
)
173 objdir_wxbase_shared
= objs_wxbase_sh
174 objdir_wxbase_debug
= objs_wxbase_d
175 objdir_gtk_shared
= objs_gtk_sh
176 objdir_gtk_debug
= objs_gtk_d
177 objdir_gtk_install
= objs_gtk_install
178 objdir_doc_cruft
= objs_doc_con
179 objdir_doc
= docs
/wx-manual.html
180 objdir_examples
= docs
/examples
183 objdir_msw_shared
= objs_msw_sh
184 objdir_msw_static
= objs_msw_st
185 objdir_msw_dbg
= objs_msw_d
186 objdir_msw_install
= objs_msw_install
188 objdirs
:= $(objdir_wxbase_shared
) $(objdir_wxbase_debug
) \
189 $(objdir_gtk_shared
) $(objdir_gtk_debug
) $(objdir_gtk_install
) \
190 $(objdir_doc_cruft
) $(objdir_doc
) $(objdir_examples
) \
191 $(objdir_msw_shared
) $(objdir_msw_static
) $(objdir_msw_dbg
) \
192 $(objdir_msw_install
)
194 # note that the i18n package is actually arch indep (once built)
195 # but must be built (and installed) during the arch any phase as
196 # it's pulled out of the wxGTK shared lib package.
198 # similarly some of the wxpython packages are arch indep too, but
199 # all files for it are installed during the arch any phase.
203 build_arch_stamps
= build-wxbase-shared-stamp build-wxbase-debug-stamp \
204 build-gtk-shared-stamp build-gtk-shared-contrib-stamp \
205 build-gtk-debug-stamp build-gtk-debug-contrib-stamp \
206 build-i18n-stamp build-gtk-py-stamp
208 build_indep_stamps
= build-examples-stamp build-doc-stamp
210 build_cross_stamps
= build-msw-shared-stamp build-msw-static-stamp build-msw-dbg-stamp
212 build_stamps_native
:= $(build_arch_stamps
) $(build_indep_stamps
)
214 build_stamps
:= $(build_stamps_native
) $(build_cross_stamps
)
218 install_all_arch
= install-wxbase-lib install-wxbase-dev install-wxbase-dbg \
219 install-gtk-lib install-gtk-dev install-gtk-dbg \
220 install-headers install-i18n \
223 ifndef DEBIAN_WX_DEFAULT_VERSION
225 install_all_arch
+= install-common
229 install_all_indep
= install-examples install-doc
231 install_all_cross
= install-msw-dev install-msw-dbg install-headers-msw
233 install_all_native
:= $(install_all_arch
) $(install_all_indep
)
235 install_all
:= $(install_all_native
) $(install_all_cross
)
238 # wxPython uses this to build in-tree
239 wxconfig
:= $(shell pwd
)/$(objdir_gtk_shared
)/wx-config
--no_rpath
240 wxconfig-dbg
:= $(shell pwd
)/$(objdir_gtk_debug
)/wx-config
--no_rpath
242 # and this after it is installed.
243 py_wxconfig
:= wx-config
$(PY_WX_CONFIG_OPTIONS
) --debug
=no
244 pyd_wxconfig
:= wx-config
$(PY_WX_CONFIG_OPTIONS
) --debug
247 #contrib_libs := $(subst CVS,,$(notdir $(wildcard contrib/include/wx/*)))
252 debian
/python-version
:
253 echo python_ver
:= python
$(shell python
-c
"import sys;print sys.version[:3]") > $@
255 debian
/control
: $(addprefix debian
/,control.in python-version
)
256 sed
-e
's/=V/$(release)/g;s/=SOV/$(sorelease)/g;s/=PY/$(python_ver)/g'\
257 < debian
/control.in
> debian
/control
259 control-files-stamp
: debian
/control
261 @for f in postinst prerm
; do \
262 echo
"generating control file $(package_wxbase_dev).$$f"; \
263 sed
-e
's/=V/$(release)/g; '\
264 ' s/=PRIO/$(alt_prio)/g' \
265 < debian
/libwxbase-dev.
$$f \
266 > debian
/$(package_wxbase_dev
).
$$f; \
268 @for f in postinst prerm
; do \
269 echo
"generating control file $(package_wxbase_dbg).$$f"; \
270 sed
-e
's/=V/$(release)/g; '\
271 ' s/=PRIO/$(alt_prio)/g' \
272 < debian
/libwxbase-dbg.
$$f \
273 > debian
/$(package_wxbase_dbg
).
$$f; \
275 @for f in postinst prerm
; do \
276 echo
"generating control file $(package_gtk_dev).$$f"; \
277 sed
-e
's/=V/$(release)/g; '\
278 ' s/=PRIO/$(alt_prio)/g' \
279 < debian
/libwxgtk-dev.
$$f \
280 > debian
/$(package_gtk_dev
).
$$f; \
282 @for f in postinst prerm
; do \
283 echo
"generating control file $(package_gtk_dbg).$$f"; \
284 sed
-e
's/=V/$(release)/g; '\
285 ' s/=PRIO/$(alt_prio)/g' \
286 < debian
/libwxgtk-dbg.
$$f \
287 > debian
/$(package_gtk_dbg
).
$$f; \
289 @for f in docs postinst prerm
; do \
290 echo
"generating control file $(package_gtk_py_lib).$$f"; \
291 sed
-e
's/=PY/$(python_ver)/g; '\
292 ' s|=WXPYDIR|$(wxpydir)|g; '\
293 ' s/=V/$(release)/g; '\
294 ' s/=PRIO/$(alt_prio)/g' \
295 < debian
/python-wxgtk.
$$f \
296 > debian
/$(package_gtk_py_lib
).
$$f; \
298 @for f in postinst prerm
; do \
299 echo
"generating control file $(package_gtk_dbg_py).$$f"; \
300 sed
-e
's/=PY/$(python_ver)/g; '\
301 ' s/=V/$(release)/g; '\
302 ' s/=PRIO/$(alt_prio)/g' \
303 < debian
/python-wxgtk-dbg.
$$f \
304 > debian
/$(package_gtk_dbg_py
).
$$f; \
306 @echo
"generating control file $(package_gtk_dbg_py).docs";
307 @cp debian
/python-wxgtk.docs debian
/$(package_gtk_dbg_py
).docs
;
308 @for f in docs doc-base
; do \
309 echo
"generating control file $(package_doc).$$f"; \
310 sed
-e
's/=V/$(release)/g' < debian
/wx-doc.
$$f \
311 > debian
/$(package_doc
).
$$f; \
313 @for f in examples
; do \
314 echo
"generating control file $(package_examples).$$f"; \
315 cp debian
/wx-examples.
$$f debian
/$(package_examples
).
$$f; \
317 @for f in postinst prerm
; do \
318 echo
"generating control file $(package_msw_dev).$$f"; \
319 sed
-e
's/=V/$(release)/g; '\
320 ' s/=H/$(cross_host)/g; '\
321 ' s/=PRIO/$(alt_prio)/g' \
322 < debian
/libwxmsw-dev.
$$f \
323 > debian
/$(package_msw_dev
).
$$f; \
325 @for f in postinst prerm
; do \
326 echo
"generating control file $(package_msw_dbg).$$f"; \
327 sed
-e
's/=V/$(release)/g; '\
328 ' s/=H/$(cross_host)/g; '\
329 ' s/=PRIO/$(alt_prio)/g' \
330 < debian
/libwxmsw-dbg.
$$f \
331 > debian
/$(package_msw_dbg
).
$$f; \
333 # @echo "generating control file $(package_common).menu"; \
334 # sed -e 's/=V/$(release)/g' < debian/wx-common.menu \
335 # > debian/$(package_common).menu;
336 @echo
"generating control file lintian-override"; \
337 sed
-e
's/=V/$(release)/g; '\
338 ' s/=SOV/$(sorelease)/g' \
339 < debian
/lintian-override.in \
340 > debian
/lintian-override
; \
343 build_arch
: control-files-stamp
$(build_arch_stamps
)
344 build_all
: control-files-stamp
$(build_stamps_native
)
346 # Really we should probably do nothing here until we know which
347 # binary target is being called, but alpha builds were exploding
348 # (compiler segfaults) in random places when building under fakeroot
349 # from the binary-arch target. Build all -arch files here then, and
350 # let the -indep stuff fend for itself later.
355 # The wx2.6 build system makes us run around in circles to get a separate
356 # libwxbase. We need to configure it here in order to get the correct
357 # config files to use it alone, but there is no point building it as the
358 # wxgtk build is going to do that again anyway. We'll move the relevant
359 # files out when that is done.
361 configure-wxbase-shared-stamp
:
363 mkdir
-p
$(objdir_wxbase_shared
)
364 cd
$(objdir_wxbase_shared
) \
365 && ..
/configure
$(BASE_CONFIGURE_OPTIONS
)
368 build-wxbase-shared-stamp
: configure-wxbase-shared-stamp
370 # Nothing to build here, move along...
371 #cd $(objdir_wxbase_shared) && $(FAST_MAKE)
374 configure-wxbase-debug-stamp
:
376 mkdir
-p
$(objdir_wxbase_debug
)
377 cd
$(objdir_wxbase_debug
) \
378 && ..
/configure
$(BASE_CONFIGURE_OPTIONS
) --enable-debug
381 build-wxbase-debug-stamp
: configure-wxbase-debug-stamp
383 # Nothing to build here, move along...
384 #cd $(objdir_wxbase_debug) && $(FAST_MAKE)
387 configure-gtk-shared-stamp
:
389 mkdir
-p
$(objdir_gtk_shared
)
390 cd
$(objdir_gtk_shared
) \
391 && ..
/configure
$(GTK_CONFIGURE_OPTIONS
)
394 build-gtk-shared-stamp
: configure-gtk-shared-stamp
396 cd
$(objdir_gtk_shared
) && $(FAST_MAKE
)
400 configure-gtk-debug-stamp
:
402 mkdir
-p
$(objdir_gtk_debug
)
403 cd
$(objdir_gtk_debug
) \
404 && ..
/configure
$(GTK_CONFIGURE_OPTIONS
) --enable-debug
407 build-gtk-debug-stamp
: configure-gtk-debug-stamp
409 cd
$(objdir_gtk_debug
) && $(FAST_MAKE
)
413 build-gtk-shared-contrib-stamp
: build-gtk-shared-stamp
415 cd
$(objdir_gtk_shared
)/contrib
/src
&& $(FAST_MAKE
)
416 cd
$(objdir_gtk_shared
)/utils
/wxrc
&& $(FAST_MAKE
)
420 build-gtk-debug-contrib-stamp
: build-gtk-debug-stamp
422 cd
$(objdir_gtk_debug
)/contrib
/src
&& $(FAST_MAKE
)
427 @if
[ ! -e build-gtk-py-stamp
]; then \
428 $(MAKE
) -f debian
/rules clean-py
; \
430 $(RM
) build-gtk-dbg-py-stamp
432 build-gtk-py-stamp
: build-gtk-shared-stamp purge-dbg-py
436 && $(python_ver
) .
/setup.py build \
437 WX_CONFIG
='$(wxconfig)' \
438 WXPORT
=$(pytoolkit
) \
440 FLAVOUR
=$(DEBIAN_WXFLAVOUR
)
443 build-doc-stamp
: build-gtk-shared-stamp
445 cd
$(objdir_gtk_shared
)/utils
/tex2rtf
/src
&& $(FAST_MAKE
)
447 rm -rf
$(objdir_doc_cruft
)
449 mkdir
$(objdir_doc_cruft
)
450 cd
$(objdir_doc_cruft
) \
451 && LD_LIBRARY_PATH
=..
/$(objdir_gtk_shared
)/lib
:$(LD_LIBRARY_PATH
) \
452 ..
/$(objdir_gtk_shared
)/utils
/tex2rtf
/src
/tex2rtf \
453 ..
/docs
/latex
/wx
/manual.
tex \
454 ..
/$(objdir_doc
)/wx
$(release
)-manual.html \
456 cp docs
/latex
/wx
/*.gif
$(objdir_doc
)
457 rm -rf
$(objdir_doc_cruft
)
458 rm -f
$(objdir_doc
)/wx
$(release
)-manual.
{con
,hh
*,htx
,ref
}
461 build-examples-stamp
: build-gtk-shared-stamp
463 mkdir
-p
$(objdir_examples
)
465 # copy all samples and the Makefile generated for libwxgtk.
466 cp
-a samples
$(objdir_examples
)
467 rm -f
$(objdir_examples
)/samples
/Makefile
468 cp
-a
$(objdir_gtk_shared
)/samples
/Makefile
$(objdir_examples
)/samples
470 cd
$(objdir_examples
)/samples \
471 && find
-name
'Makefile.in' -exec
rm -f
'{}' ';' \
472 && for d in
$$(find
-type d
); do \
473 if
[ -f
$$d/makefile.unx
]; then \
474 mv
$$d/makefile.unx
$$d/Makefile
; \
478 cp
-a wxPython
/demo
$(objdir_examples
)/wxPython
480 echo
"generating install_examples.sh script";
481 sed
-e
's/=V/$(release)/g' < debian
/unpack_examples.sh.in \
482 > debian
/unpack_examples.sh
483 chmod
755 debian
/unpack_examples.sh
487 build-i18n-stamp
: build-gtk-shared-stamp
490 # touch .po files first, since if they are not already up
491 # to date then _now_ is not the time to fix it.
492 # That should have been been done before cvs was tagged.
499 @if
[ ! -e build-gtk-dbg-py-stamp
]; then \
500 $(MAKE
) -f debian
/rules clean-py
; \
502 $(RM
) build-gtk-py-stamp
504 build-gtk-dbg-py-stamp
: build-gtk-debug-stamp purge-release-py
508 && $(python_ver
) .
/setup.py build \
509 WX_CONFIG
='$(wxconfig-dbg)' \
510 WXPORT
=$(pytoolkit
) \
512 FLAVOUR
=$(addsuffix -,$(DEBIAN_WXFLAVOUR
))dbg
516 configure-msw-shared-stamp
:
518 mkdir
-p
$(objdir_msw_shared
)
519 cd
$(objdir_msw_shared
) \
520 && ..
/configure
--prefix=/usr
/$(cross_host
) \
521 --cache-file
=$(config_cache_cross
) \
522 --host
=$(cross_host
) \
523 --build
=$(cross_build
) \
524 --with-flavour
=$(DEBIAN_WXFLAVOUR
)
527 build-msw-shared-stamp
: configure-msw-shared-stamp
529 cd
$(objdir_msw_shared
) && $(FAST_MAKE
)
532 configure-msw-static-stamp
:
534 mkdir
-p
$(objdir_msw_static
)
535 cd
$(objdir_msw_static
) \
536 && ..
/configure
--prefix=/usr
/$(cross_host
) \
537 --cache-file
=$(config_cache_cross
) \
538 --host
=$(cross_host
) \
539 --build
=$(cross_build
) \
540 --with-flavour
=$(DEBIAN_WXFLAVOUR
) \
544 build-msw-static-stamp
: configure-msw-static-stamp
546 cd
$(objdir_msw_static
) && $(FAST_MAKE
)
549 configure-msw-dbg-stamp
:
551 mkdir
-p
$(objdir_msw_dbg
)
552 cd
$(objdir_msw_dbg
) \
553 && ..
/configure
--prefix=/usr
/$(cross_host
) \
554 --cache-file
=$(config_cache_cross
) \
555 --host
=$(cross_host
) \
556 --build
=$(cross_build
) \
557 --with-flavour
=$(DEBIAN_WXFLAVOUR
) \
561 build-msw-dbg-stamp
: configure-msw-dbg-stamp
563 cd
$(objdir_msw_dbg
) && $(FAST_MAKE
)
568 cd wxPython
&& rm -rf licence build
* docs
/xml-raw wx
/*.py
570 # What to do about src/__version__.py ???
573 # We do the equivalent of this above by removing build, unfortunately
574 # its not enough by itself to get the tree properly clean again.
575 # && ./setup.py clean
577 clean: debian
/control clean-py
581 rm -rf config_deb.cache config_deb_cross.cache
*-stamp
$(objdirs
)
583 rm -f
$(objdir_i18n
)/*.mo
586 rm -f debian
/$(package_wxbase_lib
).
*
587 rm -f debian
/$(package_wxbase_dev
).
*
588 rm -f debian
/$(package_wxbase_dbg
).
*
589 rm -f debian
/$(package_gtk_lib
).
*
590 rm -f debian
/$(package_gtk_dev
).
*
591 rm -f debian
/$(package_gtk_dbg
).
*
592 rm -f debian
/$(package_gtk_py_lib
).
*
593 rm -f debian
/$(package_headers
).
*
594 rm -f debian
/$(package_i18n
).
*
595 rm -f debian
/$(package_doc
).
*
596 rm -f debian
/$(package_examples
).
*
597 rm -f debian
/$(package_gtk_dbg_py
).
*
598 rm -f debian
/$(package_msw_dev
).
*
599 rm -f debian
/$(package_msw_dbg
).
*
600 rm -f debian
/lintian-override
601 rm -f debian
/unpack_examples.sh
603 install_arch
: build_arch
$(install_all_arch
)
605 install: build_all
$(install_all_native
)
608 install-wxbase-lib
: DH_OPTIONS
=-p
$(package_wxbase_lib
)
609 install-wxbase-lib
: build-wxbase-shared-stamp install-gtk-shared-stamp
613 @
# No, this is not a typo, we steal these libs from the gtk build.
614 dh_install
$(objdir_gtk_install
)/lib
/libwx_base
*.so.
* usr
/lib
615 dh_installdirs usr
/share
/lintian
/overrides
616 cp debian
/lintian-override debian
/$(package_wxbase_lib
)/usr
/share
/lintian
/overrides
/$(package_wxbase_lib
)
618 install-wxbase-dev
: DH_OPTIONS
=-p
$(package_wxbase_dev
)
619 install-wxbase-dev
: build-wxbase-shared-stamp install-gtk-shared-stamp
623 @
# No, this is not a typo, we steal these libs from the gtk build.
624 dh_install
$(objdir_gtk_install
)/lib
/libwx_base
*.so usr
/lib
625 dh_install
$(objdir_wxbase_shared
)/lib
/wx
/include usr
/lib
/wx
626 dh_install
$(objdir_wxbase_shared
)/lib
/wx
/config
/base
* usr
/lib
/wx
/config
628 install-wxbase-dbg
: DH_OPTIONS
=-p
$(package_wxbase_dbg
)
629 install-wxbase-dbg
: build-wxbase-debug-stamp
633 @
# No, this is not a typo, we steal these libs from the gtk debug build.
634 dh_install
$(objdir_gtk_debug
)/lib
/libwx_base
* usr
/lib
635 dh_install
$(objdir_wxbase_debug
)/lib
/wx
/include usr
/lib
/wx
636 dh_install
$(objdir_wxbase_debug
)/lib
/wx
/config
/base
* usr
/lib
/wx
/config
637 dh_installdirs usr
/share
/lintian
/overrides
638 cp debian
/lintian-override debian
/$(package_wxbase_dbg
)/usr
/share
/lintian
/overrides
/$(package_wxbase_dbg
)
640 install-gtk-shared-stamp
: build-gtk-shared-stamp build-gtk-shared-contrib-stamp
642 mkdir
-p
$(objdir_gtk_install
)
643 cd
$(objdir_gtk_shared
) \
644 && $(MAKE
) install prefix=`pwd`/..
/$(objdir_gtk_install
)
645 cd
$(objdir_gtk_shared
)/contrib
/src \
646 && $(MAKE
) install prefix=`pwd`/..
/..
/..
/$(objdir_gtk_install
)
649 install-gtk-lib
: DH_OPTIONS
=-p
$(package_gtk_lib
)
650 install-gtk-lib
: install-gtk-shared-stamp
654 dh_install
$(objdir_gtk_install
)/lib
/libwx_gtk
*.so.
* usr
/lib
655 dh_installdirs usr
/share
/lintian
/overrides
656 cp debian
/lintian-override debian
/$(package_gtk_lib
)/usr
/share
/lintian
/overrides
/$(package_gtk_lib
)
658 install-gtk-dev
: DH_OPTIONS
=-p
$(package_gtk_dev
)
659 install-gtk-dev
: install-gtk-shared-stamp
663 dh_install
$(objdir_gtk_install
)/lib
/libwx_gtk
*.so usr
/lib
664 dh_install
$(objdir_gtk_install
)/lib
/wx
/include usr
/lib
/wx
665 dh_install
$(objdir_gtk_install
)/lib
/wx
/config
/gtk
* usr
/lib
/wx
/config
667 install-gtk-dbg
: DH_OPTIONS
=-p
$(package_gtk_dbg
)
668 install-gtk-dbg
: build-gtk-debug-stamp build-gtk-debug-contrib-stamp
672 dh_install
$(objdir_gtk_debug
)/lib
/libwx_gtk
* usr
/lib
673 dh_install
$(objdir_gtk_debug
)/lib
/wx
/include usr
/lib
/wx
674 dh_install
$(objdir_gtk_debug
)/lib
/wx
/config
/gtk
* usr
/lib
/wx
/config
675 dh_installdirs usr
/share
/lintian
/overrides
676 cp debian
/lintian-override debian
/$(package_gtk_dbg
)/usr
/share
/lintian
/overrides
/$(package_gtk_dbg
)
679 install-gtk-py-lib
: DH_OPTIONS
=-p
$(package_gtk_py_lib
)
680 install-gtk-py-lib
: build-gtk-py-stamp
684 dh_installdirs usr
/lib
/wx
/python
686 && $(python_ver
) .
/setup.py
install \
687 --prefix=`pwd`/..
/debian
/$(package_gtk_py_lib
)/usr \
688 WX_CONFIG
='$(wxconfig)' \
689 SYS_WX_CONFIG
='$(py_wxconfig)' \
690 WXPORT
=$(pytoolkit
) \
692 FLAVOUR
=$(DEBIAN_WXFLAVOUR
)
694 mv debian
/$(package_gtk_py_lib
)/$(pydir
)/wx.pth \
695 debian
/$(package_gtk_py_lib
)/usr
/lib
/wx
/python
/wx
$(release
).pth
697 find debian
/$(package_gtk_py_lib
)/$(pydir
) -name
'*.py?' -exec
rm '{}' ';'
699 # This is rather bogus, its included in the main copyright file now though.
700 rm -f debian
/$(package_gtk_py_lib
)/$(wxpydir
)/wx
/tools
/XRCed
/license.txt
702 install-gtk-py-ver
: DH_OPTIONS
=-p
$(package_gtk_py_ver
)
703 install-gtk-py-ver
: install-gtk-py-lib
708 ifndef DEBIAN_WX_DEFAULT_VERSION
710 dh_movefiles
--sourcedir
=debian
/$(package_gtk_py_lib
) $(pydir
)/wxversion.py
712 rm debian
/$(package_gtk_py_lib
)/$(pydir
)/wxversion.py
715 install-gtk-py-tools
: DH_OPTIONS
=-p
$(package_gtk_py_tools
)
716 install-gtk-py-tools
: install-gtk-py-ver
721 ifndef DEBIAN_WX_DEFAULT_VERSION
723 dh_movefiles
--sourcedir
=debian
/$(package_gtk_py_lib
) usr
/bin
725 dh_installman debian
/wxPython-tools
.1
726 dh_link usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/img2py
.1 \
727 usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/img2xpm
.1 \
728 usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/img2png
.1 \
729 usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/pycrust
.1 \
730 usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/pyshell
.1 \
731 usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/xrced
.1 \
732 usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/helpviewer
.1 \
733 usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/pyalacarte
.1 \
734 usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/pyalamode
.1 \
735 usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/pywrap
.1 \
736 usr
/share
/man
/man1
/wxPython-tools
.1 usr
/share
/man
/man1
/pywxrc
.1
738 dh_installdirs usr
/share
/lintian
/overrides
739 cp debian
/lintian-override debian
/$(package_gtk_py_tools
)/usr
/share
/lintian
/overrides
/$(package_gtk_py_tools
)
741 mkdir
-p debian
/$(package_gtk_py_tools
)/usr
/share
/pixmaps
742 mkdir
-p debian
/$(package_gtk_py_tools
)/usr
/share
/applications
744 cp wxPython
/wx
/py
/PyCrust_32.png debian
/$(package_gtk_py_tools
)/usr
/share
/pixmaps
/pycrust.png
745 cp wxPython
/wx
/py
/PyCrust_32.png debian
/$(package_gtk_py_tools
)/usr
/share
/pixmaps
/pyshell.png
746 cp wxPython
/wx
/tools
/XRCed
/XRCed_32.png debian
/$(package_gtk_py_tools
)/usr
/share
/pixmaps
/xrced.png
747 cp debian
/pycrust.desktop debian
/$(package_gtk_py_tools
)/usr
/share
/applications
748 cp debian
/pyshell.desktop debian
/$(package_gtk_py_tools
)/usr
/share
/applications
749 cp debian
/xrced.desktop debian
/$(package_gtk_py_tools
)/usr
/share
/applications
751 rm -r debian
/$(package_gtk_py_lib
)/usr
/bin
753 install-gtk-py
: install-gtk-py-tools
756 install-common
: DH_OPTIONS
=-p
$(package_common
)
757 install-common
: install-gtk-shared-stamp
762 dh_install
$(objdir_gtk_install
)/share
/aclocal usr
/share
763 dh_installman debian
/wx-config
.1
765 dh_install
$(objdir_gtk_shared
)/utils
/wxrc
/wxrc usr
/bin
766 dh_installman debian
/wxrc-tools
.1
767 dh_link usr
/share
/man
/man1
/wxrc-tools
.1 usr
/share
/man
/man1
/wxrc
.1
770 install-headers
: DH_OPTIONS
=-p
$(package_headers
)
771 install-headers
: install-gtk-shared-stamp
776 # The only way to be really sure we get the univ headers correct is to install
777 # them. Do that in a scratch dirs, and move the gtk ones last, so at least
778 # they win in the result of any uncaught conflict.
780 # cd $(objdir_gtk_univ) \
781 # && $(MAKE) install prefix=`pwd`/../$(objdir_univ_install)/usr
783 # dh_movefiles --sourcedir=$(objdir_univ_install)
784 dh_install
$(objdir_gtk_install
)/include usr
786 install-i18n
: DH_OPTIONS
=-p
$(package_i18n
)
787 install-i18n
: build-i18n-stamp install-gtk-shared-stamp
791 dh_install
$(objdir_gtk_install
)/share
/locale usr
/share
793 install-doc
: DH_OPTIONS
=-p
$(package_doc
)
794 install-doc
: build-doc-stamp
799 @
# Link this monstrosity with an overly obfuscated name
800 @
# to something that both people and browsers can expect to find.
801 dh_link usr
/share
/doc
/$(package_doc
)/wx-manual.html
/wx-
$(release
)-manual_contents.html \
802 usr
/share
/doc
/$(package_doc
)/wx-manual.html
/index.html
804 install-examples
: DH_OPTIONS
=-p
$(package_examples
)
805 install-examples
: build-examples-stamp
810 install-gtk-dbg-py
: DH_OPTIONS
=-p
$(package_gtk_dbg_py
)
811 install-gtk-dbg-py
: build-gtk-dbg-py-stamp
815 dh_installdirs usr
/lib
/wx
/python
817 && $(python_ver
) .
/setup.py
install \
818 --prefix=`pwd`/..
/debian
/$(package_gtk_dbg_py
)/usr \
819 WX_CONFIG
='$(wxconfig-dbg)' \
820 SYS_WX_CONFIG
='$(pyd_wxconfig)' \
821 WXPORT
=$(pytoolkit
) \
823 FLAVOUR
=$(addsuffix -,$(DEBIAN_WXFLAVOUR
))dbg
825 mv debian
/$(package_gtk_py_lib
)/$(pydir
)/wx.pth \
826 debian
/$(package_gtk_py_lib
)/usr
/lib
/wx
/python
/wx
$(release
)-dbg.pth
828 find debian
/$(package_gtk_dbg_py
)/$(pydir
) -name
'*.py?' -exec
rm '{}' ';'
829 rm -rf usr
/bin
$(pydir
)/{wxversion.py
,wx.pth
}
831 # This is rather bogus, its included in the main copyright file now though.
832 rm -f debian
/$(package_gtk_dbg_py
)/$(wxpydir
)/wx
/tools
/XRCed
/license.txt
835 install-msw-dev
: DH_OPTIONS
=-p
$(package_msw_dev
)
836 install-msw-dev
: build-msw-shared-stamp build-msw-static-stamp
840 dh_install
$(objdir_msw_shared
)/lib
/*.dll
* usr
/$(cross_host
)/lib
841 dh_install
$(objdir_msw_shared
)/lib
/wx
/include usr
/$(cross_host
)/lib
/wx
842 dh_install
$(objdir_msw_shared
)/lib
/wx
/config
/$(cross_host
)* usr
/$(cross_host
)/lib
/wx
/config
843 dh_install
$(objdir_msw_static
)/lib
/*.a usr
/$(cross_host
)/lib
844 dh_install
$(objdir_msw_static
)/lib
/wx
/include usr
/$(cross_host
)/lib
/wx
845 dh_install
$(objdir_msw_static
)/lib
/wx
/config
/$(cross_host
)* usr
/$(cross_host
)/lib
/wx
/config
846 $(cross_host
)-strip --strip-debug debian
/$(package_msw_dev
)/usr
/$(cross_host
)/lib
/*.a
848 @
# As a special case for the cross packages, we link their config
849 @
# under /usr as well as under the normal cross prefix. This way
850 @
# --prefix=/usr/$(cross_host) and --prefix=/usr --host=$(cross_host)
851 @
# will have a congruent effect on wx-config.
852 @
( for f in
`ls -1 debian/$(package_msw_dev)/usr/$(cross_host)/lib/wx/config`; do \
853 all_cfg
="$${all_cfg} usr/$(cross_host)/lib/wx/config/$$f usr/lib/wx/config/$$f"; \
854 echo
"linking cross config /usr/$(cross_host)/lib/wx/config/$$f"; \
856 dh_link
$${all_cfg}; \
859 install-msw-dbg
: DH_OPTIONS
=-p
$(package_msw_dbg
)
860 install-msw-dbg
: build-msw-dbg-stamp
864 dh_install
$(objdir_msw_dbg
)/lib
/*.dll
* usr
/$(cross_host
)/lib
865 dh_install
$(objdir_msw_dbg
)/lib
/wx
/include usr
/$(cross_host
)/lib
/wx
866 dh_install
$(objdir_msw_dbg
)/lib
/wx
/config
/$(cross_host
)* usr
/$(cross_host
)/lib
/wx
/config
867 # No static lib, they're freakin' huge!
868 #$(cross_host)-strip --strip-debug debian/$(package_msw_dbg)/usr/$(cross_host)/lib/*.a
870 @
( for f in
`ls -1 debian/$(package_msw_dbg)/usr/$(cross_host)/lib/wx/config`; do \
871 all_cfg
="$${all_cfg} usr/$(cross_host)/lib/wx/config/$$f usr/lib/wx/config/$$f"; \
872 echo
"linking cross config /usr/$(cross_host)/lib/wx/config/$$f"; \
874 dh_link
$${all_cfg}; \
877 install-headers-msw
: DH_OPTIONS
=-p
$(package_headers_msw
)
883 cd
$(objdir_msw_shared
) \
884 && $(MAKE
) install prefix=`pwd`/..
/$(objdir_msw_install
)
886 # Symlink all the headers that will be installed by the main -headers
887 # package to where the cross compiler will expect them.
888 @
( for f in
`ls -1 $(objdir_msw_install)/include/wx-$(release)/wx`; do \
889 all_h
="$${all_h} usr/include/wx-$(release)/wx/$$f usr/$(cross_host)/include/wx-$(release)/wx/$$f"; \
890 echo
"linking header /usr/include/wx-$(release)/wx/$$f"; \
895 # But install this lot for real.
896 rm -f debian
/$(package_headers_msw
)/usr
/$(cross_host
)/include/wx-
$(release
)/wx
/msw
897 dh_install
$(objdir_msw_install
)/include/wx-
$(release
)/wx
/msw usr
/$(cross_host
)/include/wx-
$(release
)/wx
909 @
# Don't strip debug libs at all, and strip cross libs elsewhere
910 @
# with the cross host tools until dh_strip gets smarter.
911 dh_strip
-N
$(package_gtk_dbg
) -N
$(package_wxbase_dbg
) \
912 -N
$(package_msw_dev
) -N
$(package_msw_dbg
)
917 @
# Don't do this for the dbg-py special build because dh_makeshlibs
918 @
# will crap out if it is called with no packages to act on.
919 @if
[ "x$(DH_OPTIONS)" != "-p$(package_gtk_dbg_py)" ]; then \
920 echo
"dh_makeshlibs -N$(package_gtk_py_lib) -V"; \
921 dh_makeshlibs
-N
$(package_gtk_py_lib
) -V
; \
925 dh_shlibdeps
-ldebian
/$(package_gtk_lib
)/usr
/lib
:debian
/$(package_gtk_dbg
)/usr
/lib
930 # Build architecture-independent files here.
931 # Note that you currently can't build the indep packages without first
932 # building the arch specific package files needed to create them.
933 binary-indep
: build_all
install
934 $(MAKE
) -f debian
/rules \
935 DH_OPTIONS
="-i $(addprefix -N,$(extra_packages))" \
938 # Build just the architecture-dependent files here.
939 binary-arch
: build_arch install_arch
940 $(MAKE
) -f debian
/rules \
941 DH_OPTIONS
="-a $(addprefix -N,$(extra_packages))" \
944 # Build all packages target.
945 binary
: binary-arch binary-indep
948 # This is a special target for building the wxMSW-cross packages.
949 # It's not currently called during the official package build run
950 # but may be run separately to build the extra packages.
951 # There is an implied build dep on the mingw32 cross compiler
952 # that is not in the control file.
953 binary-cross
: control-files-stamp
$(install_all_cross
)
954 $(MAKE
) -f debian
/rules \
955 DH_OPTIONS
="-p$(package_msw_dev) -p$(package_msw_dbg) -p$(package_headers_msw)" \
959 # Build wxPython against libwxgtk-dbg. This package will conflict
960 # with the release build one, but may be useful to some people.
961 binary-dbg-py
: control-files-stamp install-gtk-dbg-py
962 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_gtk_dbg_py)" binary-common
965 ############################################################################
967 # Some rules to build a subset of the complete list of packages that can be
968 # built from CVS. Beware that packages produced with these rules may *NOT*
969 # be compatible with packages built using the 'binary' target or even with
970 # Debian policy. Do not distribute packages built with these rules, they
971 # are currently useful for rapid in-house testing by developers only.
973 # libwxgtk shared lib package
974 binary-gtk
: control-files-stamp install-gtk-lib install-headers
975 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_gtk_lib) -p$(package_headers)" binary-common
977 binary-gtk-dev
: control-files-stamp install-gtk-dev install-headers
978 $(MAKE
) -f debian
/rules \
979 DH_OPTIONS
="-p$(package_gtk_lib) -p$(package_gtk_dev) -p$(package_headers)" \
982 binary-gtk-dbg
: control-files-stamp install-gtk-dbg install-headers
983 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_gtk_dbg) -p$(package_headers)" binary-common
987 binary-doc
: control-files-stamp install-doc
988 $(MAKE
) -f debian
/rules DH_OPTIONS
=-p
$(package_doc
) binary-common
990 binary-fast
:control-files-stamp install-gtk-dbg install-msw-dev install-headers install-headers-msw
991 $(MAKE
) -f debian
/rules DH_OPTIONS
="-p$(package_gtk_dbg) -p$(package_msw_dev) -p$(package_headers) -p$(package_headers_msw)" binary-common
994 .PHONY
: build build_all build_arch \
995 clean clean-py purge-release-py purge-dbg-py \
996 binary-indep binary-arch binary binary-common \
997 binary-gtk binary-gtk-dev binary-gtk-dbg \
998 binary-wxbase binary-wxbase-dev binary-wxbase-dbg \
999 binary-doc binary-cross binary-dbg-py \
1000 install install_arch install-gtk-lib install-gtk-dev \
1002 install-gtk-py install-gtk-py-tools install-gtk-py-ver \
1003 install-gtk-py-lib install-gtk-dbg-py \
1004 install-common install-headers install-i18n install-doc \
1005 install-examples install-msw-dev install-msw-dbg install-headers-msw