be006f10e18ba8c6b6a7310434a8de85a5c0626f
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / dvdauthor / dvdauthor.mk
1 ################################################################################
2 #
3 # dvdauthor
4 #
5 ################################################################################
6
7 DVDAUTHOR_VERSION = 0.7.1
8 DVDAUTHOR_SITE = http://sourceforge.net/projects/dvdauthor/files/dvdauthor/$(DVDAUTHOR_VERSION)
9 DVDAUTHOR_DEPENDENCIES = host-pkgconf libxml2 freetype libpng
10 DVDAUTHOR_LICENSE = GPLv2+
11 DVDAUTHOR_LICENSE_FILES = COPYING
12 DVDAUTHOR_CONF_ENV = \
13         ac_cv_prog_FREETYPECONFIG=$(STAGING_DIR)/usr/bin/freetype-config \
14         ac_cv_path_XML2_CONFIG=$(STAGING_DIR)/usr/bin/xml2-config \
15         ac_cv_prog_GMAGICKCONFIG=
16
17 # configure.ac patched by 0001-configure.ac-fix-static-build.patch
18 DVDAUTHOR_AUTORECONF = YES
19 # add host-gettext for AM_ICONV macro
20 DVDAUTHOR_DEPENDENCIES += host-gettext
21
22 ifeq ($(BR2_PACKAGE_IMAGEMAGICK),y)
23 DVDAUTHOR_DEPENDENCIES += imagemagick
24 DVDAUTHOR_CONF_ENV += \
25         ac_cv_prog_MAGICKCONFIG=$(STAGING_DIR)/usr/bin/Magick-config
26 else
27 DVDAUTHOR_CONF_ENV += \
28         ac_cv_prog_MAGICKCONFIG=
29 endif
30
31 # Automatically detected by dvdauthor configure script, no way to
32 # disable.
33 ifeq ($(BR2_PACKAGE_FONTCONFIG),y)
34 DVDAUTHOR_DEPENDENCIES += fontconfig
35 endif
36
37 ifeq ($(BR2_PACKAGE_DVDAUTHOR_DVDUNAUTHOR),y)
38 DVDAUTHOR_DEPENDENCIES += libdvdread
39 DVDAUTHOR_CONF_OPTS += --enable-dvdunauthor
40 else
41 DVDAUTHOR_CONF_OPTS += --disable-dvdunauthor
42 endif
43
44 $(eval $(autotools-package))