#!/usr/bin/make -f

l10npkgs_firstversion_ok := 4:16.04.3-6~

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

include /usr/share/pkg-kde-tools/qt-kde-team/3/debian-qt-kde.mk
include /usr/share/pkg-kde-tools/qt-kde-team/2/l10n-packages.mk

override_dh_auto_configure:
	$(overridden_command) -- -DOPENBABEL2_INCLUDE_DIR=/usr/include/openbabel3 \
	-DOPENBABEL2_LIBRARIES=/usr/lib/$(DEB_HOST_MULTIARCH)/libopenbabel.so \
	-DOPENBABEL2_VERSION_MET=TRUE

override_dh_auto_install:
	$(overridden_command)
	# drop translations of plasma-related components, since they are
	# not ported yet
	rm -f debian/tmp/usr/share/locale/*/LC_MESSAGES/plasma_*.mo
	# drop development stuff
	rm -rf debian/tmp/usr/include/
	find debian/tmp -name '*.so' -type l -delete

override_dh_install:
	$(overridden_command) --fail-missing
