16
16
DEB_TAR_SRCDIR = icu/source
17
17
DEB_CONFIGURE_USER_FLAGS = --disable-samples --enable-static
18
18
DEB_COMPRESS_EXCLUDE = html examples
19
DEB_INSTALL_EXAMPLES_libicu34-dev = \
19
DEB_INSTALL_EXAMPLES_libicu36-dev = \
20
20
build-tree/$(DEB_TAR_SRCDIR)/samples/*
21
21
# Include cdbs rules files.
22
22
include /usr/share/cdbs/1/rules/tarball.mk
24
24
include /usr/share/cdbs/1/rules/debhelper.mk
25
25
include /usr/share/cdbs/1/class/autotools.mk
27
# Suppress automatic running of test suite; we do it manually below.
28
DEB_BUILD_OPTIONS += nocheck
30
27
DEB_MAKE_INSTALL_TARGET += install-doc
32
# Turn off optimization on m68k in hopes of avoiding some internal
34
ifeq ($(shell dpkg --print-architecture),m68k)
35
CFLAGS := $(filter-out -O%,$(CFLAGS)) -O0
36
CXXFLAGS := $(filter-out -O%,$(CXXFLAGS)) -O0
39
# TEMPORARY (hopefully) -- icu 3.4 fails its test suite with gcc 4.0
40
# without -fno-strict-aliasing. This is verified to still be the case
42
CFLAGS += -fno-strict-aliasing
43
CXXFLAGS += -fno-strict-aliasing
46
30
$(RM) -r $(l_STAMPS)
51
35
$(RM) debian/compat *.cdbs-config_list
53
# Running the test suite here, even ignoring failure, may still create
54
# build problems if the test suite hangs, which it did on at least one
55
# occasion. I (qjb) have manually run the test suite on i386, ia64,
56
# and powerpc to ensure that we have a passing test suite on at least
57
# one little-endian, one big-endian, and one 64-bit system.
58
ifeq ($(l_RUN_CHECK), 1)
59
# Run the test suite so we can check its output in the buildd logs,
60
# but don't let a test suite failure cause overall failure.
61
common-post-build-impl::
62
-$(DEB_MAKE_INVOKE) check
65
install/libicu34-dev::
66
mkdir -p debian/$(cdbs_curpkg)/usr/share/man/man1
67
mkdir -p debian/$(cdbs_curpkg)/usr/share/man/man8
68
cp debian/misc/genbrk.1 debian/$(cdbs_curpkg)/usr/share/man/man1
69
cp debian/misc/icuswap.8 debian/$(cdbs_curpkg)/usr/share/man/man8
71
binary-post-install/libicu34-dev::
37
# As per upstream, icuswap is deprecated and should not be
39
binary-post-install/libicu36-dev::
72
40
find debian/$(cdbs_curpkg) -type f -name .cvsignore | xargs rm
41
rm debian/$(cdbs_curpkg)/usr/sbin/icuswap
74
43
# Install lintian override files
75
44
binary-post-install/%::