~ubuntu-branches/ubuntu/saucy/speex/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Steve Langasek
  • Date: 2012-01-03 07:51:57 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: steve.langasek@canonical.com-20120103075157-bynrcie1kd83yfxc
Merge version 1.2~rc1-3 from Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
SHELL = /bin/bash
8
8
 
 
9
NUM_CPUS = $(shell getconf _NPROCESSORS_ONLN 2>/dev/null)
 
10
PARALLEL = $(subst parallel=,,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
11
NJOBS    = -j$(or $(PARALLEL),$(NUM_CPUS),1)
 
12
 
 
13
 
9
14
#export DH_VERBOSE=1
10
15
export DH_OPTIONS
11
16
 
19
24
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
20
25
 
21
26
DEB_HOST_ARCH_CPU  ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
 
27
DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
22
28
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
23
29
 
24
30
 
29
35
all_objs  = $(objdir) $(objdir_sse) $(objdir_fixedpoint)
30
36
arch_objs = $(objdir)
31
37
 
 
38
ifeq ($(DEB_HOST_ARCH_CPU),arm)
 
39
objdir             = $(objdir_fixedpoint)
 
40
 
 
41
ifneq ($(DEB_HOST_ARCH),armhf)
 
42
EXTRA_CONFIG_FLAGS = --enable-arm4-asm
 
43
endif
 
44
 
 
45
endif
 
46
 
32
47
ifeq ($(DEB_HOST_ARCH_CPU),i386)
33
48
arch_objs += $(objdir_sse)
34
49
endif
63
78
build-arch: $(foreach d,$(arch_objs),build-target-$(d)-stamp)
64
79
build-target-%-stamp : %/config.status
65
80
        dh_testdir
66
 
        cd $* && $(MAKE)
 
81
        $(MAKE) $(NJOBS) -C $*
67
82
        touch $@
68
83
 
69
84
build-indep: build-indep-stamp
83
98
            dh_install -plibspeex1    $(objdir_sse)/libspeex/.libs/libspeex.so.*    usr/lib/$(DEB_HOST_MULTIARCH)/sse2; \
84
99
            dh_install -plibspeexdsp1 $(objdir_sse)/libspeex/.libs/libspeexdsp.so.* usr/lib/$(DEB_HOST_MULTIARCH)/sse2; \
85
100
        fi
 
101
        dh_install -plibspeex1    $(objdir)/libspeex/.libs/libspeex.so.*    usr/lib/$(DEB_HOST_MULTIARCH)
 
102
        dh_install -plibspeexdsp1 $(objdir)/libspeex/.libs/libspeexdsp.so.* usr/lib/$(DEB_HOST_MULTIARCH)
 
103
        dh_install -plibspeex-dev -plibspeexdsp-dev -pspeex --sourcedir=debian/tmp
86
104
        touch $@
87
105
 
88
106
install-indep:
106
124
binary-arch: build-arch install-arch
107
125
        dh_testdir
108
126
        dh_testroot
109
 
        dh_install -a --sourcedir=debian/tmp
110
127
        dh_installdocs -a
111
128
        dh_installman -a
112
129
        dh_installchangelogs -a
113
 
        dh_strip -a
 
130
        dh_strip -a --dbg-package=libspeex-dbg
114
131
        dh_compress -a
115
132
        dh_fixperms -a
116
133
        dh_makeshlibs -plibspeex1 -V"libspeex1 (>= 1.2~beta3-1)"