File: rules

package info (click to toggle)
libiptcdata 1.0.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,048 kB
  • sloc: ansic: 4,900; sh: 4,781; xml: 710; makefile: 103; python: 87; sed: 16
file content (20 lines) | stat: -rwxr-xr-x 621 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

PYTHON3V:=$(shell py3versions -sv)

%:
	dh $@ --with python3

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

override_dh_auto_configure:
	dh_auto_configure -B $(BUILDDIR) -- --enable-gtk-doc

override_dh_auto_install:
	dh_auto_install -B $(BUILDDIR)
	cd python && for pyvers in $(PYTHON3V); do\
		CFLAGS="$(shell dpkg-buildflags --get CFLAGS) -g -I$(CURDIR)/debian/tmp/usr/include" \
		LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS) -L$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)" \
		python$$pyvers setup.py install --install-layout=deb \
		--root=$(CURDIR)/debian/python3-iptcdata; \
	done