~ubuntu-branches/ubuntu/oneiric/libsm/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Drew Parsons
  • Date: 2006-09-22 21:33:23 UTC
  • Revision ID: james.westby@ubuntu.com-20060922213323-w09wd41qlc13m4rg
Tags: 1:1.0.1-3
* Exclude libSM.la from dh_install.
* The library in debian/rules is libsm6 not libxau6! Closes: #383468.
* libsm-dev uses versioned depends on libice-dev from X11R7. 
  Closes: #372129.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# debian/rules for the Debian libxau 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 = libsm6
 
12
 
 
13
include debian/xsfbs/xsfbs.mk
 
14
 
 
15
CFLAGS = -Wall -g
 
16
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
17
        CFLAGS += -O0
 
18
else
 
19
        CFLAGS += -O2
 
20
endif
 
21
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
22
        INSTALL_PROGRAM += -s
 
23
endif
 
24
 
 
25
DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
26
DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
27
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
28
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
 
29
        confflags += --build=$(DEB_HOST_GNU_TYPE)
 
30
else
 
31
        confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
 
32
endif
 
33
 
 
34
 
 
35
build: build-stamp
 
36
build-stamp:
 
37
        dh_testdir
 
38
 
 
39
        test -d obj-$(DEB_BUILD_GNU_TYPE) || mkdir obj-$(DEB_BUILD_GNU_TYPE)
 
40
        cd obj-$(DEB_BUILD_GNU_TYPE) && \
 
41
        ../configure --prefix=/usr --mandir=\$${prefix}/share/man \
 
42
                     --infodir=\$${prefix}/share/info $(confflags) \
 
43
                     CFLAGS="$(CFLAGS)" 
 
44
        cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE)
 
45
 
 
46
        touch build-stamp
 
47
 
 
48
clean:
 
49
        dh_testdir
 
50
        dh_testroot
 
51
        rm -f build-stamp
 
52
 
 
53
        rm -f config.cache config.log config.status
 
54
        rm -f */config.cache */config.log */config.status
 
55
        rm -f conftest* */conftest*
 
56
        rm -rf autom4te.cache */autom4te.cache
 
57
        rm -rf obj-*
 
58
 
 
59
        dh_clean
 
60
 
 
61
install: build
 
62
        dh_testdir
 
63
        dh_testroot
 
64
        dh_clean -k
 
65
        dh_installdirs
 
66
 
 
67
        cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
 
68
 
 
69
# Build architecture-dependent files here.
 
70
binary-arch: build install
 
71
        dh_testdir
 
72
        dh_testroot
 
73
 
 
74
        dh_installdocs
 
75
        dh_install --sourcedir=debian/tmp --list-missing --exclude=libSM.la
 
76
        dh_installchangelogs
 
77
        dh_link
 
78
        dh_strip --dbg-package=$(PACKAGE)-dbg
 
79
        dh_compress
 
80
        dh_fixperms
 
81
        dh_makeshlibs
 
82
        dh_shlibdeps
 
83
        dh_installdeb
 
84
        dh_gencontrol
 
85
        dh_md5sums
 
86
        dh_builddeb
 
87
 
 
88
# Build architecture-independent files here.
 
89
binary-indep: build install
 
90
# Nothing to do
 
91
 
 
92
binary: binary-indep binary-arch
 
93
.PHONY: build clean binary-indep binary-arch binary install