| 1 |
|
| 2 |
|
| 3 |
PYTHON3V:=$(shell py3versions -sv) |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --with python3 |
| 7 |
|
| 8 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 9 |
|
| 10 |
override_dh_auto_configure: |
| 11 |
dh_auto_configure -B $(BUILDDIR) -- --enable-gtk-doc |
| 12 |
|
| 13 |
override_dh_auto_install: |
| 14 |
dh_auto_install -B $(BUILDDIR) |
| 15 |
cd python && for pyvers in $(PYTHON3V); do\ |
| 16 |
CFLAGS="$(shell dpkg-buildflags --get CFLAGS) -g -I$(CURDIR)/debian/tmp/usr/include" \ |
| 17 |
LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS) -L$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)" \ |
| 18 |
python$$pyvers setup.py install --install-layout=deb \ |
| 19 |
--root=$(CURDIR)/debian/python3-iptcdata; \ |
| 20 |
done |