summaryrefslogtreecommitdiffstats
path: root/ubuntu/maverick/applications/knmap/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'ubuntu/maverick/applications/knmap/debian/rules')
-rwxr-xr-xubuntu/maverick/applications/knmap/debian/rules38
1 files changed, 27 insertions, 11 deletions
diff --git a/ubuntu/maverick/applications/knmap/debian/rules b/ubuntu/maverick/applications/knmap/debian/rules
index 1612bbf8a..348e53573 100755
--- a/ubuntu/maverick/applications/knmap/debian/rules
+++ b/ubuntu/maverick/applications/knmap/debian/rules
@@ -1,21 +1,36 @@
#!/usr/bin/make -f
-cdbs_kde_enable_debug = --disable-debug
-
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/kde.mk
+include debian/cdbs/kde.mk
+
+DEB_CONFIGURE_INCLUDEDIR := /opt/trinity/include
+DEB_CONFIGURE_MANDIR := /opt/trinity/share/man
+DEB_CONFIGURE_PREFIX := /opt/trinity
+DEB_CONFIGURE_INFODIR := /opt/trinity/share/info
+
+DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
+ && echo xz || echo bzip2)
+
+post-patches:: debian/stamp-bootstrap
+
+debian/stamp-bootstrap:
+ dh_testdir
-DEB_INSTALL_MANPAGES_knmap-trinity = knmap.1
+ # Regenerate build system
+ ! [ -f /usr/share/libtool/ltmain.sh ] || \
+ cp -f /usr/share/libtool/ltmain.sh admin/ltmain.sh
+ ! [ -f /usr/share/libtool/config/ltmain.sh ] || \
+ cp -f /usr/share/libtool/config/ltmain.sh admin/ltmain.sh
+ cp -f /usr/share/aclocal/libtool.m4 admin/libtool.m4.in
-post-patches::
- # regenerating files to build app
- $(MAKE) -f Makefile.cvs
+ autoreconf --install && automake -f && \
+ $(MAKE) -f admin/Makefile.common && \
+ touch debian/stamp-bootstrap
-install/knmap-trinity::
- dh_install src/knmap.desktop usr/share/applications/tde
- dh_link opt/trinity/share/doc/tde/HTML/en/knmap usr/share/doc/knmap/html
- dh_iconcache
+binary-install/knmap-trinity::
+ dh_link opt/trinity/share/doc/tde/HTML/en/knmap usr/share/doc/$(cdbs_curpkg)/html
+ mv debian/$(cdbs_curpkg)/usr/share/man debian/$(cdbs_curpkg)/opt/trinity/share/
build/knmap-trinity::
docbook2x-man debian/knmap.1.docbook
@@ -29,3 +44,4 @@ clean::
rm -f Makefile.in
rm -f subdirs
rm -f aclocal.m4
+ rm -f debian/stamp-bootstrap