~ubuntu-branches/ubuntu/dapper/newt/dapper

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2005-03-22 12:44:37 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050322124437-nuhl0pqjcijjno9z
Tags: 0.51.6-20ubuntu3
Add Xhosa translation (thanks, Adi Attar).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
#
3
3
# Created 20 December 1997 by Enrique Zanardi <ezanardi@ull.es>
 
4
# Modified 2002-2004 by Alastair McKinstry, <mckinstry@debian.org>
4
5
#
5
6
# Copying and modification is unlimited, provided that the modified
6
7
# version is marked as being modified.
7
8
 
8
 
ARCH = $(shell dpkg --print-gnu-build-architecture)
9
 
 
10
 
VERSION=0.50.17
11
 
SONAME=0.50
12
 
 
13
 
PYVER=2.1
14
 
 
15
 
 
16
 
NEWT_TARGET=newt
 
9
# Uncomment this to turn on verbose mode.
 
10
# export DH_VERBOSE=1
 
11
 
 
12
DEB_BUILD_GNU_SYSTEM = $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM)
 
13
DEB_BUILD_GNU_CPU = $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
 
14
 
 
15
VERSION=0.51.6
 
16
SONAME=0.51
 
17
PYVER=2.4
 
18
 
 
19
LIB_PKG=libnewt$(SONAME)
 
20
DEV_PKG=libnewt-dev
 
21
PIC_PKG=libnewt-pic
 
22
TCL_PKG=newt-tcl
 
23
PYTHON_PKG=python-newt
 
24
WHIPTAIL_PKG=whiptail
 
25
 
 
26
# This is the debhelper compatability version to use.
 
27
export DH_COMPAT=3
 
28
 
 
29
# the dbs rules
 
30
TAR_DIR=newt-0.51.6
 
31
include /usr/share/dbs/dbs-build.mk
 
32
 
 
33
ifeq (,$(DEB_BUILD_GNU_TYPE))
 
34
 include /usr/share/dbs/dpkg-arch.mk
 
35
endif
 
36
ARCH=$(shell dpkg --print-architecture)
17
37
 
18
38
# get the items created here.
19
 
ifeq (newt,$(NEWT_TARGET))
20
 
PACKAGErun=whiptail
21
 
PACKAGEdev=libnewt-dev
22
 
buildtarget=build-nonutf8-stamp 
23
39
binarytarget=binary-devel binary-shared binary-runtime binary-tcl \
24
40
        binary-python binary-pic 
25
 
export BUILDINGUTF8=false
26
 
else    
27
 
PACKAGErun=whiptail-utf8
28
 
PACKAGEdev=libnewt-utf8-dev
29
 
buildtarget=build-utf8-stamp
30
 
binarytarget=binary-shared-utf8 \
31
 
        binary-pic-utf8 \
32
 
        binary-runtime \
33
 
        binary-devel
34
 
export BUILDINGUTF8=true
35
 
endif
36
 
 
37
 
 
38
 
 
39
 
PACKAGEshd=libnewt0
40
 
PACKAGEpyt=python-newt
41
 
PACKAGEtcl=newt-tcl
42
 
PACKAGEpic=libnewt-pic
43
 
PACKAGEutf8shd=libnewt-utf8-0
44
 
PACKAGEutf8pic=libnewt-utf8-pic
45
 
 
46
 
tmpshd = $(shell pwd)/debian/tmp-shd
47
 
tmpdev = $(shell pwd)/debian/tmp-dev
48
 
tmppyt = $(shell pwd)/debian/tmp-pyt
49
 
tmptcl = $(shell pwd)/debian/tmp-tcl
50
 
tmprun = $(shell pwd)/debian/tmp-run
51
 
tmppic = $(shell pwd)/debian/tmp-pic
52
 
tmputf8shd = $(shell pwd)/debian/tmp-utf8shd
53
 
tmputf8pic = $(shell pwd)/debian/tmp-utf8pic
54
 
 
55
 
