source: pkg/raul/main/pixman/trunk/debian/rules @ 7010

Revision 7010, 2.4 KB checked in by alanbach-guest, 2 years ago (diff)
  • Sync'd with Debian 0.21.2-1
  • Property svn:executable set to *
Line 
1#!/usr/bin/make -f
2
3include /usr/share/quilt/quilt.make
4
5PACKAGE = libpixman-1-0
6SHLIBS_VERSION = 0.19.4
7
8# Disable Gtk+ autodetection:
9confflags = --disable-gtk
10
11CFLAGS = -Wall -g
12ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
13        CFLAGS += -O0
14else
15        CFLAGS += -O2
16endif
17ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
18        NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
19        MAKEFLAGS += -j$(NUMJOBS)
20endif
21
22DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
23DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
24DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
25ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
26        confflags += --build=$(DEB_HOST_GNU_TYPE)
27else
28        confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
29endif
30
31autogen: autogen-stamp
32autogen-stamp: $(QUILT_STAMPFN)
33        dh_testdir
34        autoreconf -vfi
35        touch $@
36
37config: config-stamp
38config-stamp: autogen-stamp
39        dh_testdir
40        test -d build || mkdir build
41        cd build && \
42        ../configure \
43          --prefix=/usr \
44          --mandir=\$${prefix}/share/man \
45          --infodir=\$${prefix}/share/info \
46          $(confflags) \
47          CFLAGS="$(CFLAGS)"
48        touch $@
49
50
51build: build-stamp
52build-stamp: config-stamp
53        dh_testdir
54        cd build && $(MAKE)
55        cd build && $(MAKE) check
56
57        touch $@
58
59clean: unpatch
60        dh_testdir
61        dh_testroot
62        rm -f autogen-stamp config-stamp build-stamp install-stamp
63
64        rm -f config.cache config.log config.status
65        rm -f */config.cache */config.log */config.status
66        rm -f conftest* */conftest*
67        rm -rf autom4te.cache */autom4te.cache
68        rm -rf build
69        find -name Makefile.in -delete
70        rm -f compile config.guess config.sub configure depcomp install-sh
71        rm -f ltmain.sh missing INSTALL aclocal.m4 config.h.in
72
73        dh_clean
74
75install: install-stamp
76install-stamp: build-stamp
77        dh_testdir
78        dh_testroot
79        dh_clean -k
80        dh_installdirs
81
82        cd build && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
83        touch $@
84
85# Install architecture-dependent files here.
86binary-arch: install
87        dh_testdir
88        dh_testroot
89
90        dh_installdocs
91        dh_install --sourcedir=debian/tmp --list-missing
92        dh_installchangelogs ChangeLog
93        dh_link
94        dh_strip --dbg-package=$(PACKAGE)-dbg
95        dh_compress
96        dh_fixperms
97        dh_makeshlibs -p$(PACKAGE) --add-udeb $(PACKAGE)-udeb -V"$(PACKAGE) (>= $(SHLIBS_VERSION))" -- -c4
98        dh_installdeb
99        dh_shlibdeps
100        dh_gencontrol
101        dh_md5sums
102        dh_builddeb
103
104binary-indep: install
105# Nothing to do
106
107binary: binary-indep binary-arch
108.PHONY: autogen config build clean binary-indep binary-arch binary install
Note: See TracBrowser for help on using the repository browser.