~ubuntu-branches/ubuntu/karmic/x11-xserver-utils/karmic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Brice Goglin, Julien Cristau, Brice Goglin
  • Date: 2007-08-17 09:58:34 UTC
  • Revision ID: james.westby@ubuntu.com-20070817095834-ywge2nyzj1s3rqnd
Tags: 7.3+1
[ Julien Cristau ]
* iceauth 1.0.2.
  + removes blank line in the manpage (closes: #25285).
* xmodmap 1.0.3.
  + manpage updated to state that -pm is the default (closes: #236198)
* xgamma 1.0.2.
  + the manpage now explains how to print the gamma value more clearly
    (closes: #296021).
* xsetroot 1.0.2.
* xrdb 1.0.4.
  + fixes manpage typo (closes: #276286).
* Add upstream URL to debian/copyright, and update it from xgamma's COPYING
  file.

[ Brice Goglin ]
* Add menu entries for xrefresh and xvidtune.
* sessreg 1.0.3.
* xset 1.0.3.
* Add myself to Uploaders, and remove Branden with his permission.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# debian/rules for the Debian xutils package.
 
3
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>
 
4
# Copyright © 2005 Daniel Stone <daniel@fooishbar.org>
 
5
# Copyright © 2005 David Nusinow <dnusinow@debian.org>
 
6
 
 
7
# Uncomment this to turn on verbose mode.
 
8
#export DH_VERBOSE=1
 
9
 
 
10
# set this to the name of the main shlib's binary package
 
11
PACKAGE = x11-xserver-utils
 
12
 
 
13
include debian/xsfbs/xsfbs.mk
 
14
 
 
15
# This package contains multiple modules as shipped by upstream. Each module is # contained in a subdirectory in the root dir of the package. You must list each
 
16
# subdirectory explicitly so that the build system knows what to build
 
17
DEF_SUBDIRS=iceauth rgb sessreg xcmsdb xgamma xhost xmodmap xrandr xrdb xrefresh xset xsetmode xsetpointer xsetroot xstdcmap xtrap xvidtune
 
18
SUBDIRS=$(DEF_SUBDIRS)
 
19
 
 
20
CFLAGS = -Wall -g
 
21
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
22
        CFLAGS += -O0
 
23
else
 
24
        CFLAGS += -O2
 
25
endif
 
26
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
27
        INSTALL_PROGRAM += -s
 
28
endif
 
29
 
 
30
DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
31
DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
32
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
33
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
 
34
        confflags += --build=$(DEB_HOST_GNU_TYPE)
 
35
else
 
36
        confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
 
37
endif
 
38
 
 
39
 
 
40
build: genscripts patch build-stamp
 
41
build-stamp:
 
42
        dh_testdir
 
43
        for FILE in $(DEF_SUBDIRS); do \
 
44
                echo "$$FILE" ; \
 
45
                mkdir "$$FILE"-obj-$(DEB_BUILD_GNU_TYPE); \
 
46
                (cd "$$FILE"-obj-$(DEB_BUILD_GNU_TYPE) && \
 
47
                ../"$$FILE"/configure --prefix=/usr --mandir=\$${prefix}/share/man \
 
48
                             --infodir=\$${prefix}/share/info $(confflags) \
 
49
                             --disable-xprint \
 
50
                             CFLAGS="$(CFLAGS)" \
 
51
                             RSH=rsh \
 
52
                             MANCONF="/etc/manpath.config" && \
 
53
                $(MAKE)) || exit 1; \
 
54
        done
 
55
 
 
56
        touch build-stamp
 
57
 
 
58
clean: xsfclean
 
59
        dh_testdir
 
60
        dh_testroot
 
61
        rm -f build-stamp
 
62
 
 
63
        rm -f config.cache config.log config.status
 
64
        rm -f */config.cache */config.log */config.status
 
65
        rm -f conftest* */conftest*
 
66
        rm -rf autom4te.cache */autom4te.cache
 
67
        rm -rf *-obj-*
 
68
 
 
69
        dh_clean
 
70
 
 
71
install: build
 
72
        dh_testdir
 
73
        dh_testroot
 
74
        dh_clean -k
 
75
        dh_installdirs
 
76
 
 
77
        for FILE in $(SUBDIRS); do \
 
78
                cd "$$FILE"-obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install ; \
 
79
                cd ..; \
 
80
        done
 
81
 
 
82
# Build architecture-dependent files here.
 
83
binary-arch: build install
 
84
        dh_testdir
 
85
        dh_testroot
 
86
 
 
87
        dh_installdocs
 
88
        dh_install --sourcedir=debian/tmp -Xrgb.txt --list-missing
 
89
        dh_installmenu
 
90
        dh_installchangelogs
 
91
        dh_link
 
92
        dh_strip
 
93
        dh_compress
 
94
        dh_fixperms
 
95
        dh_installdeb
 
96
        dh_shlibdeps
 
97
        dh_makeshlibs
 
98
        dh_gencontrol
 
99
        dh_md5sums
 
100
        dh_builddeb
 
101
 
 
102
# Build architecture-independent files here.
 
103
binary-indep: build install
 
104
# Nothing to do
 
105
 
 
106
binary: binary-indep binary-arch
 
107
.PHONY: build clean binary-indep binary-arch binary install