2000-02-16 20:47:08 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# debian/rules file to build packages from wxWindows CVS source
|
|
|
|
#
|
|
|
|
# Sculpted 13/2/2000 by Ron Lee <ron@debian.org> from new and
|
|
|
|
# variously stolen code :-)
|
|
|
|
# (including a debhelper template, GNU copyright 1997 to 1999 by
|
|
|
|
# Joey Hess, and some ideas found in the ncurses rules file that
|
|
|
|
# I quite liked)
|
|
|
|
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
export DH_COMPAT=2
|
|
|
|
|
|
|
|
# Change this when the release version changes and
|
|
|
|
# touch control.in to propagate the change.
|
|
|
|
release=2.1
|
|
|
|
|
|
|
|
# These are the packages we will build
|
|
|
|
package_gtk_lib=libwxgtk$(release)
|
|
|
|
package_gtk_dev=libwxgtk$(release)-dev
|
2000-02-17 19:07:25 +00:00
|
|
|
package_doc=libwx$(release)-doc
|
2000-02-16 20:47:08 +00:00
|
|
|
|
|
|
|
# Dirs to put the various builds object files in
|
|
|
|
objdir_gtk_shared=objs_gtk_sh
|
|
|
|
objdir_gtk_static=objs_gtk_st
|
|
|
|
|
|
|
|
objdirs=$(objdir_gtk_shared) $(objdir_gtk_static)
|
|
|
|
|
2000-02-17 19:07:25 +00:00
|
|
|
build_stamps=build-gtk-shared-stamp build-gtk-static-stamp build-doc-stamp
|
2000-02-16 20:47:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
debian/control: debian/control.in
|
|
|
|
sed -e 's/=V/$(release)/g' < debian/control.in > debian/control
|
|
|
|
|
|
|
|
build: debian/control $(build_stamps)
|
|
|
|
|
|
|
|
build-gtk-shared-stamp:
|
|
|
|
dh_testdir
|
|
|
|
mkdir $(objdir_gtk_shared)
|
|
|
|
cd $(objdir_gtk_shared) \
|
|
|
|
&& ../configure --prefix=/usr --with-gtk \
|
|
|
|
&& $(MAKE)
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
build-gtk-static-stamp:
|
|
|
|
dh_testdir
|
|
|
|
mkdir $(objdir_gtk_static)
|
|
|
|
cd $(objdir_gtk_static) \
|
|
|
|
&& ../configure --prefix=/usr --with-gtk --disable-shared \
|
|
|
|
&& $(MAKE)
|
|
|
|
touch $@
|
|
|
|
|
2000-02-17 19:07:25 +00:00
|
|
|
build-doc-stamp: build-gtk-shared-stamp
|
|
|
|
dh_testdir
|
|
|
|
cd $(objdir_gtk_shared)/utils/tex2rtf/src \
|
|
|
|
&& $(MAKE) \
|
|
|
|
&& mkdir HTML \
|
|
|
|
&& ./tex2rtf ../../../../docs/latex/wx/manual.tex HTML/wxwin -twice -html \
|
|
|
|
&& cp ../../../../docs/latex/wx/*.gif HTML \
|
|
|
|
&& rm -f *.con \
|
|
|
|
&& rm -f HTML/wxwin.con HTML/wxwin.hh* HTML/wxwin.htx HTML/wxwin.ref
|
|
|
|
rm -rf docs/wxWindows-manual.html
|
|
|
|
mv $(objdir_gtk_shared)/utils/tex2rtf/src/HTML docs/wxWindows-manual.html
|
|
|
|
touch $@
|
|
|
|
|
2000-02-16 20:47:08 +00:00
|
|
|
clean: debian/control
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2000-02-17 19:07:25 +00:00
|
|
|
rm -rf $(build_stamps) $(objdirs)
|
|
|
|
rm -rf docs/wxWindows-manual.html
|
2000-02-16 20:47:08 +00:00
|
|
|
dh_clean
|
2000-02-17 19:07:25 +00:00
|
|
|
rm -f debian/$(package_gtk_lib).*
|
|
|
|
rm -f debian/$(package_gtk_dev).*
|
|
|
|
rm -f debian/$(package_doc).*
|
2000-02-16 20:47:08 +00:00
|
|
|
|
|
|
|
install: build
|
|
|
|
@for f in dirs docs files postinst; do \
|
|
|
|
echo "generating control file $(package_gtk_lib).$$f"; \
|
|
|
|
cp debian/libwxgtk.$$f debian/$(package_gtk_lib).$$f; \
|
|
|
|
done;
|
|
|
|
@for f in dirs docs files; do \
|
|
|
|
echo "generating control file $(package_gtk_dev).$$f"; \
|
|
|
|
cp debian/libwxgtk-dev.$$f debian/$(package_gtk_dev).$$f; \
|
|
|
|
done;
|
2000-02-17 19:07:25 +00:00
|
|
|
@for f in dirs docs doc-base; do \
|
|
|
|
echo "generating control file $(package_doc).$$f"; \
|
|
|
|
cp debian/libwx-doc.$$f debian/$(package_doc).$$f; \
|
|
|
|
done;
|
2000-02-16 20:47:08 +00:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
|
|
|
dh_installdirs
|
|
|
|
cd $(objdir_gtk_shared) \
|
|
|
|
&& $(MAKE) install prefix=`pwd`/../debian/tmp/usr
|
|
|
|
cp $(objdir_gtk_static)/lib/*.a debian/tmp/usr/lib
|
|
|
|
dh_movefiles
|
|
|
|
|
|
|
|
|
|
|
|
# Build architecture-independent files here.
|
|
|
|
binary-indep: build install
|
|
|
|
# nothing to do.
|
|
|
|
|
|
|
|
# Build architecture-dependent files here.
|
|
|
|
binary-arch: build install
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_installdocs
|
|
|
|
dh_installmanpages -p$(package_gtk_dev) \
|
|
|
|
ansi2knr.1 \
|
|
|
|
jpegtran.1 \
|
|
|
|
libpng.3 \
|
|
|
|
libpngpf.3 \
|
|
|
|
zlib.3 \
|
|
|
|
png.5
|
|
|
|
dh_installchangelogs
|
|
|
|
dh_strip
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
|
|
|
dh_makeshlibs
|
|
|
|
dh_installdeb
|
|
|
|
dh_shlibdeps
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install
|