~ubuntu-branches/ubuntu/vivid/nvclock/vivid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Russ Allbery, Steve Langasek, Andreas Beckmann, Russ Allbery
  • Date: 2010-06-12 21:06:17 UTC
  • Revision ID: james.westby@ubuntu.com-20100612210617-hy98rjeg5iynsenu
Tags: 0.8b4-2
[ Steve Langasek ]
* lintian fixes: (closes: #520569)
  - debian/copyright: add an actual copyright notice.
  - debian/copyright: copy the GPLv2+ license text.
  - remove empty debian/nvclock.postinst - minor, but makes dpkg less
    efficient about package states
  - debian/control: GTK -> GTK+
  - debian/control: add ${misc:Depends} to the deps of all packages
  - debian/nvclock-{qt,gtk}.menu: quote the "needs" and "section"
    strings, and use the menu section that the Debian menu policy
    explicitly says this package should be using (System/Hardware) :-)
  - debian/rules, debian/compat: set the debhelper compat level in the
    authoritative place.
  - debian/rules: don't ignore errors from 'make clean'.
  - debian/control: Standards-Version to 3.8.0

[ Andreas Beckmann ]
* Team change: switch Uploaders from Randall to Russ.
* Switch to source format 3.0 (quilt).
* Update to upstream CVS as of 2009-06-22.  (Closes: #463890, #570325)
* Rerun autogen.sh since we patch configure.in.
* Add patch nvclock_hurd.debdiff from Barry deFreese to fix FTBFS on
  GNU/Hurd.  (Closes: #533918)
* Add patch link-with-all-libs.diff to fix FTBFS with binutils-gold.
  (Closes: #555781)
* Update to debhelper compat level 7 and Standards-Version 3.8.4.
* Ship upstream manpage nvclock.1 instead of the outdated Debian version.
* Add patch manpage-fixes.diff to fix typos and hyphenation in that manpage.
* Do not ship duplicate copies of the upstream changelog.
* Ship the smartdimmer binary, new in 0.8b4.
* Add manpage smartdimmer.1, generated with help2man.
* Add a watch file.
* Adjust suggestions to cover nvidia-glx-legacy-*, too.
* Add lintian overrides for problems in the upstream source that could be
  solved by repacking only.
* debian/rules: switch to dh and minimize.
* Remove obsolete empty maintainer scripts.
* Convert debian/copyright to DEP-5 format.
* Add Vcs-* URLs.

[ Russ Allbery ]
* Only build on i386 and amd64, since this package is useless without
  NVIDIA hardware.  (Closes: #551096)
* Flesh out debian/copyright with some files released under different
  licenses and add more copyright holders.
* Add a Homepage control field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# Sample debian/rules that uses debhelper.
3
 
# GNU copyright 1997 to 1999 by Joey Hess.
 
2
 
4
3
# Uncomment this to turn on verbose mode.
5
4
#export DH_VERBOSE=1
6
5
 
7
 
# This is the debhelper compatability version to use.
8
 
export DH_COMPAT=5
9
 
 
10
 
#WTF was this for?
11
 
#bindir = $(CURDIR)/debian/ksimus/usr/bin
12
 
 
13
 
INSTALL_DIR = install -p -d -o root -g root -m 755
14
 
INSTALL_FILE = install -p -o root -g root -m 644
15
 
 
16
6
ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH)
17
7
ifeq ($(ARCH),alpha)
18
8
  export CFLAGS=-O0 -mieee
23
13
  export CXXFLAGS=-ffunction-sections
24
14
endif
25
15
 
26
 
export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
27
 
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
28
 
 
29
 
# FOR AUTOCONF 2.52 AND NEWER ONLY
30
 
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
31
 
     confflags += --build $(DEB_HOST_GNU_TYPE)
32
 
  else
33
 
     confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
34
 
endif
35
 
    
36
 
 
37
 
build: build-stamp
38
 
 
39
 
build-stamp:
40
 
        dh_testdir
41
 
        ./configure $(confflags) --prefix=/usr --enable-gtk2 --enable-qt 
42
 
        $(MAKE)
43
 
        touch build-stamp
44
 
 
45
 
clean: debian-clean
46
 
        dh_clean
47
 
 
48
 
debian-clean:
49
 
        dh_testdir
50
 
        -rm -f *-stamp
51
 
        - $(MAKE) clean
52
 
        -$(MAKE) distclean
53
 
 
54
 
install: build
55
 
        dh_testdir
56
 
        dh_testroot
57
 
        dh_clean -k
58
 
        dh_installdirs
59
 
        mkdir -p $(CURDIR)/debian/tmp/usr/bin
60
 
        # Main install
61
 
        $(MAKE) install prefix=`pwd`/debian/tmp/usr docdir=`pwd`/debian/tmp/usr/share/nvclock
62
 
        
63
 
        dh_install --autodest --sourcedir=debian/tmp
64
 
 
65
 
 
66
 
# Build architecture-independent files here.
67
 
binary-indep: build install
68
 
# We have nothing to do by default.
69
 
 
70
 
# Build architecture-dependent files here.
71
 
binary-arch: build install
72
 
        dh_testdir
73
 
        dh_testroot
74
 
        dh_installdebconf
75
 
        dh_installdocs
76
 
#       dh_installexamples
77
 
        dh_installmenu
78
 
#       dh_installlogrotate
79
 
#       dh_installemacsen
80
 
#       dh_installpam
81
 
#       dh_installmime
82
 
#       dh_installinit
83
 
#       dh_installcron
84
 
        dh_installman
85
 
#       dh_installinfo
86
 
#       dh_undocumented
87
 
        dh_installchangelogs ChangeLog
88
 
        dh_link
89
 
        dh_strip
90
 
        dh_compress
91
 
        dh_fixperms
92
 
        dh_makeshlibs
93
 
        dh_installdeb
94
 
#       dh_perl
95
 
        dh_shlibdeps
96
 
        dh_gencontrol
97
 
        dh_md5sums
98
 
        dh_builddeb
99
 
 
100
 
binary: binary-indep binary-arch
101
 
.PHONY: build clean binary-indep binary-arch binary install configure
 
16
%:
 
17
        dh $@
 
18
 
 
19
override_dh_auto_configure:
 
20
        sh autogen.sh
 
21
        dh_auto_configure -- --enable-gtk --enable-qt
 
22
 
 
23
override_dh_install:
 
24
        dh_install --list-missing
 
25