fontconfig: needs host-gperf
[buildroot-gz.git] / package / gstreamer1 / gst1-plugins-ugly / gst1-plugins-ugly.mk
blobd503555cf4626ef5972fe3895386875523d0a97d
1 ################################################################################
3 # gst1-plugins-ugly
5 ################################################################################
7 GST1_PLUGINS_UGLY_VERSION = 1.10.4
8 GST1_PLUGINS_UGLY_SOURCE = gst-plugins-ugly-$(GST1_PLUGINS_UGLY_VERSION).tar.xz
9 GST1_PLUGINS_UGLY_SITE = https://gstreamer.freedesktop.org/src/gst-plugins-ugly
10 GST1_PLUGINS_UGLY_LICENSE_FILES = COPYING
11 # GPL licensed plugins will append to GST1_PLUGINS_UGLY_LICENSE if enabled.
12 GST1_PLUGINS_UGLY_LICENSE = LGPLv2.1+
14 GST1_PLUGINS_UGLY_CONF_OPTS = --disable-examples --disable-valgrind
16 GST1_PLUGINS_UGLY_CONF_OPTS += \
17 --disable-a52dec \
18 --disable-amrnb \
19 --disable-amrwb \
20 --disable-cdio \
21 --disable-sidplay \
22 --disable-twolame
24 GST1_PLUGINS_UGLY_DEPENDENCIES = gstreamer1 gst1-plugins-base
26 ifeq ($(BR2_PACKAGE_ORC),y)
27 GST1_PLUGINS_UGLY_CONF_OPTS += --enable-orc
28 GST1_PLUGINS_UGLY_DEPENDENCIES += orc
29 endif
31 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_ASFDEMUX),y)
32 GST1_PLUGINS_UGLY_CONF_OPTS += --enable-asfdemux
33 else
34 GST1_PLUGINS_UGLY_CONF_OPTS += --disable-asfdemux
35 endif
37 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDLPCMDEC),y)
38 GST1_PLUGINS_UGLY_CONF_OPTS += --enable-dvdlpcmdec
39 else
40 GST1_PLUGINS_UGLY_CONF_OPTS += --disable-dvdlpcmdec
41 endif
43 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDSUB),y)
44 GST1_PLUGINS_UGLY_CONF_OPTS += --enable-dvdsub
45 else
46 GST1_PLUGINS_UGLY_CONF_OPTS += --disable-dvdsub
47 endif
49 ifeq ($(BR2_PACKAGE_GST_PLUGINS_UGL1_PLUGIN_XINGMUX),y)
50 GST1_PLUGINS_UGLY_CONF_OPTS += --enable-xingmux
51 else
52 GST1_PLUGINS_UGLY_CONF_OPTS += --disable-xingmux
53 endif
55 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_REALMEDIA),y)
56 GST1_PLUGINS_UGLY_CONF_OPTS += --enable-realmedia
57 else
58 GST1_PLUGINS_UGLY_CONF_OPTS += --disable-realmedia
59 endif
61 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDREAD),y)
62 # configure does not use pkg-config to detect libdvdread
63 ifeq ($(BR2_PACKAGE_LIBDVDCSS)$(BR2_STATIC_LIBS),yy)
64 GST1_PLUGINS_UGLY_CONF_ENV += LIBS="-ldvdcss"
65 endif
66 GST1_PLUGINS_UGLY_CONF_OPTS += --enable-dvdread
67 GST1_PLUGINS_UGLY_DEPENDENCIES += libdvdread
68 GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y
69 else
70 GST1_PLUGINS_UGLY_CONF_OPTS += --disable-dvdread
71 endif
73 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_LAME),y)
74 GST1_PLUGINS_UGLY_CONF_OPTS += --enable-lame
75 GST1_PLUGINS_UGLY_DEPENDENCIES += lame
76 else
77 GST1_PLUGINS_UGLY_CONF_OPTS += --disable-lame
78 endif
80 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_MAD),y)
81 GST1_PLUGINS_UGLY_CONF_OPTS += --enable-mad
82 GST1_PLUGINS_UGLY_DEPENDENCIES += libid3tag libmad
83 GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y
84 else
85 GST1_PLUGINS_UGLY_CONF_OPTS += --disable-mad
86 endif
88 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_MPG123),y)
89 GST1_PLUGINS_UGLY_CONF_OPTS += --enable-mpg123
90 GST1_PLUGINS_UGLY_DEPENDENCIES += mpg123
91 else
92 GST1_PLUGINS_UGLY_CONF_OPTS += --disable-mpg123
93 endif
95 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_MPEG2DEC),y)
96 GST1_PLUGINS_UGLY_CONF_OPTS += --enable-mpeg2dec
97 GST1_PLUGINS_UGLY_DEPENDENCIES += libmpeg2
98 GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y
99 else
100 GST1_PLUGINS_UGLY_CONF_OPTS += --disable-mpeg2dec
101 endif
103 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_X264),y)
104 GST1_PLUGINS_UGLY_CONF_OPTS += --enable-x264
105 GST1_PLUGINS_UGLY_DEPENDENCIES += x264
106 GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y
107 else
108 GST1_PLUGINS_UGLY_CONF_OPTS += --disable-x264
109 endif
111 # Add GPL license if GPL plugins enabled.
112 ifeq ($(GST1_PLUGINS_UGLY_HAS_GPL_LICENSE),y)
113 GST1_PLUGINS_UGLY_LICENSE += GPLv2
114 endif
116 # Use the following command to extract license info for plugins.
117 # # find . -name 'plugin-*.xml' | xargs grep license
119 $(eval $(autotools-package))