2019-11-17 10:15:40 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2020-01-04 07:37:55 +00:00
|
|
|
DEB_HOST_MULTIARCH?=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
|
|
|
|
2020-02-10 06:04:01 +00:00
|
|
|
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
|
2020-01-28 04:24:01 +00:00
|
|
|
export PYBUILD_NAME=notcurses
|
2020-02-12 00:03:12 +00:00
|
|
|
export PYBUILD_DIR=python
|
|
|
|
export PYBUILD_DESTDIR=debian/python3-notcurses
|
2020-01-28 04:24:01 +00:00
|
|
|
|
2020-02-11 23:41:44 +00:00
|
|
|
CFLAGS += -ffile-prefix-map=$(CURDIR)=/
|
|
|
|
|
2019-11-17 10:15:40 +00:00
|
|
|
%:
|
2020-02-01 19:35:38 +00:00
|
|
|
dh $@ --buildsystem=cmake
|
2019-11-17 10:15:40 +00:00
|
|
|
|
2020-02-05 03:49:23 +00:00
|
|
|
override_dh_auto_configure:
|
2020-02-23 02:50:48 +00:00
|
|
|
dh_auto_configure -- -DDFSG_BUILD=ON -DUSE_PYTHON=OFF
|
2020-02-05 03:49:23 +00:00
|
|
|
|
2020-02-09 04:01:32 +00:00
|
|
|
override_dh_auto_build:
|
|
|
|
dh_auto_build
|
2020-02-12 00:03:12 +00:00
|
|
|
CFLAGS="$(CFLAGS) -I$(CURDIR)/include" LDFLAGS="$(LDFLAGS) \
|
|
|
|
-L$(CURDIR)/obj-$(DEB_HOST_MULTIARCH)" pybuild --build
|
2020-02-09 04:01:32 +00:00
|
|
|
|
2020-01-28 21:43:02 +00:00
|
|
|
override_dh_auto_install:
|
|
|
|
dh_auto_install -B $(BUILDDIR)
|
2020-02-12 00:03:12 +00:00
|
|
|
pybuild --install
|