]> git.saurik.com Git - wxWidgets.git/blob - debian/rules
added myself for spanish translation :-)
[wxWidgets.git] / debian / rules
1 #!/usr/bin/make -f
2 # debian/rules file to build packages from wxWindows CVS source
3 #
4 # Sculpted 13/2/2000 by Ron Lee <ron@debian.org> from new and
5 # variously stolen code :-)
6 # (including a debhelper template, GNU copyright 1997 to 1999 by
7 # Joey Hess, and some ideas found in the ncurses rules file that
8 # I quite liked)
9
10 #export DH_VERBOSE=1
11 export DH_COMPAT=2
12
13 # Change this when the release version changes and
14 # touch control.in to propagate the change.
15 release=2.1
16
17 # These are the packages we will build
18 package_gtk_lib=libwxgtk$(release)
19 package_gtk_dev=libwxgtk$(release)-dev
20
21 # Dirs to put the various builds object files in
22 objdir_gtk_shared=objs_gtk_sh
23 objdir_gtk_static=objs_gtk_st
24
25 objdirs=$(objdir_gtk_shared) $(objdir_gtk_static)
26
27 build_stamps=build-gtk-shared-stamp build-gtk-static-stamp
28
29
30 debian/control: debian/control.in
31 sed -e 's/=V/$(release)/g' < debian/control.in > debian/control
32
33 build: debian/control $(build_stamps)
34
35 build-gtk-shared-stamp:
36 dh_testdir
37 mkdir $(objdir_gtk_shared)
38 cd $(objdir_gtk_shared) \
39 && ../configure --prefix=/usr --with-gtk \
40 && $(MAKE)
41 touch $@
42
43 build-gtk-static-stamp:
44 dh_testdir
45 mkdir $(objdir_gtk_static)
46 cd $(objdir_gtk_static) \
47 && ../configure --prefix=/usr --with-gtk --disable-shared \
48 && $(MAKE)
49 touch $@
50
51 clean: debian/control
52 dh_testdir
53 dh_testroot
54 -rm -rf $(build_stamps) $(objdirs)
55 dh_clean
56 -rm -f debian/$(package_gtk_lib).*
57 -rm -f debian/$(package_gtk_dev).*
58
59 install: build
60 @for f in dirs docs files postinst; do \
61 echo "generating control file $(package_gtk_lib).$$f"; \
62 cp debian/libwxgtk.$$f debian/$(package_gtk_lib).$$f; \
63 done;
64 @for f in dirs docs files; do \
65 echo "generating control file $(package_gtk_dev).$$f"; \
66 cp debian/libwxgtk-dev.$$f debian/$(package_gtk_dev).$$f; \
67 done;
68 dh_testdir
69 dh_testroot
70 dh_clean -k
71 dh_installdirs
72 cd $(objdir_gtk_shared) \
73 && $(MAKE) install prefix=`pwd`/../debian/tmp/usr
74 cp $(objdir_gtk_static)/lib/*.a debian/tmp/usr/lib
75 dh_movefiles
76
77
78 # Build architecture-independent files here.
79 binary-indep: build install
80 # nothing to do.
81
82 # Build architecture-dependent files here.
83 binary-arch: build install
84 dh_testdir
85 dh_testroot
86 dh_installdocs
87 dh_installmanpages -p$(package_gtk_dev) \
88 ansi2knr.1 \
89 jpegtran.1 \
90 libpng.3 \
91 libpngpf.3 \
92 zlib.3 \
93 png.5
94 dh_installchangelogs
95 dh_strip
96 dh_compress
97 dh_fixperms
98 dh_makeshlibs
99 dh_installdeb
100 dh_shlibdeps
101 dh_gencontrol
102 dh_md5sums
103 dh_builddeb
104
105 binary: binary-indep binary-arch
106 .PHONY: build clean binary-indep binary-arch binary install