~ubuntu-branches/ubuntu/jaunty/apr-util/jaunty-updates

« back to all changes in this revision

Viewing changes to debian/.svn/text-base/rules.svn-base

  • Committer: Bazaar Package Importer
  • Author(s): Tollef Fog Heen
  • Date: 2006-05-01 17:05:28 UTC
  • Revision ID: james.westby@ubuntu.com-20060501170528-tf2txx0p9rku6fhw
Tags: 1.2.7-2
* Fix override disparity.
* Compile without gdbm.
* Get rid of all the evil libtool hacks and adjust build-depends
  accordingly.
* Remove --includedir parameter and adjust config.layout instead.  This
  works around damage in newer autoconfs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
# Turn on VERBOSE output
 
4
#export DH_VERBOSE=1
 
5
export DH_OPTIONS
 
6
 
 
7
#enable dpatch
 
8
include /usr/share/dpatch/dpatch.make
 
9
 
 
10
# These are used for cross-compiling and for saving the configure script
 
11
# # from having to guess our platform (since we know it already)
 
12
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
13
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
14
 
 
15
CFLAGS := $(CFLAGS) -pipe -Wall -g -fPIC
 
16
 
 
17
# Enable debug builds
 
18
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 
19
CFLAGS += -O0
 
20
else
 
21
CFLAGS += -O2
 
22
endif
 
23
 
 
24
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
25
        INSTALL_PROGRAM += -s
 
26
endif
 
27
 
 
28
ifeq (,$(findstring notest,$(DEB_BUILD_OPTIONS)))
 
29
        TEST_TARGET = test
 
30
else
 
31
        TEST_TARGET =
 
32
endif
 
33
 
 
34
ifeq ($(DEB_BUILD_ARCH),i386)
 
35
        CONFFLAGS=apr_lock_method=USE_PROC_PTHREAD_SERIALIZE
 
36
else
 
37
        CONFFLAGS=ac_cv_func_pthread_mutexattr_setpshared=no ac_cv_func_sem_open=no
 
38
endif
 
39
 
 
40
CONFFLAGS += ac_cv_prog_AWK=mawk
 
41
 
 
42
SHELL=/bin/bash
 
43
 
 
44
config.status: configure
 
45
        dh_testdir
 
46
        ./buildconf --with-apr=$(shell apr-1-config --srcdir)
 
47
        CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" $(CONFFLAGS) ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --enable-layout=Debian --with-apr=/usr/bin/apr-1-config --with-ldap=yes --with-dbm=db43 --with-sqlite3 --with-pgsql=/usr --without-gdbm --without-sqlite2 --with-berkeley-db
 
48
 
 
49
build: patch-stamp build-stamp
 
50
 
 
51
build-stamp: config.status
 
52
        dh_testdir
 
53
 
 
54
        $(MAKE)
 
55
 
 
56
        touch $@
 
57
 
 
58
clean: unpatch
 
59
        dh_testdir
 
60
        dh_testroot
 
61
        rm -f build-stamp test-stamp
 
62
        -$(MAKE) distclean
 
63
 
 
64
        dh_clean
 
65
 
 
66
test: test-stamp
 
67
 
 
68
test-stamp: build
 
69
        dh_testdir
 
70
        $(MAKE) check
 
71
 
 
72
        touch $@
 
73
 
 
74
install: build $(TEST_TARGET)
 
75
        dh_testdir
 
76
        dh_testroot
 
77
        dh_clean -k
 
78
        dh_installdirs -a
 
79
 
 
80
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
 
81
 
 
82
binary-indep: build install
 
83
 
 
84
binary-arch: build install
 
85
        dh_testdir
 
86
        dh_testroot
 
87
        dh_installchangelogs CHANGES
 
88
        dh_installdocs
 
89
        dh_install -a
 
90
        dh_link
 
91
        dh_strip --dbg-package=libaprutil1-dbg
 
92
        dh_compress
 
93
        dh_fixperms
 
94
        dh_makeshlibs
 
95
        dh_installdeb
 
96
        dh_shlibdeps
 
97
        dh_gencontrol
 
98
        dh_md5sums
 
99
        dh_builddeb
 
100
 
 
101
binary: binary-indep binary-arch
 
102
.PHONY: build clean binary-indep binary-arch binary install