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
|
|
|
|
2020-10-03 16:20:43 +08:00
|
|
|
LINKS_VERSION = 2.21
|
2015-09-21 21:21:26 +08:00
|
|
|
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
|
2017-03-30 21:43:32 +08:00
|
|
|
LINKS_LICENSE = GPL-2.0+
|
2012-12-03 12:46:11 +08:00
|
|
|
LINKS_LICENSE_FILES = COPYING
|
2021-01-11 15:46:59 +08:00
|
|
|
LINKS_CPE_ID_VENDOR = twibright
|
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)
|
2018-10-02 17:30:15 +08:00
|
|
|
LINKS_CONF_OPTS += \
|
|
|
|
--with-x \
|
|
|
|
--x-includes=$(STAGING_DIR)/usr/include \
|
|
|
|
--x-libraries=$(STAGING_DIR)/usr/lib
|
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
|
2016-04-13 00:55:36 +08:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
LINKS_CONF_ENV += LIBS=-lstdc++
|
|
|
|
endif
|
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)
|
2016-02-21 00:40:11 +08:00
|
|
|
LINKS_CONF_OPTS += --with-libjpeg
|
2011-02-10 02:22:40 +08:00
|
|
|
LINKS_DEPENDENCIES += jpeg
|
2016-02-21 00:40:11 +08:00
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-libjpeg
|
2011-02-10 02:22:40 +08:00
|
|
|
endif
|
2016-02-21 01:22:05 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBRSVG),y)
|
|
|
|
LINKS_CONF_OPTS += --with-librsvg
|
|
|
|
LINKS_DEPENDENCIES += librsvg
|
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-librsvg
|
|
|
|
endif
|
2011-02-10 02:22:40 +08:00
|
|
|
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-21 01:09:01 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_GPM),y)
|
|
|
|
LINKS_CONF_OPTS += --with-gpm
|
|
|
|
LINKS_DEPENDENCIES += gpm
|
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-gpm
|
|
|
|
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)
|
2016-02-21 03:49:17 +08:00
|
|
|
LINKS_CONF_OPTS += --with-ssl --enable-ssl-pkgconfig
|
2011-02-10 02:22:40 +08:00
|
|
|
LINKS_DEPENDENCIES += openssl
|
2016-02-21 03:49:17 +08:00
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-ssl
|
2011-02-10 02:22:40 +08:00
|
|
|
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))
|