aboutsummaryrefslogtreecommitdiff
path: root/package/dillo/dillo.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/dillo/dillo.mk')
-rw-r--r--package/dillo/dillo.mk48
1 files changed, 48 insertions, 0 deletions
diff --git a/package/dillo/dillo.mk b/package/dillo/dillo.mk
new file mode 100644
index 0000000000..3655b77f36
--- /dev/null
+++ b/package/dillo/dillo.mk
@@ -0,0 +1,48 @@
+################################################################################
+#
+# dillo
+#
+################################################################################
+
+DILLO_VERSION = 3.0.4
+DILLO_SOURCE = dillo-$(DILLO_VERSION).tar.bz2
+DILLO_SITE = http://www.dillo.org/download
+DILLO_LICENSE = GPLv3+
+DILLO_LICENSE_FILES = COPYING
+# dillo-0001-configure.ac-change-fltk-config-test-to-be-more-cros.patch
+# touches configure.ac
+DILLO_AUTORECONF = YES
+
+DILLO_DEPENDENCIES = fltk
+
+DILLO_CONF_ENV = ac_cv_path_FLTK_CONFIG=$(STAGING_DIR)/usr/bin/fltk-config
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ DILLO_CONF_OPT += --enable-ssl
+ DILLO_DEPENDENCIES += openssl
+else
+ DILLO_CONF_OPT += --disable-ssl
+endif
+
+ifeq ($(BR2_PACKAGE_LIBPNG),y)
+ DILLO_CONF_OPT += --enable-png
+ DILLO_DEPENDENCIES += libpng
+ DILLO_CONF_ENV += PNG_CONFIG=$(STAGING_DIR)/usr/bin/libpng-config
+else
+ DILLO_CONF_OPT += --disable-png
+endif
+
+ifeq ($(BR2_PACKAGE_JPEG),y)
+ DILLO_CONF_OPT += --enable-jpeg
+ DILLO_DEPENDENCIES += libjpeg
+else
+ DILLO_CONF_OPT += --disable-jpeg
+endif
+
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+ DILLO_CONF_OPT += --enable-threaded-dns
+else
+ DILLO_CONF_OPT += --disable-threaded-dns
+endif
+
+$(eval $(autotools-package))