~ubuntu-branches/ubuntu/raring/hplip/raring-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2012-05-26 11:20:39 UTC
  • mfrom: (1.5.6) (31.1.3 precise)
  • Revision ID: package-import@ubuntu.com-20120526112039-bevxczegxnbyr5m7
Tags: 3.12.4-1
* New upstream release
* Switch to source/format 3.0 (quilt) - drop dpatch
* Refreshed debian/patches
* dh_autoreconf debian/autogen.sh & set local-options single-debian-patch
* Update to debian/compat -> 9
* Fix "hardened build flags" patch from Moritz - thanks (Closes: #667828)
* Fix "duplex descriptor uninitialized" patch from Matej (Closes: #583273)
* Fix "please migrate to kde-runtime" patch from Pino (Closes: #666544)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
PACKAGE=hplip
8
8
BASEPKG=hplip
9
9
 
10
 
# DPatch
11
 
DEB_SOURCE_PACKAGE:=$(PACKAGE)
12
 
include /usr/share/dpatch/dpatch.make
13
 
 
14
10
# DebHelper control
15
11
export DH_ALWAYS_EXCLUDE=CVS:.cvsignore
16
12
#export DH_VERBOSE=1
65
61
  CONFFLAGS += --disable-pp-build
66
62
endif
67
63
 
68
 
DEBUGFLAGS=-g
69
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
70
 
        DEBUGFLAGS += -O0
71
 
else
72
 
        DEBUGFLAGS += -O2
73
 
endif
74
 
 
75
 
CFLAGS:=-Wall -pipe $(DEBUGFLAGS)
 
64
CFLAGS:=-Wall -pipe
 
65
CFLAGS += `dpkg-buildflags --get CFLAGS`
76
66
CXXFLAGS:=$(CFLAGS)
 
67
LDFLAGS = `dpkg-buildflags --get LDFLAGS`
 
68
CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`
77
69
 
78
70
##
79
71
##  Build-tree preparation
83
75
        dh_testdir
84
76
        touch NEWS README AUTHORS ChangeLog
85
77
        chmod +x debian/autogen.sh
86
 
        debian/autogen.sh
 
78
        dh_autoreconf debian/autogen.sh
87
79
 
88
80
# Clean everything up, including everything auto-generated
89
81
# at build time that needs not to be kept around in the Debian diff
90
 
clean: clean-patched unpatch
91
 
clean-patched: configure
 
82
clean: configure
92
83
        dh_testdir
93
84
        dh_testroot
94
85
        rm -f build-stamp configure-stamp
115
106
##  Package build
116
107
##
117
108
 
118
 
configure-stamp: patch-stamp configure
 
109
configure-stamp: configure
119
110
        dh_testdir
120
111
 
121
112
        ln -sf /usr/share/misc/config.sub .
122
113
        ln -sf /usr/share/misc/config.guess .
123
114
        rm -f config.cache
124
115
 
125
 
        ./configure CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
 
116
        ./configure CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"\
126
117
                HPLIP_PPD_PATH=/usr/share/ppd \
127
118
                $(CONFFLAGS) \
128
119
                --config-cache \
432
423
        dh_builddeb -a
433
424
 
434
425
binary: binary-indep binary-arch
435
 
.PHONY: build clean clean-patched binary-indep binary-arch binary install install-arch install-indep
 
426
.PHONY: build clean binary-indep binary-arch binary install install-arch install-indep