2016-11-14 14:58:04 +08:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
DPKG_EXPORT_BUILDFLAGS = 1
|
|
|
|
|
include /usr/share/dpkg/default.mk
|
|
|
|
|
export QT_SELECT = qt5
|
2018-01-15 17:22:52 +08:00
|
|
|
|
2016-11-14 14:58:04 +08:00
|
|
|
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
2017-12-27 15:06:43 +08:00
|
|
|
|
2018-05-09 16:38:16 +08:00
|
|
|
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
|
|
|
|
|
2022-07-27 11:46:15 +08:00
|
|
|
VERSION = $(DEB_VERSION_UPSTREAM)
|
|
|
|
|
_PACK_VER = $(shell echo $(VERSION) | awk -F'[+_~-]' '{print $$1}')
|
2022-08-17 15:04:08 +08:00
|
|
|
_BUILD_VER = $(shell echo $(VERSION) | awk -F'[+_~-]' '{print $$2}' | sed 's/[^0-9]//g' | awk '{print int($$1)}')
|
2022-07-27 11:46:15 +08:00
|
|
|
ifeq ($(_BUILD_VER),)
|
|
|
|
|
CONFIG_VERSION = $(_PACK_VER)
|
2018-01-15 17:22:52 +08:00
|
|
|
else
|
2022-07-27 11:46:15 +08:00
|
|
|
CONFIG_VERSION = $(_PACK_VER).$(_BUILD_VER)
|
2018-01-15 17:22:52 +08:00
|
|
|
endif
|
2022-07-27 11:46:15 +08:00
|
|
|
|
2016-11-14 14:58:04 +08:00
|
|
|
%:
|
2023-01-15 16:03:31 +08:00
|
|
|
dh $@
|
2016-11-14 14:58:04 +08:00
|
|
|
|
2022-08-19 13:32:38 +08:00
|
|
|
override_dh_auto_configure:
|
2023-01-18 14:54:51 +08:00
|
|
|
dh_auto_configure -- -DBUILD_PLUGINS=OFF -DBUILD_DOCS=ON -DDTK_VERSION=$(_PACK_VER) -DDTK_STATIC_TRANSLATION=YES
|
2019-08-13 16:13:16 +08:00
|
|
|
#override_dh_auto_configure:
|
|
|
|
|
# dh_auto_configure -- LIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)
|
|
|
|
|
#override_dh_makeshlibs:
|
|
|
|
|
# dh_makeshlibs -V
|
2018-05-09 16:38:16 +08:00
|
|
|
|
2019-08-13 16:13:16 +08:00
|
|
|
#ifeq ($(DEB_BUILD_ARCH), sw_64)
|
|
|
|
|
#override_dh_makeshlibs:
|
|
|
|
|
# dh_makeshlibs -V -- -c0
|
|
|
|
|
#endif
|
2018-05-09 16:38:16 +08:00
|
|
|
|
2020-11-20 17:27:54 +08:00
|
|
|
override_dh_makeshlibs:
|
|
|
|
|
dh_makeshlibs -V "libdtkwidget5 (>= $(shell echo $(VERSION) | cut -d '.' -f 1,2))"
|