summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-05-11 23:42:57 +0900
committerMichele Calgaro <[email protected]>2024-05-11 23:43:19 +0900
commit102f8c1e4f7e4a5bce61ee00dae95d9ebaee1e33 (patch)
treeca36b41cc63b82cfa65cf19909c51bdbf9252dbe /debian/rules
parent45cbc717c733e287453c8c50782fa301ae50a8ea (diff)
downloadtde-ebook-reader-102f8c1e4f7e4a5bce61ee00dae95d9ebaee1e33.tar.gz
tde-ebook-reader-102f8c1e4f7e4a5bce61ee00dae95d9ebaee1e33.zip
DEB: update to standard TDE format, rename packages and remove patches
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules57
1 files changed, 15 insertions, 42 deletions
diff --git a/debian/rules b/debian/rules
index ae83bd7..a6797f1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,44 +1,17 @@
#!/usr/bin/make -f
-ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
- NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
- AUXMAKEFLAGS += -j$(NUMJOBS)
-endif
-
-DPKG_EXPORT_BUILDFLAGS=1
-include /usr/share/dpkg/architecture.mk
-include /usr/share/dpkg/buildflags.mk
-
-DEB_DIR = $(CURDIR)/debian
-
-export PKG_CONFIG=$(DEB_HOST_GNU_TYPE)-pkg-config
-AUXMAKEFLAGS += 'LD=$$(CXX)'
-
-%:
- dh $@
-
-override_dh_auto_build:
- dh_auto_build -- $(AUXMAKEFLAGS) -C zlibrary/core TARGET_ARCH=desktop UI_TYPE=dummy
- dh_auto_build -- $(AUXMAKEFLAGS) -C zlibrary/text TARGET_ARCH=desktop UI_TYPE=dummy
- dh_auto_build -- $(AUXMAKEFLAGS) -C zlibrary/ui TARGET_ARCH=desktop UI_TYPE=qt4
- dh_auto_build -- $(AUXMAKEFLAGS) -C fbreader TARGET_ARCH=desktop UI_TYPE=dummy
-
-install-common:
- $(MAKE) -C zlibrary/core TARGET_ARCH=desktop UI_TYPE=dummy DESTDIR=$(DEB_DIR)/tmp/zlcore do_install
- $(MAKE) -C zlibrary/text TARGET_ARCH=desktop UI_TYPE=dummy DESTDIR=$(DEB_DIR)/tmp/zltext do_install
-
-override_dh_auto_install-indep: install-common
- mv $(DEB_DIR)/tmp/zlcore/usr/share/zlibrary $(DEB_DIR)/libzlcore-data/usr/share
- mv $(DEB_DIR)/tmp/zltext/usr/share/zlibrary $(DEB_DIR)/libzltext-data/usr/share
-
-override_dh_auto_install-arch: install-common
- mv $(DEB_DIR)/tmp/zlcore/usr/lib $(DEB_DIR)/libzlcore0.13t64/usr
- mv $(DEB_DIR)/tmp/zltext/usr/lib $(DEB_DIR)/libzltext0.13t64/usr
- $(MAKE) -C zlibrary/core TARGET_ARCH=desktop UI_TYPE=dummy DESTDIR=$(DEB_DIR)/libzlcore-dev do_install_dev
- $(MAKE) -C zlibrary/text TARGET_ARCH=desktop UI_TYPE=dummy DESTDIR=$(DEB_DIR)/libzltext-dev do_install_dev
- $(MAKE) -C zlibrary/ui TARGET_ARCH=desktop UI_TYPE=qt4 DESTDIR=$(DEB_DIR)/fbreader do_install
- $(MAKE) -C fbreader TARGET_ARCH=desktop UI_TYPE=dummy DESTDIR=$(DEB_DIR)/fbreader do_install
-
-override_dh_makeshlibs:
- dh_makeshlibs -plibzlcore0.13t64
- dh_makeshlibs -plibzltext0.13t64
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/cmake.mk
+include debian/cdbs/debian-tde.mk
+
+DEB_CMAKE_EXTRA_FLAGS := \
+ -DCMAKE_EXPORT_COMPILE_COMMANDS="ON" \
+ -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"