~ubuntu-branches/ubuntu/saucy/flac/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Fabian Greffrath
  • Date: 2013-06-07 10:24:30 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20130607102430-x7e7zt462c0tuetp
Tags: 1.3.0-1
* Imported Upstream version 1.3.0 (Closes: #527542, #705601).
* Update debian/watch file, thanks Ulrich Klauer (Closes: #710062).
* Revert "Remove manpages from master branch."
* Imported Upstream version 1.3.0
* Convert package to "3.0 (quilt)" source format.
* Remove all patches, they have either been merged upstream or do not
  apply anymore (tested).
* Explicitly enable static libraries.
* Simplify debian/libflac-doc.install.
* Bump shlibs for added symbols.
* Remove needless Build-Depends: libid3-3.8.3-dev.
* Update Homepage field.
* Repair upstream manpage regeneration rule.
* Bump Build-Depends: debhelper (>= 9).
* Fix vcs-field-not-canonical.
* Import two patches from upstream GIT:
  + Add missing config.h includes.
  + Fix local_strcat() to terminate string correctly.
* Disable 3DNow! optimizations, enable SSE only on amd64, enable Altivec
  only on ppc64, disable ASM optimizations elsewhere.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
 
3
export DEB_HOST_ARCH_CPU  ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
 
4
 
 
5
# 3DNow! is deprecated even on amd64
 
6
OPTFLAGS := --disable-3dnow
 
7
 
 
8
# Enable SSE only on amd64
 
9
ifeq ($(DEB_HOST_ARCH_CPU),amd64)
 
10
        OPTFLAGS += --disable-altivec --enable-sse
 
11
# Enable Altivec only on ppc64
 
12
else ifeq ($(DEB_HOST_ARCH_CPU),ppc64)
 
13
        OPTFLAGS += --enable-altivec --disable-sse
 
14
else
 
15
        OPTFLAGS += --disable-asm-optimizations --disable-sse --disable-altivec
 
16
endif
 
17
 
3
18
%:
4
 
        dh $@ --with quilt,autoreconf
 
19
        dh $@ --with autoreconf
5
20
 
6
21
override_dh_auto_configure:
7
22
        dh_auto_configure -- \
8
23
                --disable-rpath \
9
24
                --disable-xmms-plugin \
10
 
                --disable-asm-optimizations
 
25
                $(OPTFLAGS) \
 
26
                --enable-static
11
27
 
12
28
override_dh_auto_test:
13
29
        dh_auto_test --no-act
14
30
 
15
31
override_dh_makeshlibs:
16
 
        dh_makeshlibs -plibflac8 -V "libflac8 (>= 1.2.1)"
17
 
        dh_makeshlibs -plibflac++6 -V "libflac++6 (>= 1.2.1)"
 
32
        dh_makeshlibs -plibflac8 -V "libflac8 (>= 1.3.0)"
 
33
        dh_makeshlibs -plibflac++6 -V "libflac++6 (>= 1.3.0)"