2 # debian/rules file to build packages from wxWindows CVS source
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
13 # Change this when the release version changes and
14 # touch control.in to propagate the change.
17 # These are the packages we will build
18 package_gtk_lib
=libwxgtk
$(release
)
19 package_gtk_dev
=libwxgtk
$(release
)-dev
21 # Dirs to put the various builds object files in
22 objdir_gtk_shared
=objs_gtk_sh
23 objdir_gtk_static
=objs_gtk_st
25 objdirs
=$(objdir_gtk_shared
) $(objdir_gtk_static
)
27 build_stamps
=build-gtk-shared-stamp build-gtk-static-stamp
30 debian
/control
: debian
/control.in
31 sed
-e
's/=V/$(release)/g' < debian
/control.in
> debian
/control
33 build
: debian
/control
$(build_stamps
)
35 build-gtk-shared-stamp
:
37 mkdir
$(objdir_gtk_shared
)
38 cd
$(objdir_gtk_shared
) \
39 && ..
/configure
--prefix=/usr
--with-gtk \
43 build-gtk-static-stamp
:
45 mkdir
$(objdir_gtk_static
)
46 cd
$(objdir_gtk_static
) \
47 && ..
/configure
--prefix=/usr
--with-gtk
--disable-shared \
54 -rm -rf
$(build_stamps
) $(objdirs
)
56 -rm -f debian
/$(package_gtk_lib
).
*
57 -rm -f debian
/$(package_gtk_dev
).
*
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; \
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; \
72 cd
$(objdir_gtk_shared
) \
73 && $(MAKE
) install prefix=`pwd`/..
/debian
/tmp
/usr
74 cp
$(objdir_gtk_static
)/lib
/*.a debian
/tmp
/usr
/lib
78 # Build architecture-independent files here.
79 binary-indep
: build
install
82 # Build architecture-dependent files here.
83 binary-arch
: build
install
87 dh_installmanpages
-p
$(package_gtk_dev
) \
105 binary
: binary-indep binary-arch
106 .PHONY
: build
clean binary-indep binary-arch binary
install