package/nbd: add option for the trdump utility
[buildroot-gz.git] / package / mjpegtools / mjpegtools.mk
blob76ae968d99d8cf955db6b869503ff361e93dc0d8
1 ################################################################################
3 # mjpegtools
5 ################################################################################
7 MJPEGTOOLS_VERSION = 2.1.0
8 MJPEGTOOLS_SITE = http://sourceforge.net/projects/mjpeg/files/mjpegtools/$(MJPEGTOOLS_VERSION)
9 MJPEGTOOLS_DEPENDENCIES = host-pkgconf jpeg
10 MJPEGTOOLS_LICENSE = GPLv2+
11 MJPEGTOOLS_LICENSE_FILES = COPYING
13 ifeq ($(BR2_PACKAGE_LIBPNG),y)
14 MJPEGTOOLS_CONF_OPTS += --with-libpng
15 MJPEGTOOLS_DEPENDENCIES += libpng
16 else
17 MJPEGTOOLS_CONF_OPTS += --without-libpng
18 endif
20 # expects X11 backend in sdl
21 ifeq ($(BR2_PACKAGE_SDL_X11),y)
22 MJPEGTOOLS_CONF_OPTS += --with-libsdl
23 MJPEGTOOLS_DEPENDENCIES += sdl
24 else
25 MJPEGTOOLS_CONF_OPTS += --without-libsdl
26 endif
28 ifeq ($(BR2_PACKAGE_SDL_GFX),y)
29 MJPEGTOOLS_CONF_OPTS += --with-sdlgfx
30 MJPEGTOOLS_DEPENDENCIES += sdl_gfx
31 else
32 MJPEGTOOLS_CONF_OPTS += --without-sdlgfx
33 endif
35 ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
36 MJPEGTOOLS_CONF_OPTS += --with-x
37 MJPEGTOOLS_DEPENDENCIES += xlib_libX11
38 else
39 MJPEGTOOLS_CONF_OPTS += --without-x
40 endif
42 ifeq ($(BR2_PACKAGE_XLIB_LIBXXF86DGA),y)
43 MJPEGTOOLS_CONF_OPTS += --with-dga
44 MJPEGTOOLS_DEPENDENCIES += xlib_libXxf86dga
45 else
46 MJPEGTOOLS_CONF_OPTS += --without-dga
47 endif
49 ifeq ($(BR2_PACKAGE_LIBGTK2),y)
50 MJPEGTOOLS_CONF_OPTS += --with-gtk
51 MJPEGTOOLS_DEPENDENCIES += libgtk2
52 else
53 MJPEGTOOLS_CONF_OPTS += --without-gtk
54 endif
56 $(eval $(autotools-package))