docshd = $(tmpshd)/usr/share/doc/$(PACKAGEshd)
56
 
docdev = $(tmpdev)/usr/share/doc/$(PACKAGEdev)
57
 
docpyt = $(tmppyt)/usr/share/doc/$(PACKAGEpyt)
58
 
doctcl = $(tmptcl)/usr/share/doc/$(PACKAGEtcl)
59
 
docrun = $(tmprun)/usr/share/doc/$(PACKAGErun)
60
 
docpic = $(tmppic)/usr/share/doc/$(PACKAGEpic)
61
 
docutf8shd = $(tmputf8shd)/usr/share/doc/$(PACKAGEutf8shd)
62
 
docutf8pic = $(tmputf8pic)/usr/share/doc/$(PACKAGEutf8pic)
63
 
 
64
 
ifeq (ARCH,"alpha")
65
 
        LIBCDEV=libc6.1-dev
 
41
 
 
42
#target specific configurations come here:
 
43
LIBCDEV=libc-dev
 
44
GPMSUPPORT=
 
45
 
 
46
ifeq ($(DEB_BUILD_GNU_SYSTEM),linux)
 
47
GPMSUPPORT= --with-gpm-support
 
48
LIBCDEV=libc6-dev
 
49
ifeq ($(DEB_BUILD_GNU_CPU),alpha)
 
50
LIBCDEV=libc6.1-dev
 
51
endif
 
52
ifeq ($(DEB_BUILD_GNU_CPU),ia64)
 
53
LIBCDEV=libc6.1-dev
 
54
endif
 
55
endif
 
56
 
 
57
ifeq ($(DEB_BUILD_GNU_SYSTEM),gnu)
 
58
LIBCDEV=libc0.3-dev
 
59
endif
 
60
 
 
61
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
62
NOSTRIP=--with-nostrip=no
66
63
else
67
 
        LIBCDEV=libc6-dev
 
64
NOSTRIP=--with-nostrip=yes
68
65
endif
69
66
 
70
 
 
71
 
configure-stamp: 
72
 
        $(checkdir)
73
 
        ./configure --with-gpm-support
74
 
        touch $@
75
 
 
76
 
build-document-stamp:
77
 
        $(checkdir)
78
 
        sgmltools --backend html tutorial.sgml
79
 
        touch $@
80
 
 
81
 
build-nonutf8-stamp: configure-stamp build-document-stamp
82
 
        $(checkdir)
83
 
        make 
