![Fabrice Fontaine](/assets/img/avatar_default.png)
mpjegtools fails to build on powerpc without altivec: build_sub44_mests.c: In function 'build_sub44_mests_altivec': build_sub44_mests.c:268:9: internal compiler error: Segmentation fault vr1 = vec_ld(rowstride, (unsigned char*)s44blk); It seems mpjegtools is wrongly detecting altivec support: configure: - PowerPC Optimizations: configure: - AltiVec enabled : true Fix this by adding BR2_PACKAGE_MJPEGTOOLS_SIMD_SUPPORT and setting --enable-simd-accel / --disable-simd-accel Fixes: - http://autobuild.buildroot.net/results/c9464712f43efb8954fd2e5460126ad193660353 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
63 lines
1.5 KiB
Makefile
63 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# mjpegtools
|
|
#
|
|
################################################################################
|
|
|
|
MJPEGTOOLS_VERSION = 2.1.0
|
|
MJPEGTOOLS_SITE = http://sourceforge.net/projects/mjpeg/files/mjpegtools/$(MJPEGTOOLS_VERSION)
|
|
MJPEGTOOLS_DEPENDENCIES = host-pkgconf jpeg
|
|
MJPEGTOOLS_LICENSE = GPL-2.0+
|
|
MJPEGTOOLS_LICENSE_FILES = COPYING
|
|
|
|
ifeq ($(BR2_PACKAGE_MJPEGTOOLS_SIMD_SUPPORT),y)
|
|
MJPEGTOOLS_CONF_OPTS += --enable-simd-accel
|
|
else
|
|
MJPEGTOOLS_CONF_OPTS += --disable-simd-accel
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
MJPEGTOOLS_CONF_OPTS += --with-libpng
|
|
MJPEGTOOLS_DEPENDENCIES += libpng
|
|
else
|
|
MJPEGTOOLS_CONF_OPTS += --without-libpng
|
|
endif
|
|
|
|
# expects X11 backend in sdl
|
|
ifeq ($(BR2_PACKAGE_SDL_X11),y)
|
|
MJPEGTOOLS_CONF_OPTS += --with-libsdl
|
|
MJPEGTOOLS_DEPENDENCIES += sdl
|
|
else
|
|
MJPEGTOOLS_CONF_OPTS += --without-libsdl
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL_GFX),y)
|
|
MJPEGTOOLS_CONF_OPTS += --with-sdlgfx
|
|
MJPEGTOOLS_DEPENDENCIES += sdl_gfx
|
|
else
|
|
MJPEGTOOLS_CONF_OPTS += --without-sdlgfx
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
|
|
MJPEGTOOLS_CONF_OPTS += --with-x
|
|
MJPEGTOOLS_DEPENDENCIES += xlib_libX11
|
|
else
|
|
MJPEGTOOLS_CONF_OPTS += --without-x
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXXF86DGA),y)
|
|
MJPEGTOOLS_CONF_OPTS += --with-dga
|
|
MJPEGTOOLS_DEPENDENCIES += xlib_libXxf86dga
|
|
else
|
|
MJPEGTOOLS_CONF_OPTS += --without-dga
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGTK2),y)
|
|
MJPEGTOOLS_CONF_OPTS += --with-gtk
|
|
MJPEGTOOLS_DEPENDENCIES += libgtk2
|
|
else
|
|
MJPEGTOOLS_CONF_OPTS += --without-gtk
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|