~ubuntu-branches/debian/experimental/xfdesktop4/experimental

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez, Yves-Alexis Perez, Lionel Le Folgoc
  • Date: 2011-02-07 00:17:47 UTC
  • mfrom: (1.4.9 upstream) (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110207001747-htl6rhaglfhhik8g
Tags: 4.8.1-1
[ Yves-Alexis Perez ]
* New upstream development release.
* debian/control:
  - update standards version to 3.9.1.
  - refresh build-deps for Xfce 4.7.
  - add build dep on libxfce4ui-1-dev.
  - drop xfce4-panel build-dep since we don't build any plugin anymore.
  - add build-dep on hardening-includes.
* Switch to 3.0 (quilt) source format.
* debian/rules:
  - pick {C,LD}FLAGS from dpkg-buildflags.
  - drop --libexecdir, --disable-rpath and --enable-final from configure args.
  - drop usr/lib from chrpath call, it doesn't exist anymore.
  - don't rename generic terminal .desktop file, it's gone too.
  - pass docdir to configure.
  - add hardening flags to {C,LD}FLAGS
* debian/xfdesktop4-data.install:
  - drop usr/share/desktop-directories from install file.
* debian/xfdesktop4.install:
  - drop etc/ no menu is installed anymore.
  - drop usr/ too, no more desktop menu module nor panel plugin. 
* debian/copyright updated for new upstream release.

[ Lionel Le Folgoc ]
* New upstream bugfix release.
* debian/control: clean up build-deps since xfdesktop has been ported to gio,
  exo-1 and garcon.
* Refresh build-deps for Xfce 4.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
4
 
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
5
 
 
6
 
CFLAGS = -Wall -g
7
 
 
8
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
9
 
        CFLAGS += -O0
10
 
else
11
 
        CFLAGS += -O2
12
 
endif
13
 
 
14
 
config.status: configure
15
 
        
16
 
        dh_testdir
17
 
        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --disable-rpath --libexecdir=\$${prefix}/lib --enable-final --enable-thunarx --enable-exo --enable-desktop-menu-dir-monitor
18
 
 
19
 
build: build-stamp
20
 
build-stamp: config.status
21
 
 
22
 
        dh_testdir
23
 
        $(MAKE)
24
 
        touch build-stamp
25
 
 
26
 
clean:
27
 
 
28
 
        dh_testdir
29
 
        dh_testroot
30
 
        rm -f build-stamp 
31
 
 
32
 
        [ ! -f Makefile ] || $(MAKE) distclean
33
 
 
34
 
        dh_clean
35
 
 
36
 
install: build
37
 
 
38
 
        dh_testdir
39
 
        dh_testroot
40
 
        dh_clean -k
41
 
        dh_installdirs 
42
 
        dh_lintian
43
 
 
44
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
45
 
 
46
 
        rm -f $(CURDIR)/debian/tmp/usr/lib/xfce4/modules/*.la
47
 
        rm -f $(CURDIR)/debian/tmp/usr/lib/xfce4/modules/*.a
48
 
 
49
 
 
50
 
 
51
 
        chrpath -d -k $(CURDIR)/debian/tmp/usr/bin/* \
52
 
                $(CURDIR)/debian/tmp/usr/lib/xfce4/*/*
53
 
 
54
 
binary-indep: build install
55
 
 
56
 
binary-arch: build install
57
 
        
58
 
        dh_testdir
59
 
        dh_testroot
60
 
 
61
 
  # rename the generic terminal file
62
 
        mv $(CURDIR)/debian/tmp/usr/share/applications/xfce4-terminal.desktop \
63
 
                $(CURDIR)/debian/tmp/usr/share/applications/xfce4-term.desktop
64
 
        sed -i 's/xfce4-terminal/xfce4-term/' \
65
 
                $(CURDIR)/debian/tmp/etc/xdg/menus/xfce-applications.menu
66
 
  
67
 
        dh_installdocs README TODO
68
 
        dh_installmenu
69
 
        dh_installman -a
70
 
        
71
 
        dh_installchangelogs ChangeLog
72
 
 
 
3
include /usr/share/hardening-includes/hardening.make
 
4
 
 
5
CFLAGS=$(shell dpkg-buildflags --get CFLAGS)
 
6
LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)
 
7
LDFLAGS+=$(HARDENING_LDFLAGS) -Wl,-z,defs -Wl,--as-needed -Wl,-O1
 
8
CFLAGS+=$(HARDENING_CFLAGS)
 
9
 
 
10
export CFLAGS LDFLAGS
 
11
 
 
12
override_dh_auto_configure:
 
13
        dh_auto_configure -- --enable-thunarx --enable-exo \
 
14
                --docdir=\$${prefix}/share/doc/xfdesktop4-data
 
15
                --enable-desktop-menu-dir-monitor
 
16
 
 
17
override_dh_install:
 
18
        chrpath -d -k $(CURDIR)/debian/tmp/usr/bin/*
 
19
        
73
20
        dh_install --sourcedir=debian/tmp --fail-missing
74
21
        # why oh why is this necessary?
75
22
        rm -rf $(CURDIR)/debian/xfdesktop4-data/usr/share/man
76
23
 
 
24
override_dh_link:
77
25
        rm -rf $(CURDIR)/debian/xfdesktop4/usr/share/doc/xfdesktop4
78
26
        ln -s xfdesktop4-data $(CURDIR)/debian/xfdesktop4/usr/share/doc/xfdesktop4
79
27
        dh_link
80
 
        
 
28
 
 
29
override_dh_strip:
81
30
        dh_strip --dbg-package=xfdesktop4-dbg
82
 
        dh_compress
83
 
        
84
 
        dh_fixperms
85
 
        dh_installdeb
86
 
 
87
 
        dh_shlibdeps
88
 
        dh_gencontrol
89
 
 
90
 
        dh_md5sums
91
 
        dh_builddeb
92
 
 
93
 
binary: binary-indep binary-arch
94
 
.PHONY: build clean binary-indep binary-arch binary install 
 
31
 
 
32
%:
 
33
        dh $@