summaryrefslogtreecommitdiffstats
path: root/ubuntu/_base/applications/kstreamripper/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'ubuntu/_base/applications/kstreamripper/debian/rules')
-rwxr-xr-xubuntu/_base/applications/kstreamripper/debian/rules33
1 files changed, 13 insertions, 20 deletions
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"