40 lines
1.3 KiB
Makefile
Executable File
40 lines
1.3 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
include /usr/share/dpkg/buildopts.mk
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
|
export PKG_CONFIG_PATH = /opt/plasma/lib/pkgconfig
|
|
BUILDDIR = obj-qtbase
|
|
|
|
%:
|
|
dh $@ --buildsystem=cmake+ninja --builddirectory=$(BUILDDIR)
|
|
|
|
override_dh_auto_configure:
|
|
mkdir -p $(BUILDDIR)
|
|
cd $(BUILDDIR) && ../configure -opensource -confirm-license -release -shared \
|
|
-prefix /opt/plasma -libdir lib -plugindir lib/qt6/plugins -qmldir lib/qt6/qml \
|
|
-nomake examples -nomake tests -dbus-linked -openssl-linked \
|
|
-feature-xcb -feature-opengl -feature-fontconfig -feature-icu -- \
|
|
-DCMAKE_PREFIX_PATH=/opt/plasma \
|
|
-DCMAKE_INSTALL_RPATH=/opt/plasma/lib -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=FALSE
|
|
|
|
override_dh_auto_build:
|
|
cmake --build $(BUILDDIR) --parallel $(or $(DEB_BUILD_OPTION_PARALLEL),1)
|
|
|
|
override_dh_auto_test:
|
|
@echo 'Focused upstream patch regressions were checked separately; packaged consumer runs next.'
|
|
|
|
override_dh_auto_install:
|
|
DESTDIR=$(CURDIR)/debian/tmp cmake --install $(BUILDDIR)
|
|
python3 debian/split.py
|
|
|
|
override_dh_missing:
|
|
dh_missing --fail-missing
|
|
|
|
override_dh_makeshlibs:
|
|
dh_makeshlibs -V --no-scripts
|
|
|
|
override_dh_shlibdeps:
|
|
dh_shlibdeps -l$(CURDIR)/debian/plasma-next-qtbase/opt/plasma/lib
|
|
|
|
override_dh_installdocs:
|
|
dh_installdocs --link-doc=plasma-next-qtbase
|