From 0038f7fc68c02e39330101665c3ed9c6c5fe0330 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 18 Mar 2020 12:48:07 +0900 Subject: DEB kstreamripper: switched to cmake. Signed-off-by: Michele Calgaro --- .../_base/applications/kstreamripper/debian/rules | 33 +++++++++------------- 1 file changed, 13 insertions(+), 20 deletions(-) (limited to 'ubuntu/_base/applications/kstreamripper/debian/rules') diff --git a/ubuntu/_base/applications/kstreamripper/debian/rules b/ubuntu/_base/applications/kstreamripper/debian/rules index 2074b796d..18aa16b96 100755 --- a/ubuntu/_base/applications/kstreamripper/debian/rules +++ b/ubuntu/_base/applications/kstreamripper/debian/rules @@ -1,26 +1,19 @@ #!/usr/bin/make -f + include /usr/share/cdbs/1/rules/debhelper.mk -#DEB_INSTALL_MANPAGES_kstreamripper-trinity:=debian/kstreamripper.1 +include /usr/share/cdbs/1/class/cmake.mk +include debian/cdbs/debian-tde.mk DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \ && echo xz || echo bzip2) -PATH := /opt/trinity/bin:$(PATH) - -build/kstreamripper-trinity:: - env PATH=/opt/trinity/bin:$(PATH) TQTDIR=/usr/share/tqt3 $(MAKE) - -install/kstreamripper-trinity:: - env PATH=/opt/trinity/bin:$(PATH) TQTDIR=/usr/share/tqt3 DESTDIR=$(DEB_DESTDIR) $(MAKE) install - mkdir -p $(DEB_DESTDIR)/opt/trinity/share/pixmaps/ - mkdir -p $(DEB_DESTDIR)/opt/trinity/share/doc/tde/HTML/ - install -m 644 ./src/hi32-app-kstreamripper.png \ - $(DEB_DESTDIR)/opt/trinity/share/pixmaps/kstreamripper.png - rm -rf $(DEB_DESTDIR)/opt/trinity/share/doc/tde/HTML - rm -rf $(DEB_DESTDIR)/usr - -clean:: - -$(MAKE) clean - rm -f scons_signatures.dblite - rm -f *.pyc admin/*.pyc - rm -rf cache/ +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" -- cgit v1.2.1