/[MITgcm]/MITgcm_contrib/mpack_src/mpack-1.6-4/rules
ViewVC logotype

Contents of /MITgcm_contrib/mpack_src/mpack-1.6-4/rules

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sat Feb 23 20:22:59 2008 UTC (17 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
Error occurred while calculating annotation data.
- get new version from: http://packages.qa.debian.org/m/mpack.html
  (files: mpack_1.6.orig.tar.gz, mpack_1.6-4.diff.gz, mpack_1.6-4.dsc)
  and apply patch 'mpack_1.6-4.diff' to original dir: mpack_1.6/
- this fix the MD5 coding on 64.bit platforms (well, seems to).
- added in Contrib to allow separate test (since building mpack seems fishy)

1 #!/usr/bin/make -f
2
3 DEBDIR = debian/tmp/DEBIAN
4 BINDIR = debian/tmp/usr/bin
5 MANDIR = debian/tmp/usr/share/man
6 DOCDIR = debian/tmp/usr/share/doc/mpack
7
8 ifeq (,$(findstring noopt,${DEB_BUILD_OPTIONS}))
9 OPT = -O2
10 endif
11 #ifeq (,$(findstring nostrip,${DEB_BUILD_OPTIONS}))
12 # STRIP = -s
13 #endif
14
15 STRIP = strip --remove-section=.comment --remove-section=.note
16
17 export DEB_HOST ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
18 export DEB_BUILD ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
19
20 build:
21 test -f debian/rules
22 ./configure --prefix=/usr --build ${DEB_BUILD} --host ${DEB_BUILD}
23 make CFLAGS="${OPT} -g -Wall"
24 touch build
25
26 clean:
27 test -f debian/rules
28 -rm -f build
29 -make clean
30 -rm -f debian/*~ core
31 -rm -f config.log config.cache config.status Makefile
32 -rm -f mpack.1 munpack.1
33 -rm -rf debian/tmp debian/files* debian/substvars
34
35 binary-indep:
36
37 binary-arch: build
38 test root = "`whoami`"
39 test -f debian/rules
40 -rm -rf debian/tmp
41 # programs
42 install -d ${BINDIR}
43 # install ${STRIP} -m 755 mpack ${BINDIR}
44 # install ${STRIP} -m 755 munpack ${BINDIR}
45 ${STRIP} mpack
46 ${STRIP} munpack
47 install -m 755 mpack ${BINDIR}
48 install -m 755 munpack ${BINDIR}
49 # manpages
50 install -d ${MANDIR}/man1
51 install -p -m 644 unixpk.man ${MANDIR}/man1/mpack.1
52 install -p -m 644 unixunpk.man ${MANDIR}/man1/munpack.1
53 gzip -9 ${MANDIR}/man1/*.1
54 # documentation
55 install -d ${DOCDIR}
56 install -p -m 644 README.unix ${DOCDIR}
57 install -p -m 644 debian/changelog ${DOCDIR}/changelog.Debian
58 gzip -9 ${DOCDIR}/*
59 install -p -m 644 debian/copyright ${DOCDIR}
60 # control files
61 install -d ${DEBDIR}
62 dpkg-shlibdeps ${BINDIR}/*
63 dpkg-gencontrol -isp
64 dpkg --build debian/tmp ..
65
66 binary: binary-indep binary-arch
67
68 .PHONY: binary binary-arch binary-indep clean

  ViewVC Help
Powered by ViewVC 1.1.22