~ubuntu-branches/ubuntu/maverick/zeromq/maverick

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Adrian von Bidder
  • Date: 2010-03-17 10:43:40 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100317104340-un1ne0oqe16w8eaq
Tags: 2.0.6beta.dfsg-1
* New upstream version.
  - Source doesn't include non-C/C++ language bindings anymore.
  - New versioning: 2.0.6 is official upstream version which is a beta.
* Repacked orig tar: removed non-free RFC documents (closes: #567513)
* Improved/corrected description and copyright file, added bzip2 build
  dependency.  Thanks to feedback from zeromq mailing list.
* Disable OpenPGM on non-x86 architectures (closes: #567848)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
#export DH_VERBOSE=1
4
4
 
 
5
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
6
 
 
7
ifneq (,$(filter $(DEB_HOST_ARCH),i386 amd64))
 
8
    pgm_opt := --with-pgm
 
9
else
 
10
    pgm_opt :=
 
11
endif
 
12
 
5
13
configure: configure-stamp
6
14
configure-stamp:
7
15
        dh_testdir
8
16
 
 
17
        # hack: check that we're building from dsfg-free orig tarball
 
18
        if tar tzf foreign/openpgm/libpgm-*.tar.gz | grep -q rfc3208.txt;then \
 
19
            echo "Remove RFC documents from orig tar."; \
 
20
            exit 1; \
 
21
        fi
 
22
 
9
23
        ./configure $(CROSS) \
10
24
            --prefix=/usr \
11
 
            --with-pgm \
12
 
            --with-forwarder \
13
 
            --with-streamer \
14
 
            --with-queue \
15
 
            --with-c \
16
 
            --with-cpp \
 
25
            $(pgm_opt) \
17
26
            CFLAGS="$(CFLAGS)" \
18
27
            LDFLAGS="-Wl,--as-needed -Wl,-z,defs" \
19
28
 
68
77
        dh_md5sums
69
78
        dh_builddeb
70
79
 
71
 
# TODO: dh_$language for language bindings, probably.
72
 
 
73
80
binary: binary-indep binary-arch
74
81
.PHONY: build clean binary-indep binary-arch binary install configure
75
82