3
# These are used for cross-compiling and for saving the configure script
4
# from having to guess our platform (since we know it already)
5
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
6
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
7
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
9
DPKG_EXPORT_BUILDFLAGS = 1
10
include /usr/share/dpkg/buildflags.mk
12
3
ifeq ($(DEB_BUILD_ARCH),$(filter i386 amd64 ia64 powerpc s390 alpha armel mipsel kfreebsd-amd64 kfreebsd-i386 armhf,$(DEB_BUILD_ARCH)))
15
6
GRIP = --without-grib
10
dh $@ --parallel --with autoreconf
12
override_dh_autoreconf:
20
13
tar cf antlr.tar src/antlr
21
14
# Add here commands to configure the package.
17
override_dh_auto_configure:
23
18
# Patched source FTBFS if this embedded code copy is present
25
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" --with-fftw=yes --with-python=yes --with-wxWidgets $(GRIP) --with-udunits --with-pslib
27
build: build-arch build-indep
28
build-arch: build-stamp
29
build-indep: build-stamp
30
build-stamp: config.status
20
dh_auto_configure -- --with-fftw=yes --with-python=yes --with-wxWidgets $(GRIP) --with-udunits --with-pslib
22
override_dh_auto_test:
23
-dh_auto_test --parallel
25
override_dh_auto_clean:
38
26
if [ -f antlr.tar ]; then tar xf antlr.tar; fi
42
dh_clean --exclude ./src/ncdf_att_cl.cpp.orig --exclude ./src/basic_pro.cpp.orig --exclude ./src/basic_pro.hpp.orig --exclude ./src/libinit.cpp.orig --exclude ./src/ncdf_var_cl.cpp.orig --exclude configure~
47
dh_prep --exclude ./src/ncdf_att_cl.cpp.orig --exclude ./src/basic_pro.cpp.orig --exclude ./src/basic_pro.hpp.orig --exclude ./src/libinit.cpp.orig --exclude ./src/ncdf_var_cl.cpp.orig --exclude configure~
49
$(MAKE) DESTDIR=$(CURDIR)/debian/gnudatalanguage install
51
binary-indep: build install
53
binary-arch: build install
28
# The Makefile shipped in the .orig.tar.gz is generated from
29
# CMake and hence even the clean target requires cmake. Meh.
30
# If such a Makefile is still present, delete it.
31
if [ -f Makefile ] && fgrep -q CMAKE Makefile; then rm -v Makefile; fi
32
dh_auto_clean --parallel
34
override_dh_installchangelogs:
56
35
dh_installchangelogs ChangeLog
58
dh_installman doc/gdl.1
69
binary: binary-indep binary-arch
70
.PHONY: build clean binary-indep binary-arch binary install