summaryrefslogtreecommitdiffstats
path: root/ubuntu/maverick/applications/gwenview-i18n/debian/rules
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-12-24 15:10:26 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-12-24 15:10:26 +0100
commit7172f47cba4087d73fcb204bfd23358fbb1b2f5d (patch)
tree768e431bfe9869c4757103df256e9b8ed742f8ce /ubuntu/maverick/applications/gwenview-i18n/debian/rules
parentce71099485f47c25c9cff0b9b823562fffa1d975 (diff)
downloadtde-packaging-7172f47cba4087d73fcb204bfd23358fbb1b2f5d.tar.gz
tde-packaging-7172f47cba4087d73fcb204bfd23358fbb1b2f5d.zip
DEB gwenview-i18n: Switch to cmake.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ubuntu/maverick/applications/gwenview-i18n/debian/rules')
-rwxr-xr-xubuntu/maverick/applications/gwenview-i18n/debian/rules69
1 files changed, 13 insertions, 56 deletions
diff --git a/ubuntu/maverick/applications/gwenview-i18n/debian/rules b/ubuntu/maverick/applications/gwenview-i18n/debian/rules
index 069018570..18b1c07e2 100755
--- a/ubuntu/maverick/applications/gwenview-i18n/debian/rules
+++ b/ubuntu/maverick/applications/gwenview-i18n/debian/rules
@@ -1,63 +1,20 @@
-#! /usr/bin/make -f
-
-DEB_PATCHDIRS := debian/patches/common debian/patches
+#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
-include debian/cdbs/kde.mk
+include /usr/share/cdbs/1/class/cmake.mk
#include /usr/share/cdbs/1/rules/patchsys-quilt.mk
-include /usr/share/cdbs/1/rules/utils.mk
-
--include debian/debiandirs
-
-ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
- DEB_PARALLEL_JOBS ?= $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
-endif
-DEB_MAKE_PARALLEL ?= $(and $(DEB_BUILD_PARALLEL),$(DEB_PARALLEL_JOBS),-j$(DEB_PARALLEL_JOBS))
+include debian/cdbs/debian-qt-kde.mk
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
&& echo xz || echo bzip2)
-DEB_INSTALL_DOCS_ALL :=
-
-DOC_LANGS = da de et fr it nl pl pt ru sv pt_BR
-
-post-patches:: debian/stamp-bootstrap
-
-debian/stamp-bootstrap:
- dh_testdir
-
- # Regenerate build system
-ifneq "$(wildcard /usr/share/libtool/ltmain.sh)" ""
- cp -f /usr/share/libtool/ltmain.sh admin/ltmain.sh
-endif
-ifneq "$(wildcard /usr/share/libtool/config/ltmain.sh)" ""
- cp -f /usr/share/libtool/config/ltmain.sh admin/ltmain.sh
-endif
-ifneq "$(wildcard /usr/share/libtool/build-aux/ltmain.sh)" ""
- cp -f /usr/share/libtool/build-aux/ltmain.sh admin/ltmain.sh
-endif
- cp -f /usr/share/aclocal/libtool.m4 admin/libtool.m4.in
-
- autoreconf && automake -f && \
- $(MAKE) -f admin/Makefile.common && \
- ./configure $(configkde)
- touch debian/stamp-bootstrap
-
-build: debian/build-stamp
-
-debian/build-stamp:
- dh_testdir
- $(MAKE) $(DEB_MAKE_PARALLEL)
- touch debian/build-stamp
-
-install/gwenview-i18n-trinity::
- dh_testdir
- dh_testroot
- dh_clean -k
-
- $(MAKE) install DESTDIR=$(CURDIR)/debian/gwenview-i18n-trinity $(DEB_MAKE_PARALLEL)
-
- for LANG in $(DOC_LANGS); do \
- cd $(CURDIR)/debian/gwenview-i18n-trinity/$(kde_htmldir)/$$LANG/gwenview; \
- $(kde_prefix)/bin/meinproc $(DEB_DESTDIR)$(kde_htmldir)/$$LANG/gwenview/index.docbook; \
- done
+DEB_CMAKE_EXTRA_FLAGS := \
+ -DCMAKE_INSTALL_PREFIX="/opt/trinity" \
+ -DCONFIG_INSTALL_DIR="/etc/trinity" \
+ -DSYSCONF_INSTALL_DIR="/etc/trinity" \
+ -DXDG_MENU_INSTALL_DIR="/etc/xdg/menus" \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_VERBOSE_MAKEFILE="ON" \
+ -DCMAKE_SKIP_RPATH="OFF" \
+ -DBUILD_ALL="ON" \
+ -DWITH_ALL_OPTIONS="ON"