2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2002-05-24 03:21:23 +08:00
|
|
|
#
|
2011-02-10 02:22:40 +08:00
|
|
|
# links
|
2002-05-24 03:21:23 +08:00
|
|
|
#
|
2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2002-05-24 03:21:23 +08:00
|
|
|
|
2015-09-21 21:21:26 +08:00
|
|
|
LINKS_VERSION = 2.12
|
|
|
|
LINKS_SOURCE = links-$(LINKS_VERSION).tar.bz2
|
2011-02-10 02:22:40 +08:00
|
|
|
LINKS_SITE = http://links.twibright.com/download
|
2012-10-22 23:47:52 +08:00
|
|
|
LINKS_DEPENDENCIES = host-pkgconf
|
2014-06-18 03:05:49 +08:00
|
|
|
LINKS_LICENSE = GPLv2+
|
2012-12-03 12:46:11 +08:00
|
|
|
LINKS_LICENSE_FILES = COPYING
|
2002-05-24 03:21:23 +08:00
|
|
|
|
2011-02-10 02:22:40 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_LINKS_GRAPHICS),y)
|
2014-09-28 03:32:44 +08:00
|
|
|
LINKS_CONF_OPTS += --enable-graphics
|
2012-10-15 14:44:58 +08:00
|
|
|
LINKS_DEPENDENCIES += libpng
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXT),y)
|
2014-09-28 03:32:44 +08:00
|
|
|
LINKS_CONF_OPTS += --with-x
|
2012-10-15 14:44:58 +08:00
|
|
|
LINKS_DEPENDENCIES += xlib_libXt
|
|
|
|
else
|
2014-09-28 03:32:44 +08:00
|
|
|
LINKS_CONF_OPTS += --without-x
|
2012-10-15 14:44:58 +08:00
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB),y)
|
2011-02-10 02:22:40 +08:00
|
|
|
LINKS_CONF_ENV = ac_cv_path_DIRECTFB_CONFIG=$(STAGING_DIR)/usr/bin/directfb-config
|
2014-09-28 03:32:44 +08:00
|
|
|
LINKS_CONF_OPTS += --with-directfb
|
2012-10-15 14:44:58 +08:00
|
|
|
LINKS_DEPENDENCIES += directfb
|
|
|
|
else
|
2014-09-28 03:32:44 +08:00
|
|
|
LINKS_CONF_OPTS += --without-directfb
|
2012-10-15 14:44:58 +08:00
|
|
|
endif
|
2011-02-10 02:22:40 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
|
|
LINKS_DEPENDENCIES += jpeg
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TIFF),y)
|
2016-02-21 00:40:09 +08:00
|
|
|
LINKS_CONF_OPTS += --with-libtiff
|
2011-02-10 02:22:40 +08:00
|
|
|
LINKS_DEPENDENCIES += tiff
|
2016-02-21 00:40:09 +08:00
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-libtiff
|
2011-02-10 02:22:40 +08:00
|
|
|
endif
|
2016-02-21 00:40:10 +08:00
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --disable-graphics
|
2011-02-10 02:22:40 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
2016-02-21 00:40:08 +08:00
|
|
|
LINKS_CONF_OPTS += --with-bzip2
|
2011-02-10 02:22:40 +08:00
|
|
|
LINKS_DEPENDENCIES += bzip2
|
2016-02-21 00:40:08 +08:00
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-bzip2
|
2011-02-10 02:22:40 +08:00
|
|
|
endif
|
|
|
|
|
2016-02-11 04:58:41 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVENT),y)
|
2016-02-21 00:40:07 +08:00
|
|
|
LINKS_CONF_OPTS += --with-libevent
|
2016-02-11 04:58:41 +08:00
|
|
|
LINKS_DEPENDENCIES += libevent
|
2016-02-21 00:40:07 +08:00
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-libevent
|
2016-02-11 04:58:41 +08:00
|
|
|
endif
|
|
|
|
|
2011-02-10 02:22:40 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
LINKS_DEPENDENCIES += openssl
|
|
|
|
endif
|
|
|
|
|
2016-02-11 04:58:42 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_XZ),y)
|
2016-02-21 00:40:05 +08:00
|
|
|
LINKS_CONF_OPTS += --with-lzma
|
2016-02-11 04:58:42 +08:00
|
|
|
LINKS_DEPENDENCIES += xz
|
2016-02-21 00:40:05 +08:00
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-lzma
|
2016-02-11 04:58:42 +08:00
|
|
|
endif
|
|
|
|
|
2011-02-10 02:22:40 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
2016-02-21 00:40:04 +08:00
|
|
|
LINKS_CONF_OPTS += --with-zlib
|
2011-02-10 02:22:40 +08:00
|
|
|
LINKS_DEPENDENCIES += zlib
|
2016-02-21 00:40:04 +08:00
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-zlib
|
2011-02-10 02:22:40 +08:00
|
|
|
endif
|
2002-05-24 03:21:23 +08:00
|
|
|
|
2012-07-03 06:07:32 +08:00
|
|
|
$(eval $(autotools-package))
|