1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE=1
# Define install target dir
INSTALLDIR = $(CURDIR)/debian/tmp
include /usr/share/dh-dlang/dlang-flags.mk
export DCFLAGS=$(DFLAGS)
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifeq ($(DEB_HOST_ARCH), s390x)
export DEB_BUILD_MAINT_OPTIONS = optimize=-lto
endif
# the GtkD Makefiles use raw LDFLAGS from the environment, so we transform them into a form LDC can understand
# this include will only do something if our D compiler is LDC
include /usr/share/dh-dlang/ldc-transform-ldflags.mk
%:
dh $@
override_dh_auto_build:
dh_auto_build -- \
test \
shared \
prefix=/usr
override_dh_auto_install:
dh_auto_build -- \
install-shared \
install-headers \
DESTDIR=$(INSTALLDIR) \
prefix=/usr
override_dh_makeshlibs:
dh_makeshlibs -V
|