source: pkg/frankie/main/pixman/trunk/debian/rules @ 6045

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