~ubuntu-branches/ubuntu/hardy/hfsprogs/hardy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Rogério Brito
  • Date: 2007-07-20 09:37:02 UTC
  • Revision ID: james.westby@ubuntu.com-20070720093702-lpkfouao72t9s13i
Tags: 332.14-1
* Initial release (Closes: #433168)
* debian/control: add dependency on libssl-dev for the hash functions
* debian/control: add dependency on quilt
* debian/copyright: included the complete text of the APSL 2.0
* debian/links: create links for HFS variants of the utils and manpages
* debian/rules: use quilt to patch the source, so we get a Makefile for Linux
* debian/patches: incorporated patch from Gentoo to work with quilt
* debian/patches: included patch to fix *roff warning
* debian/patches: added patch to install bootdata on usr/share correctly
* debian/patches: added patch to enable the -a for fsck (Tks: Adam Adam Cécile)
* debian/dirs: added entry for directory mentioned above
* debian/rules: added the file for wrapper HFS filesystem
* debian/README.Debian: give the URL of the Gentoo instructions

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
 
 
4
# Auxiliary variables
 
5
pkgname=hfsprogs
 
6
tmpdir=debian/$(pkgname)
 
7
shrdir=$(tmpdir)/usr/share/$(pkgname)
 
8
docdir=$(tmpdir)/usr/share/doc/$(pkgname)
 
9
mansec=man8
 
10
mandir=$(tmpdir)/usr/share/man/$(mansec)
 
11
 
 
12
 
 
13
# CFLAGS
 
14
 
 
15
CFLAGS = -Wall -g
 
16
 
 
17
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
18
        CFLAGS += -O0
 
19
else
 
20
        CFLAGS += -O2
 
21
endif
 
22
 
 
23
###
 
24
 
 
25
configure: configure-stamp
 
26
configure-stamp:
 
27
        dh_testdir
 
28
 
 
29
        # Add here commands to configure the package.
 
30
        ln -sf debian/patches
 
31
        quilt push -a || test $$? = 2
 
32
 
 
33
        touch configure-stamp
 
34
 
 
35
build: build-stamp
 
36
 
 
37
build-stamp: configure-stamp 
 
38
        dh_testdir
 
39
 
 
40
        $(MAKE) -f Makefile.lnx
 
41
 
 
42
        touch $@
 
43
 
 
44
clean:
 
45
        dh_testdir
 
46
        dh_testroot
 
47
        rm -f build-stamp configure-stamp
 
48
 
 
49
        ln -sf debian/patches
 
50
        [ ! -f Makefile.lnx ] || $(MAKE) -f Makefile.lnx clean
 
51
        quilt pop -a -R || test $$? = 2
 
52
 
 
53
        # remove quilt remains
 
54
        rm -f   patches
 
55
        rm -rf .pc
 
56
 
 
57
        # Add here commands to clean up after the build process.
 
58
        dh_clean 
 
59
 
 
60
install: build
 
61
        dh_testdir
 
62
        dh_testroot
 
63
        dh_clean -k 
 
64
        dh_installdirs
 
65
 
 
66
        # Add here commands to install the package into debian/hfsprogs.
 
67
        install -m 644 newfs_hfs.tproj/hfsbootdata.img $(shrdir)/hfsbootdata
 
68
        install -m 755 newfs_hfs.tproj/newfs_hfs   $(tmpdir)/sbin/mkfs.hfsplus
 
69
        install -m 755 fsck_hfs.tproj/fsck_hfs     $(tmpdir)/sbin/fsck.hfsplus
 
70
        install -m 644 newfs_hfs.tproj/newfs_hfs.8 $(mandir)/mkfs.hfsplus.8
 
71
        install -m 644 fsck_hfs.tproj/fsck_hfs.8   $(mandir)/fsck.hfsplus.8
 
72
 
 
73
# Build architecture-independent files here.
 
74
binary-indep: build install
 
75
 
 
76
# Build architecture-dependent files here.
 
77
binary-arch: build install
 
78
        dh_testdir
 
79
        dh_testroot
 
80
        dh_installchangelogs
 
81
        dh_installdocs
 
82
        dh_installman
 
83
        dh_link
 
84
        dh_strip
 
85
        dh_compress
 
86
        dh_fixperms
 
87
        dh_installdeb
 
88
        dh_shlibdeps
 
89
        dh_gencontrol
 
90
        dh_md5sums
 
91
        dh_builddeb
 
92
 
 
93
binary: binary-indep binary-arch
 
94
.PHONY: build clean binary-indep binary-arch binary install configure