summaryrefslogtreecommitdiffstats
path: root/package/links/links.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/links/links.mk')
-rw-r--r--package/links/links.mk15
1 files changed, 13 insertions, 2 deletions
diff --git a/package/links/links.mk b/package/links/links.mk
index 4537b3a3e..5db2ff7e0 100644
--- a/package/links/links.mk
+++ b/package/links/links.mk
@@ -6,13 +6,24 @@
LINKS_VERSION = 2.5
LINKS_SITE = http://links.twibright.com/download
-LINKS_CONF_OPT = --without-x
LINKS_DEPENDENCIES = host-pkgconf
ifeq ($(BR2_PACKAGE_LINKS_GRAPHICS),y)
LINKS_CONF_OPT += --enable-graphics
+LINKS_DEPENDENCIES += libpng
+ifeq ($(BR2_PACKAGE_XLIB_LIBXT),y)
+LINKS_CONF_OPT += --with-x
+LINKS_DEPENDENCIES += xlib_libXt
+else
+LINKS_CONF_OPT += --without-x
+endif
+ifeq ($(BR2_PACKAGE_DIRECTFB),y)
LINKS_CONF_ENV = ac_cv_path_DIRECTFB_CONFIG=$(STAGING_DIR)/usr/bin/directfb-config
-LINKS_DEPENDENCIES += directfb libpng
+LINKS_CONF_OPT += --with-directfb
+LINKS_DEPENDENCIES += directfb
+else
+LINKS_CONF_OPT += --without-directfb
+endif
ifeq ($(BR2_PACKAGE_JPEG),y)
LINKS_DEPENDENCIES += jpeg
endif