~ubuntu-branches/ubuntu/saucy/gnudatalanguage/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Axel Beckert
  • Date: 2013-05-15 02:23:58 UTC
  • mfrom: (15.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130515022358-rziznpf225zn9lv9
Tags: 0.9.3-2
* Upload to unstable.
* Revamp debian/rules
  - Allow parallel builds
  - Use debian/manpages instead of dh_installman parameter
  - Switch to dh7 style debian/rules file
* Bump debhelper compatibility to 9
  - Update versioned debhelper build-dependency
* Bump Standards-Version to 3.9.4 (no changes)
* Apply wrap-and-sort

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
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)
8
 
 
9
 
DPKG_EXPORT_BUILDFLAGS = 1
10
 
include /usr/share/dpkg/buildflags.mk
11
 
 
12
3
ifeq ($(DEB_BUILD_ARCH),$(filter i386 amd64 ia64 powerpc s390 alpha armel mipsel kfreebsd-amd64 kfreebsd-i386 armhf,$(DEB_BUILD_ARCH)))
13
4
        GRIP = --with-grib
14
5
else
15
6
        GRIP = --without-grib
16
7
endif
17
8
 
18
 
config.status:
19
 
        dh_testdir
 
9
%:
 
10
        dh $@ --parallel --with autoreconf
 
11
 
 
12
override_dh_autoreconf:
20
13
        tar cf antlr.tar src/antlr
21
14
        # Add here commands to configure the package.
22
15
        dh_autoreconf
 
16
 
 
17
override_dh_auto_configure:
23
18
        # Patched source FTBFS if this embedded code copy is present
24
19
        rm -rf src/antlr
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
26
 
 
27
 
build: build-arch build-indep
28
 
build-arch: build-stamp
29
 
build-indep: build-stamp
30
 
build-stamp: config.status
31
 
        dh_testdir
32
 
        $(MAKE)
33
 
        touch $@
34
 
 
35
 
clean:
36
 
        dh_testdir
37
 
        dh_testroot
 
20
        dh_auto_configure -- --with-fftw=yes --with-python=yes --with-wxWidgets $(GRIP) --with-udunits --with-pslib
 
21
 
 
22
override_dh_auto_test:
 
23
        -dh_auto_test --parallel
 
24
 
 
25
override_dh_auto_clean:
38
26
        if [ -f  antlr.tar ]; then tar xf antlr.tar; fi
39
27
        rm -f antlr.tar
40
 
        dh_auto_clean
41
 
        dh_autoreconf_clean
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~
43
 
 
44
 
install: build
45
 
        dh_testdir
46
 
        dh_testroot
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~
48
 
        dh_installdirs
49
 
        $(MAKE) DESTDIR=$(CURDIR)/debian/gnudatalanguage install
50
 
 
51
 
binary-indep: build install
52
 
 
53
 
binary-arch: build install
54
 
        dh_testdir
55
 
        dh_testroot
 
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
 
33
 
 
34
override_dh_installchangelogs:
56
35
        dh_installchangelogs ChangeLog
57
 
        dh_installdocs
58
 
        dh_installman doc/gdl.1
59
 
        dh_link
60
 
        dh_strip
 
36
 
 
37
override_dh_compress:
61
38
        dh_compress -X.pro
62
 
        dh_fixperms
63
 
        dh_installdeb
64
 
        dh_shlibdeps
65
 
        dh_gencontrol
66
 
        dh_md5sums
67
 
        dh_builddeb
68
 
 
69
 
binary: binary-indep binary-arch
70
 
.PHONY: build clean binary-indep binary-arch binary install