~ubuntu-branches/debian/stretch/sensors-applet/stretch

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Sam Morris
  • Date: 2010-01-09 13:35:47 UTC
  • Revision ID: james.westby@ubuntu.com-20100109133547-a1hy0qs872xiw1xv
Tags: 2.2.5-3
* Build-depend on docbook-xml and rarian-compat. Closes: #564397. 
* Rebuild build system with gnome-autogen.sh rather than autoreconf. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
 
3
# prevent 'installed' schemas from being registered on the build machine
3
4
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL := 1
4
5
 
5
 
%:
6
 
        dh $@
7
 
 
 
6
# detect cross-compiling and configure build appropriately
8
7
export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
9
8
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
10
9
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
13
12
    confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
14
13
endif
15
14
 
 
15
# standard install directories
16
16
confflags += --prefix=/usr
17
17
confflags += --libexecdir="\$${prefix}/lib/gnome-panel"
18
18
 
 
19
# rebuild everything
19
20
confflags += --enable-maintainer-mode
 
21
 
 
22
# one-time-build, don't waste time on dependency tracking
20
23
confflags += --disable-dependency-tracking
21
24
 
 
25
# don't do scrollkeeper at build-time
22
26
confflags += --disable-scrollkeeper
23
27
 
24
 
confflags += --with-nvidia=no
 
28
# remove un-necessary dependencies
 
29
confflags += LDFLAGS=-Wl,--as-needed
25
30
 
26
31
clean_paths := \
27
32
    aclocal.m4 \
29
34
    config.sub \
30
35
    configure \
31
36
    depcomp \
32
 
    gnome-doc-utils.make \
33
37
    INSTALL \
34
38
    install-sh \
 
39
    libtool \
35
40
    ltmain.sh \
36
41
    missing \
37
42
    mkinstalldirs
39
44
clean_filenames := \
40
45
    Makefile.in
41
46
 
 
47
%:
 
48
        dh $@
 
49
 
42
50
override_dh_auto_clean:
43
51
        dh_auto_clean
44
52
        for path in $(clean_paths); do rm -f "$$path"; done
45
53
        for filename in $(clean_filenames); do find -name "$$filename" -delete; done
46
54
 
47
55
override_dh_auto_configure:
48
 
        ln -s /usr/share/gnome-doc-utils/gnome-doc-utils.make .
49
 
        autoreconf --symlink --install --force
50
 
        ./configure $(confflags) LDFLAGS=-Wl,--as-needed
 
56
        gnome-autogen.sh $(confflags)
51
57
 
52
58
override_dh_makeshlibs:
53
59
        dh_makeshlibs --exclude=/usr/lib/sensors-applet/plugins/