sysklogd: fix build on musl
[buildroot-gz.git] / package / xorriso / xorriso.mk
blobbe193221ec9a2b00376f465feee83ad3537eeb5e
1 ################################################################################
3 # xorriso
5 ################################################################################
7 XORRISO_VERSION = 1.4.2
8 XORRISO_SITE = $(BR2_GNU_MIRROR)/xorriso
9 XORRISO_LICENSE = GPLv3+
10 XORRISO_LICENSE_FILES = COPYING COPYRIGHT
11 # Disable everything until we actually need those features, and add the correct
12 # host libraries
13 HOST_XORRISO_CONF_OPTS = \
14 --disable-zlib \
15 --disable-bzip2 \
16 --disable-libcdio \
17 --disable-libreadline \
18 --disable-libedit \
19 --disable-libacl
21 ifeq ($(BR2_PACKAGE_LIBICONV),y)
22 XORRISO_DEPENDENCIES += libiconv
23 endif
25 ifeq ($(BR2_PACKAGE_LIBCDIO),y)
26 XORRISO_DEPENDENCIES += host-pkgconf libcdio
27 XORRISO_CONF_OPTS += \
28 --enable-pkg-check-modules \
29 --enable-libcdio
30 else
31 XORRISO_CONF_OPTS += --disable-libcdio
32 endif
34 ifeq ($(BR2_PACKAGE_READLINE),y)
35 XORRISO_DEPENDENCIES += readline
36 XORRISO_CONF_OPTS += --enable-libreadline
37 else
38 XORRISO_CONF_OPTS += --disable-libreadline
39 endif
41 ifeq ($(BR2_PACKAGE_ACL),y)
42 XORRISO_DEPENDENCIES += acl
43 XORRISO_CONF_OPTS += --enable-libacl
44 else
45 XORRISO_CONF_OPTS += --disable-libacl
46 endif
48 ifeq ($(BR2_PACKAGE_ATTR),y)
49 XORRISO_DEPENDENCIES += attr
50 XORRISO_CONF_OPTS += --enable-xattr
51 else
52 XORRISO_CONF_OPTS += --disable-xattr
53 endif
55 ifeq ($(BR2_PACKAGE_ZLIB),y)
56 XORRISO_DEPENDENCIES += zlib
57 XORRISO_CONF_OPTS += --enable-zlib
58 else
59 XORRISO_CONF_OPTS += --disable-zlib
60 endif
62 ifeq ($(BR2_PACKAGE_BZIP2),y)
63 XORRISO_DEPENDENCIES += bzip2
64 XORRISO_CONF_OPTS += --enable-libbz2
65 else
66 XORRISO_CONF_OPTS += --disable-libbz2
67 endif
69 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
70 XORRISO_CONF_OPTS += --enable-jtethreads
71 else
72 XORRISO_CONF_OPTS += --disable-jtethreads
73 endif
75 $(eval $(autotools-package))
76 $(eval $(host-autotools-package))