84
 
        ar cqv libnewt_pic.a shared/*.o
85
 
        touch $@
86
 
 
87
 
build-utf8-stamp: configure-stamp build-document-stamp
88
 
        $(checkdir)
89
 
         make utf8sharedlib
90
 
        ar cqv libnewt-utf8_pic.a utf8shared/*.o
91
 
        touch $@
92
 
 
93
 
build: $(buildtarget)
94
 
        $(checkdir)
95
 
        touch build
 
67
build-stamp=$(STAMP_DIR)/build-stamp
 
68
configure-stamp=$(STAMP_DIR)/configure-stamp
 
69
 
 
70
$(configure-stamp):  $(patched)
 
71
        dh_testdir
 
72
        ( cd $(BUILD_TREE) && ./configure $(GPMSUPPORT) $(NOSTRIP) )
 
73
        touch $@
 
74
 
 
75
build: $(build-stamp)
 
76
$(build-stamp): $(configure-stamp)
 
77
        dh_testdir
 
78
        ( cd $(BUILD_TREE) && sgmltools --backend html tutorial.sgml )
 
79
        $(MAKE) -C $(BUILD_TREE) PYTHONVERS=python$(PYVER)
 
80
        ( cd $(BUILD_TREE) && ar cqv libnewt_pic.a shared/*.o )
 
81
        touch $@
96
82
 
97
83
clean:
98
 
        $(checkdir)
99
 
        -[ -f Makefile ] && make veryclean
100
 
        rm -rf  $(tmpshd) $(tmpdev) $(tmprun) $(tmppyt) $(tmptcl) $(tmppic) \
101
 
                $(tmputf8shd) $(tmputf8pic) \
102
 
                *-stamp build debian/files* debian/substvars debian/*.bak debian/*~ *~ \
103
 
                tutorial shared utf8shared config.h config.log \
104
 
                config.cache config.status Makefile libnewt_pic.a \
105
 
                libnewt-utf8_pic.a
106
 
        -[ -f debian/create-utf8.sh ] && chmod a+x debian/create-utf8.sh
 
84
        dh_testdir
 
85
        dh_testroot
 
86
        dh_clean 
 
87
        rm -rf $(SOURCE_DIR) $(STAMP_DIR)
 
88
        # rm -rf   debian/substvars debian/*.bak debian/*~ *~ 
107
89
 
108
90
binary: binary-indep binary-arch
109
91
 
110
92
binary-indep:
111
 
        true
112
 
 
113
 
binary-arch: $(binarytarget)
114
 
 
115
 
binary-shared: build checkroot
116
 
        $(checkdir)
117
 
        -[ -d $(tmpshd) ] && rm -rf $(tmpshd)
118
 
 
119
 
        install -d -m 755 $(tmpshd)/usr/lib
120
 
        make instroot=$(tmpshd) install-sh 
121
 
        rm -r $(tmpshd)/usr/lib/libnewt.so $(tmpshd)/usr/lib/whiptcl.so \
122
 
           $(tmpshd)/usr/lib/python*
123
 
        strip $(tmpshd)/usr/lib/libnewt.so.$(VERSION)
124
 
 
125
 
        install -d -m 755 $(docshd)
126
 
        install -m 644 debian/changelog $(docshd)/changelog.Debian
127
 
        gzip -9 $(docshd)/*
128
 
        install -m 644 debian/copyright $(docshd)/
129
 
 
130
 
        install -d -m 755 $(tmpshd)/DEBIAN
131
 
        m4 -D__PKG__=$(PACKAGEshd) <debian/postinst.shd >$(tmpshd)/DEBIAN/postinst
132
 
        chmod 755 $(tmpshd)/DEBIAN/postinst
133
 
        m4 -D__PKG__=$(PACKAGEshd) <debian/prerm >$(tmpshd)/DEBIAN/prerm
134
 
        chmod 755 $(tmpshd)/DEBIAN/prerm
135
 
        install -m 644 debian/shlibs $(tmpshd)/DEBIAN
136
 
        dpkg-shlibdeps $(tmpshd)/usr/lib/libnewt.so.$(VERSION)
137
 
        dpkg-gencontrol -isp -P$(tmpshd) -p$(PACKAGEshd)
138
 
 
139
 
        chmod -R go=rX $(tmpshd)
140
 
        chown -R root.root $(tmpshd)
141
 
        dpkg --build $(tmpshd) ..
142
 
 
143
 
binary-tcl: build checkroot
144
 
        $(checkdir)
145
 
        -[ -d $(tmptcl) ] && rm -rf $(tmptcl)
146
 
 
147
 
        install -d -m 755 $(tmptcl)/usr/lib
148
 
        make instroot=$(tmptcl) install-sh 
149
 
        rm -r $(tmptcl)/usr/lib/libnewt* $(tmptcl)/usr/lib/python*
150
 
 
151
 
        install -d -m 755 $(doctcl)
152
 
        install -m 644 debian/changelog $(doctcl)/changelog.Debian
153
 
        gzip -9 $(doctcl)/*
154
 
        install -m 644 debian/copyright $(doctcl)/
155
 
 
156
 
        install -d -m 755 $(tmptcl)/DEBIAN
157
 
        m4 -D__PKG__=$(PACKAGEtcl) <debian/postinst >$(tmptcl)/DEBIAN/postinst
158
 
        chmod 755 $(tmptcl)/DEBIAN/postinst
159
 
        m4 -D__PKG__=$(PACKAGEtcl) <debian/prerm >$(tmptcl)/DEBIAN/prerm
160
 
        chmod 755 $(tmptcl)/DEBIAN/prerm
161
 
        dpkg-gencontrol -isp -P$(tmptcl) -p$(PACKAGEtcl)
162
 
 
163
 
        chmod -R go=rX $(tmptcl)
164
 
        chown -R root.root $(tmptcl)
165
 
        dpkg --build $(tmptcl) ..
166
 
 
167
 
binary-python: build checkroot
168
 
        $(checkdir)
169
 
        -[ -d $(tmppyt) ] && rm -rf $(tmppyt)
170
 
 
171
 
        install -d -m 755 $(tmppyt)/usr/lib
172
 
        make instroot=$(tmppyt) install-sh 
173
 
        rm -r $(tmppyt)/usr/lib/libnewt* $(tmppyt)/usr/lib/whiptcl.so
174
 
 
175
 
        install -d -m 755 $(docpyt)
176
 
        install -m 644 debian/changelog $(docpyt)/changelog.Debian
177
 
        gzip -9 $(docpyt)/*
178
 
        install -d -m 755 $(docpyt)/examples
179
 
        install -m 644 peanuts.py popcorn.py $(docpyt)/examples
180
 
        #gzip -9 $(docpyt)/examples/*
181
 
        install -m 644 debian/copyright $(docpyt)/
182
 
 
183
 
        install -d -m 755 $(tmppyt)/DEBIAN
184
 
        m4 -D__PKG__=$(PACKAGEpyt) -D__PYVER__=$(PYVER) \
185
 
            <debian/postinst.pyt >$(tmppyt)/DEBIAN/postinst
186
 
        chmod 755 $(tmppyt)/DEBIAN/postinst
187
 
        m4 -D__PKG__=$(PACKAGEpyt) -D__PYVER__=$(PYVER) \
188
 
            <debian/prerm.pyt >$(tmppyt)/DEBIAN/prerm
189
 
        chmod 755 $(tmppyt)/DEBIAN/prerm
190
 
        dpkg-gencontrol -isp -P$(tmppyt) -p$(PACKAGEpyt)
191
 
 
192
 
        chmod -R go=rX $(tmppyt)
193
 
        chown -R root.root $(tmppyt)
194
 
        dpkg --build $(tmppyt) ..
195
 
 
196
 
binary-runtime: build checkroot
197
 
        $(checkdir)
198
 
        -[ -d $(tmprun) ] && rm -rf $(tmprun)
199
 
 
200
 
        install -d -m 755 $(tmprun)/usr/share/man $(tmprun)/usr/bin
201
 
        make instroot=$(tmprun) install 
202
 
        rm -rf $(tmprun)/usr/lib $(tmprun)/usr/include
203
 
 
204
 
        install -d -m 755 $(docrun)
205
 
        install -m 644 debian/changelog $(docrun)/changelog.Debian
206
 
        gzip -9 $(docrun)/*
207
 
        install -m 644 debian/copyright $(docrun)/
208
 
 
209
 
        install -d -m 755 $(tmprun)/DEBIAN
210
 
        m4 -D__PKG__=$(PACKAGErun) <debian/postinst >$(tmprun)/DEBIAN/postinst
211
 
        chmod 755 $(tmprun)/DEBIAN/postinst
212
 
        m4 -D__PKG__=$(PACKAGErun) <debian/prerm >$(tmprun)/DEBIAN/prerm
213
 
        chmod 755 $(tmprun)/DEBIAN/prerm
214
 
        dpkg-shlibdeps -pwhiptail $(tmprun)/usr/bin/whiptail
215
 
        dpkg-gencontrol -isp -P$(tmprun) -p$(PACKAGErun)
216
 
 
217
 
        chmod -R go=rX $(tmprun)
218
 
        chown -R root.root $(tmprun)
219
 
        dpkg --build $(tmprun) ..
220
 
 
221
 
binary-devel: build checkroot
222
 
        $(checkdir)
223
 
        -[ -d $(tmpdev) ] && rm -rf $(tmpdev)
224
 
 
225
 
        install -d -m 755 $(tmpdev)/usr/lib
226
 
        make instroot=$(tmpdev) install 
227
 
        rm -rf $(tmpdev)/usr/bin $(tmpdev)/usr/share/man
228
 
        rm -rf $(tmpdev)/usr/lib/libnewt.so.$(VERSION)
229
 
        rm -rf $(tmpdev)/usr/lib/libnewt.so.$(SONAME)
230
 
        rm -rf $(tmpdev)/usr/lib/whiptcl.so
231
 
        rm -rf $(tmpdev)/usr/lib/python$(PYVER)
232
 
        strip --strip-debug $(tmpdev)/usr/lib/libnewt.a
233
 
 
234
 
        install -d -m 755 $(docdev)
235
 
        install -m 644 debian/changelog $(docdev)/changelog.Debian
236
 
        gzip -9 $(docdev)/*
237
 
        install -d -m 755 $(docdev)/tutorial.html
238
 
        install -m 644 tutorial/* $(docdev)/tutorial.html/
239
 
        ln -si t1.html $(docdev)/tutorial.html/index.html
240
 
        install -d -m 755 $(docdev)/examples
241
 
        install -m 644 test*.c $(docdev)/examples
242
 
        gzip -9 $(docdev)/examples/*
243
 
        install -m 644 debian/copyright $(docdev)/
244
 
 
245
 
        install -d -m 755 $(tmpdev)/DEBIAN
246
 
        m4 -D__PKG__=$(PACKAGEdev) <debian/postinst >$(tmpdev)/DEBIAN/postinst
247
 
        chmod 755 $(tmpdev)/DEBIAN/postinst
248
 
        m4 -D__PKG__=$(PACKAGEdev) <debian/prerm >$(tmpdev)/DEBIAN/prerm
249
 
        chmod 755 $(tmpdev)/DEBIAN/prerm
250
 
        dpkg-gencontrol -isp -P$(tmpdev) -p$(PACKAGEdev) -Vlibcdev=$(LIBCDEV)
251
 
 
252
 
        chmod -R go=rX $(tmpdev)
253
 
        chown -R root.root $(tmpdev)
254
 
        dpkg --build $(tmpdev) ..
255
 
 
256
 
binary-pic: build checkroot
257
 
        $(checkdir)
258
 
        -[ -d $(tmppic) ] && rm -rf $(tmppic)
259
 
 
260
 
        install -d -m 755 $(tmppic)/usr/lib
261
 
        install -m 644 libnewt_pic.a $(tmppic)/usr/lib
262
 
 
263
 
        install -d -m 755 $(docpic)
264
 
        install -m 644 debian/changelog $(docpic)/changelog.Debian
265
 
        gzip -9 $(docpic)/*
266
 
        install -m 644 debian/copyright $(docpic)/
267
 
 
268
 
        install -d -m 755 $(tmppic)/DEBIAN
269
 
        m4 -D__PKG__=$(PACKAGEpic) <debian/postinst >$(tmppic)/DEBIAN/postinst
270
 
        chmod 755 $(tmppic)/DEBIAN/postinst
271
 
        m4 -D__PKG__=$(PACKAGEpic) <debian/prerm >$(tmppic)/DEBIAN/prerm
272
 
        chmod 755 $(tmppic)/DEBIAN/prerm
273
 
        dpkg-gencontrol -isp -P$(tmppic) -p$(PACKAGEpic)
274
 
 
275
 
        chmod -R go=rX $(tmppic)
276
 
        chown -R root.root $(tmppic)
277
 
        dpkg --build $(tmppic) ..
278
 
 
279
 
binary-shared-utf8: build checkroot
280
 
        $(checkdir)
281
 
        -[ -d $(tmputf8shd) ] && rm -rf $(tmputf8shd)
282
 
 
283
 
        install -d -m 755 $(tmputf8shd)/usr/lib
284
 
        make instroot=$(tmputf8shd) install-utf8sh 
285
 
        strip $(tmputf8shd)/usr/lib/libnewt-utf8.so.$(VERSION)
286
 
 
287
 
        install -d -m 755 $(docutf8shd)
288
 
        install -m 644 debian/changelog $(docutf8shd)/changelog.Debian
289
 
        gzip -9 $(docutf8shd)/*
290
 
        install -m 644 debian/copyright $(docutf8shd)/
291
 
 
292
 
        install -d -m 755 $(tmputf8shd)/DEBIAN
293
 
        m4 -D__PKG__=$(PACKAGEutf8shd) <debian/postinst.shd >$(tmputf8shd)/DEBIAN/postinst
294
 
        chmod 755 $(tmputf8shd)/DEBIAN/postinst
295
 
        m4 -D__PKG__=$(PACKAGEutf8shd) <debian/prerm >$(tmputf8shd)/DEBIAN/prerm
296
 
        chmod 755 $(tmputf8shd)/DEBIAN/prerm
297
 
        install -m 644 debian/shlibs $(tmputf8shd)/DEBIAN
298
 
        dpkg-shlibdeps $(tmputf8shd)/usr/lib/libnewt-utf8.so.$(VERSION)
299
 
        dpkg-gencontrol -isp -P$(tmputf8shd) -p$(PACKAGEutf8shd)
300
 
 
301
 
        chmod -R go=rX $(tmputf8shd)
302
 
        chown -R root.root $(tmputf8shd)
303
 
        dpkg --build $(tmputf8shd) ..
304
 
 
305
 
binary-pic-utf8: build checkroot
306
 
        $(checkdir)
307
 
        -[ -d $(tmputf8pic) ] && rm -rf $(tmputf8pic)
308
 
 
309
 
        install -d -m 755 $(tmputf8pic)/usr/lib
310
 
        install -m 644 libnewt-utf8_pic.a $(tmputf8pic)/usr/lib
311
 
 
312
 
        install -d -m 755 $(docutf8pic)
313
 
        install -m 644 debian/changelog $(docutf8pic)/changelog.Debian
314
 
        gzip -9 $(docutf8pic)/*
315
 
        install -m 644 debian/copyright $(docutf8pic)/
316
 
 
317
 
        install -d -m 755 $(tmputf8pic)/DEBIAN
318
 
        m4 -D__PKG__=$(PACKAGEutf8pic) <debian/postinst >$(tmputf8pic)/DEBIAN/postinst
319
 
        chmod 755 $(tmputf8pic)/DEBIAN/postinst
320
 
        m4 -D__PKG__=$(PACKAGEutf8pic) <debian/prerm >$(tmputf8pic)/DEBIAN/prerm
321
 
        chmod 755 $(tmputf8pic)/DEBIAN/prerm
322
 
        dpkg-gencontrol -isp -P$(tmputf8pic) -p$(PACKAGEutf8pic)
323
 
 
324
 
        chmod -R go=rX $(tmputf8pic)
325
 
        chown -R root.root $(tmputf8pic)
326
 
        dpkg --build $(tmputf8pic) ..
327
 
 
328
 
define checkdir
329
 
        test -f newt.h
330
 
endef
331
 
 
332
 
source diff:
333
 
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
334
 
 
335
 
checkroot:
336
 
        $(checkdir)
337
 
        [ `whoami` = root ]
338
 
 
339
 
.PHONY: binary-arch clean source diff checkroot binary binary-indep
 
93
 
 
94
binary-arch: $(LIB_PKG) $(DEV_PKG) $(PIC_PKG) $(TCL_PKG) $(PYTHON_PKG) $(WHIPTAIL_PKG)
 
95
 
 
96
$(LIB_PKG): build
 
97
        dh_testdir
 
98
        dh_testroot 
 
99
        dh_installdirs -p $@ 
 
100
        dh_install -p $@ --sourcedir=$(BUILD_TREE)
 
101
        chmod +x $(BUILD_TREE)/mkinstalldirs
 
102
        $(MAKE) -C $(BUILD_TREE)/po \
 
103
                DESTDIR=../../../debian/$@/usr HAVE_XGETTEXT=yes install
 
104
        dh_strip -p $@
 
105
        dh_makeshlibs -p $@
 
106
        dh_shlibdeps -L $(LIB_PKG) -l debian/$@/usr/lib
 
107
        dh_installdocs -p $@  -p $@ $(BUILD_TREE)/newt.spec
 
108
        dh_link -p $@  /usr/lib/libnewt.so.$(VERSION) /usr/lib/libnewt.so.$(SONAME)
 
109
        rm debian/$@/usr/lib/libnewt.so
 
110
        # Currently disabled, as debian-test has been removed.
 
111
        # chmod +x debian/whiptail/usr/lib/debian-test/tests/whiptail/test-newt.sh/test-newt.sh
 
112
        dh_installchangelogs -p $@ $(BUILD_TREE)/CHANGES
 
113
        dh_compress -p $@
 
114
        dh_installdeb  -p $@
 
115
        dh_fixperms -p $@
 
116
        dh_gencontrol -p $@ 
 
117
        dh_md5sums -p $@
 
118
        dh_builddeb -p $@
 
119
 
 
120
$(PIC_PKG): build
 
121
        dh_testdir
 
122
        dh_testroot 
 
123
        dh_installdirs -p $@
 
124
        dh_install -p $@ --sourcedir=$(BUILD_TREE)
 
125
        dh_strip -p $@
 
126
        dh_makeshlibs -p $@
 
127
        dh_installdocs -p $@  -p $@ $(BUILD_TREE)/newt.spec
 
128
        # Currently disabled, as debian-test has been removed.
 
129
        # chmod +x debian/whiptail/usr/lib/debian-test/tests/whiptail/test-newt.sh/test-newt.sh
 
130
        dh_installchangelogs -p $@ $(BUILD_TREE)/CHANGES
 
131
        dh_compress -p $@
 
132
        dh_shlibdeps -p $@  -ldebian/$@/usr/lib
 
133
        dh_fixperms -p $@
 
134
        dh_installdeb  -p $@
 
135
        dh_gencontrol -p $@ 
 
136
        dh_md5sums -p $@
 
137
        dh_builddeb -p $@
 
138
 
 
139
$(DEV_PKG): build
 
140
        dh_testdir
 
141
        dh_testroot 
 
142
        dh_installdirs -p $@
 
143
        dh_install -p $@ --sourcedir=$(BUILD_TREE)
 
144
        dh_strip -p $@
 
145
        dh_makeshlibs -p $@
 
146
        dh_installdocs -p $@  -p $@ $(BUILD_TREE)/newt.spec
 
147
        dh_link -p $@ /usr/lib/libnewt.so.$(VERSION) /usr/lib/libnewt.so
 
148
        dh_link -p $@ \
 
149
          /usr/share/doc/libnewt-dev/tutorial.html/t1.html \
 
150
          /usr/share/doc/libnewt-dev/tutorial.html/index.html   
 
151
        # Currently disabled, as debian-test has been removed.
 
152
        # chmod +x debian/whiptail/usr/lib/debian-test/tests/whiptail/test-newt.sh/test-newt.sh
 
153
        dh_installchangelogs -p $@ $(BUILD_TREE)/CHANGES
 
154
        dh_installexamples -p $@ 
 
155
        dh_compress -p $@
 
156
        dh_shlibdeps -p $@ -ldebian/$@/usr/lib
 
157
        dh_fixperms -p $@
 
158
        dh_installdeb  -p $@
 
159
        dh_gencontrol -p $@ 
 
160
        dh_md5sums -p $@
 
161
        dh_builddeb -p $@
 
162
 
 
163
$(TCL_PKG): build
 
164
        dh_testdir
 
165
        dh_testroot 
 
166
        dh_installdirs -p $@
 
167
        dh_install -p $@ --sourcedir=$(BUILD_TREE)
 
168
        dh_strip -p $@
 
169
        dh_makeshlibs -p $@
 
170
        dh_installdocs -p $@  -p $@ $(BUILD_TREE)/newt.spec
 
171
        # Currently disabled, as debian-test has been removed.
 
172
        # chmod +x debian/whiptail/usr/lib/debian-test/tests/whiptail/test-newt.sh/test-newt.sh
 
173
        dh_installchangelogs -p $@ $(BUILD_TREE)/CHANGES
 
174
        dh_compress -p $@
 
175
        dh_shlibdeps -p $@ -ldebian/$@/usr/lib
 
176
        dh_fixperms -p $@
 
177
        dh_installdeb  -p $@
 
178
        dh_gencontrol -p $@ 
 
179
        dh_md5sums -p $@
 
180
        dh_builddeb -p $@
 
181
 
 
182
$(PYTHON_PKG): build
 
183
        dh_testdir
 
184
        dh_testroot 
 
185
        dh_installdirs -p $@
 
186
        dh_install -p $@ --sourcedir=$(BUILD_TREE)
 
187
        dh_strip -p $@
 
188
        dh_makeshlibs -p $@
 
189
        dh_python -p $@
 
190
        dh_installdocs -p $@  -p $@ $(BUILD_TREE)/newt.spec
 
191
        # Currently disabled, as debian-test has been removed.
 
192
        # chmod +x debian/whiptail/usr/lib/debian-test/tests/whiptail/test-newt.sh/test-newt.sh
 
193
        dh_installchangelogs -p $@ $(BUILD_TREE)/CHANGES
 
194
        dh_installexamples -p $@
 
195
        dh_compress -p $@
 
196
        dh_shlibdeps -p $@ -ldebian/$@/usr/lib
 
197
        dh_fixperms -p $@
 
198
        dh_installdeb  -p $@
 
199
        dh_gencontrol -p $@ 
 
200
        dh_md5sums -p $@
 
201
        dh_builddeb -p $@
 
202
 
 
203
$(WHIPTAIL_PKG): build
 
204
        dh_testdir
 
205
        dh_testroot 
 
206
        dh_installdirs -p $@
 
207
        dh_install -p $@ --sourcedir=$(BUILD_TREE)
 
208
        dh_strip -p $@
 
209
        dh_makeshlibs -p $@
 
210
        dh_installdocs -p $@  -p $@ $(BUILD_TREE)/newt.spec debian/README.whiptail
 
211
        dh_installman -p $@ $(BUILD_TREE)/whiptail.1
 
212
        # Currently disabled, as debian-test has been removed.
 
213
        # chmod +x debian/whiptail/usr/lib/debian-test/tests/whiptail/test-newt.sh/test-newt.sh
 
214
        dh_installchangelogs -p $@ $(BUILD_TREE)/CHANGES
 
215
        dh_compress -p $@
 
216
        dh_shlibdeps -p $@ -ldebian/$@/usr/lib -L $(LIB_PKG) -l debian/$(LIB_PKG)/usr/lib
 
217
        dh_fixperms -p $@
 
218
        dh_installdeb  -p $@
 
219
        dh_gencontrol -p $@ 
 
220
        dh_md5sums -p $@
 
221
        dh_builddeb -p $@
 
222
 
 
223
.PHONY: binary-arch clean source diff  binary binary-indep