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
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)
129
# pulse is not available on the hurd
130
confflags += $(call cond_enable,/usr/include/pulse/simple.h,libpulse)
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)
134
141
confflags += $(call cond_enable,/usr/include/openjpeg.h,libopenjpeg)
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)
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)
145
152
# comment out following line for LGPL versions of the libraries
152
159
lib1394-dev += libraw1394-dev, libdc1394-22-dev
155
# Sanitize injected compiler in linker flags
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))
159
167
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
160
168
# Various parts of Libav (and swscale) FTBFS when compiling with -fPIC