summaryrefslogtreecommitdiffstats
path: root/dilos/dependencies/tqscintilla/debian/rules
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-12-08 16:43:39 +0100
committerSlávek Banko <slavek.banko@axis.cz>2021-12-08 16:43:39 +0100
commit90e95bdd7453bd43b7a17480cb086f26e624c1dd (patch)
tree27913d111064f2ad9fe8dd33c3b003717cc89f69 /dilos/dependencies/tqscintilla/debian/rules
parentf5160fc35b46b92fb143887980e30c2f3d01b567 (diff)
downloadtde-packaging-90e95bdd7453bd43b7a17480cb086f26e624c1dd.tar.gz
tde-packaging-90e95bdd7453bd43b7a17480cb086f26e624c1dd.zip
DEB DilOS: Apply recent changes for tqscintilla and python-tqt.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'dilos/dependencies/tqscintilla/debian/rules')
-rwxr-xr-xdilos/dependencies/tqscintilla/debian/rules131
1 files changed, 16 insertions, 115 deletions
diff --git a/dilos/dependencies/tqscintilla/debian/rules b/dilos/dependencies/tqscintilla/debian/rules
index 14545306f..bcf875516 100755
--- a/dilos/dependencies/tqscintilla/debian/rules
+++ b/dilos/dependencies/tqscintilla/debian/rules
@@ -1,119 +1,20 @@
-#!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+#! /usr/bin/make -f
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/cmake.mk
+include debian/cdbs/debian-tde.mk
-# The default gzip compressor has been changed in dpkg >= 1.17.0.
-deb_default_compress = $(shell LANG=C dpkg-deb --version | head -n1 | \
- sed -e "s|.*version ||" -e "s| .*||" | \
- xargs -r dpkg --compare-versions 1.17.0 lt \
- && echo xz || echo gzip)
-ifeq ($(deb_default_compress),gzip)
-DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
- && echo xz || echo bzip2)
+ifdef DEB_HOST_MULTIARCH
+ CMAKE_INSTALL_LIBDIR = lib/$(DEB_HOST_MULTIARCH)
+else
+ CMAKE_INSTALL_LIBDIR = lib
endif
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
-
-# This is the debhelper compatibility version to use.
-export TQTDIR=/usr/share/tqt3
-export QMAKESPEC=$(TQTDIR)/mkspecs/dilos-g++
-DOCDEST=$(CURDIR)/debian/tmp/usr/share/doc/libtqscintilla-doc/html
-HEADERDEST=$(CURDIR)/debian/tmp/usr/include/tqscintilla
-LIBSDEST=$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
-TRANSDEST=$(CURDIR)/debian/tmp/$(TQTDIR)/translations
-PLUGINDEST=$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/tqt3/plugins/designer
-
-
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -g
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- INSTALL_PROGRAM += -s
-endif
-
-configure: configure-stamp
-configure-stamp:
- dh_testdir
- cd qt; qmake "DESTDIR=$(CURDIR)/tmplib"
- cd designer; qmake
- touch configure-stamp
-
-build build-arch: build-stamp
-build-indep:
-
-build-stamp: configure-stamp
- dh_testdir
-
- install -d $(CURDIR)/tmplib
- $(MAKE) -C qt
- $(MAKE) -C designer
- touch build-stamp
-
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp configure-stamp
-
- [ ! -f qt/Makefile ] || $(MAKE) -C qt clean
- [ ! -f designer/Makefile ] || $(MAKE) -C designer clean
- -find -name 'Makefile' -exec rm {} \;
- -rm -rf tmplib
-
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
- install -d $(HEADERDEST)/private
- install -d $(DOCDEST)
- install -d $(TRANSDEST)
- install -d $(LIBSDEST)
- install -d $(PLUGINDEST)
- for i in qt/qextscintilla*.h; do install -m 644 $$i $(HEADERDEST); done
- for i in include/*.h; do install -m 644 $$i $(HEADERDEST)/private; done
- for i in doc/html/*; do install -m 644 $$i $(DOCDEST); done
- for i in qt/*.qm; do install -m 644 $$i $(TRANSDEST); done
- mv designer/*.so $(PLUGINDEST)
- for i in tmplib/*; do mv $$i $(LIBSDEST); done
-
-
-# Build architecture-independent files here.
-binary-indep: build install
- dh_testdir -i
- dh_testroot -i
- dh_install -i --sourcedir=$(CURDIR)/debian/tmp
- dh_installdocs -i
- dh_installchangelogs -i ChangeLog
- dh_link -i
- dh_compress -i
- dh_fixperms -i
- dh_installdeb -i
- dh_gencontrol -i
- dh_md5sums -i
- dh_builddeb -i $(DEB_DH_BUILDDEB_ARGS)
-
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir -a
- dh_testroot -a
- dh_install -a --sourcedir=$(CURDIR)/debian/tmp
- dh_installdocs -a
- dh_installchangelogs -a ChangeLog
- dh_link -a
- dh_strip -a --ctfconvert-flags="-i" -Xlibqscintilla.so.7.0.1 -Xlibqscintillaplugin.so
- dh_compress -a
- dh_fixperms -a
- dh_makeshlibs -a -V
- dh_installdeb -a
- dh_shlibdeps -a --dpkg-shlibdeps-params=--ignore-missing-info
- dh_gencontrol -a
- dh_md5sums -a
- dh_builddeb -a $(DEB_DH_BUILDDEB_ARGS)
-
-binary: binary-indep binary-arch
-.PHONY: build build-arch clean binary-indep binary-arch binary install configure
+DEB_CMAKE_EXTRA_FLAGS := \
+ -DCMAKE_EXPORT_COMPILE_COMMANDS="ON" \
+ -DCMAKE_SKIP_RPATH="OFF" \
+ -DCMAKE_VERBOSE_MAKEFILE="ON" \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_INSTALL_LIBDIR=$(CMAKE_INSTALL_LIBDIR) \
+ -DBUILD_ALL="ON" \
+ -DWITH_ALL_OPTIONS="ON"