~ubuntu-branches/ubuntu/raring/libav-extra/raring-security

« back to all changes in this revision

Viewing changes to debian/confflags

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-06-10 21:00:18 UTC
  • Revision ID: package-import@ubuntu.com-20120610210018-hzr5sruc2d1bvvjl
Tags: 4:0.8.3.0ubuntu1
* merge from 'main' package. Changes:
  - build against dirac, libopenjpeg, x264, mp3lame, librtmp and xvidcore,
    opencv, opencore (for AMR wb&nb),

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
confflags += --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
100
100
confflags += --enable-vdpau
101
101
confflags += --enable-bzlib
 
102
confflags += --enable-gnutls
 
103
confflags += --enable-libcdio
102
104
confflags += --enable-libgsm
103
105
confflags += --enable-libschroedinger
104
106
confflags += --enable-libspeex
112
114
ifeq      ($(DEB_HOST_ARCH),armel)
113
115
# this is required on Ubuntu lucid as it defaults to thumb2 and Libav has
114
116
# plenty of incompatible assembly; not sure how to detect that properly
115
 
confflags += --extra-cflags="-marm -fPIC -DPIC"
 
117
confflags += --enable-pic
116
118
endif
117
119
 
118
120
ifeq      ($(DEB_HOST_ARCH),powerpc)
124
126
# vaapi is not available on s390 and on the hurd
125
127
confflags += $(call cond_enable,/usr/include/va/va.h,vaapi)
126
128
 
 
129
# pulse is not available on the hurd
 
130
confflags += $(call cond_enable,/usr/include/pulse/simple.h,libpulse)
 
131
 
127
132
# this part below is intended for the 'Libav' package in ubuntu/multiverse
128
133
gpl_confflags += $(call cond_enable,/usr/include/dirac/libdirac_decoder/dirac_parser.h,libdirac)
129
134
gpl_confflags += $(call cond_enable,/usr/include/lame/lame.h,libmp3lame)
130
135
gpl_confflags += $(call cond_enable,/usr/include/librtmp/http.h,librtmp)
131
136
gpl_confflags += $(call cond_enable,/usr/include/x264.h,libx264)
132
137
gpl_confflags += $(call cond_enable,/usr/include/xvid.h,libxvid)
 
138
gpl_confflags += $(call cond_enable,/usr/include/frei0r.h,frei0r)
 
139
gpl_confflags += $(call cond_enable,/usr/include/opencv/cv.h,libopencv)
133
140
 
134
141
confflags += $(call cond_enable,/usr/include/openjpeg.h,libopenjpeg)
135
142
 
136
 
# Opencore-amr requires GPL v3
 
143
# Features that require GPL v3
137
144
v3_confflags += $(call cond_enable_v3,/usr/include/opencore-amrnb/interf_dec.h,libopencore-amrnb)
138
145
v3_confflags += $(call cond_enable_v3,/usr/include/opencore-amrwb/dec_if.h,libopencore-amrwb)
139
146
v3_confflags += $(call cond_enable_v3,/usr/include/vo-aacenc/voAAC.h,libvo-aacenc)
140
147
v3_confflags += $(call cond_enable_v3,/usr/include/vo-amrwbenc/enc_if.h,libvo-amrwbenc)
141
148
 
142
 
# AAC is considered non-free upstream
 
149
# FAAC is considered non-free upstream
143
150
confflags += $(call cond_enable_nf,/usr/include/faac.h,libfaac)
144
151
 
145
152
# comment out following line for LGPL versions of the libraries
152
159
  lib1394-dev += libraw1394-dev, libdc1394-22-dev
153
160
endif
154
161
 
155
 
# Sanitize injected compiler in linker flags
156
 
CFLAGS :=
157
 
LDFLAGS :=
 
162
# Enable hardened build flags through dpkg-buildflags
 
163
CFLAGS := $(filter-out -g -O2,$(shell dpkg-buildflags --get CFLAGS))
 
164
CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
 
165
LDFLAGS := $(filter-out %-Bsymbolic-functions,$(shell dpkg-buildflags --get LDFLAGS))
158
166
 
159
167
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
160
168
# Various parts of Libav (and swscale) FTBFS when compiling with -fPIC