~ubuntu-branches/ubuntu/trusty/darts/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Hideki Yamane
  • Date: 2012-05-29 21:41:15 UTC
  • Revision ID: package-import@ubuntu.com-20120529214115-1wk2xf1q12g5jkam
Tags: 0.32-10
* debian/rules
  - convert to dh style
  - set "export DEB_BUILD_MAINT_OPTIONS := hardening=+all,-pie"
  - regenerate configure by autoreconf
* debian/control
  - set "Build-Depends: debhelper (>= 9)"
  - add "Build-Depends: autoconf, automake"
  - set "Standards-Version: 3.9.3"
* debian/compat
  - set 9 
* debian/source/format
  - set "3.0 (quilt)"
* debian/patches
  - add "set-AM_CFLAGS.patch" to enable hardening
  - add "fix-autoreconf.patch" to fix "underquoted definition of
    CHECK_CXX_STL" warning
  - add "adjust-directory.patch" to install binary to /usr/bin

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Uncomment this to turn on verbose mode.
3
3
#export DH_VERBOSE=1
4
4
 
5
 
 
6
 
# These are used for cross-compiling and for saving the configure script
7
 
# from having to guess our platform (since we know it already)
8
 
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
9
 
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
10
 
 
11
 
 
12
 
config.status: configure
13
 
        dh_testdir
14
 
        # Add here commands to configure the package.
15
 
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
16
 
        cp -f /usr/share/misc/config.sub config.sub
17
 
endif
18
 
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
19
 
        cp -f /usr/share/misc/config.guess config.guess
20
 
endif
21
 
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
22
 
 
23
 
build-arch: build
24
 
 
25
 
build-indep: build
26
 
 
27
 
build: build-stamp
28
 
 
29
 
build-stamp:  config.status
30
 
        dh_testdir
31
 
 
32
 
        # Add here commands to compile the package.
33
 
        $(MAKE) 
34
 
        #docbook-to-man debian/darts.sgml > darts.1
35
 
 
36
 
        touch $@
37
 
 
38
 
clean:
39
 
        dh_testdir
40
 
        dh_testroot
41
 
        rm -f build-stamp 
42
 
 
43
 
        # Add here commands to clean up after the build process.
44
 
        [ ! -f Makefile ] || $(MAKE) clean
45
 
        [ ! -f Makefile ] || rm Makefile
46
 
 
47
 
        rm -f config.sub config.guess config.status config.log config.h stamp-h
48
 
 
49
 
        dh_clean 
50
 
 
51
 
install: build
52
 
        dh_testdir
53
 
        dh_testroot
54
 
        dh_clean -k 
55
 
        dh_installdirs
56
 
 
57
 
        # Add here commands to install the package into debian/darts.
58
 
        $(MAKE) DESTDIR=$(CURDIR)/debian/darts pkglibexecdir=\$${prefix}/bin install
59
 
 
60
 
 
61
 
# Build architecture-independent files here.
62
 
binary-indep: build install
63
 
# We have nothing to do by default.
64
 
 
65
 
# Build architecture-dependent files here.
66
 
binary-arch: build install
67
 
        dh_testdir
68
 
        dh_testroot
69
 
        dh_installchangelogs ChangeLog
70
 
        dh_installdocs
71
 
        dh_installman
72
 
        dh_link
73
 
        dh_strip
 
5
export DEB_BUILD_MAINT_OPTIONS := hardening=+all,-pie
 
6
 
 
7
%:
 
8
        dh $@
 
9
 
 
10
override_dh_auto_configure:
 
11
        autoreconf -i
 
12
        dh_auto_configure
 
13
 
 
14
override_dh_compress:
74
15
        dh_compress -X.html,.css
75
 
        dh_fixperms
76
 
        dh_installdeb
77
 
        dh_shlibdeps
78
 
        dh_gencontrol
79
 
        dh_md5sums
80
 
        dh_builddeb
81
 
 
82
 
binary: binary-indep binary-arch
83
 
.PHONY: build clean binary-indep binary-arch binary install