2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2002-05-23 21:21:23 +02:00
|
|
|
#
|
2011-02-09 19:22:40 +01:00
|
|
|
# links
|
2002-05-23 21:21:23 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2002-05-23 21:21:23 +02:00
|
|
|
|
2019-10-06 17:44:49 +02:00
|
|
|
LINKS_VERSION = 2.20.2
|
2015-09-21 15:21:26 +02:00
|
|
|
LINKS_SOURCE = links-$(LINKS_VERSION).tar.bz2
|
2011-02-09 19:22:40 +01:00
|
|
|
LINKS_SITE = http://links.twibright.com/download
|
2012-10-22 17:47:52 +02:00
|
|
|
LINKS_DEPENDENCIES = host-pkgconf
|
2017-03-30 15:43:32 +02:00
|
|
|
LINKS_LICENSE = GPL-2.0+
|
2012-12-03 05:46:11 +01:00
|
|
|
LINKS_LICENSE_FILES = COPYING
|
2002-05-23 21:21:23 +02:00
|
|
|
|
2011-02-09 19:22:40 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LINKS_GRAPHICS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LINKS_CONF_OPTS += --enable-graphics
|
2012-10-15 08:44:58 +02:00
|
|
|
LINKS_DEPENDENCIES += libpng
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXT),y)
|
2018-10-02 11:30:15 +02:00
|
|
|
LINKS_CONF_OPTS += \
|
|
|
|
--with-x \
|
|
|
|
--x-includes=$(STAGING_DIR)/usr/include \
|
|
|
|
--x-libraries=$(STAGING_DIR)/usr/lib
|
2012-10-15 08:44:58 +02:00
|
|
|
LINKS_DEPENDENCIES += xlib_libXt
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LINKS_CONF_OPTS += --without-x
|
2012-10-15 08:44:58 +02:00
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_DIRECTFB),y)
|
2011-02-09 19:22:40 +01:00
|
|
|
LINKS_CONF_ENV = ac_cv_path_DIRECTFB_CONFIG=$(STAGING_DIR)/usr/bin/directfb-config
|
2016-04-12 18:55:36 +02:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
LINKS_CONF_ENV += LIBS=-lstdc++
|
|
|
|
endif
|
2014-09-27 21:32:44 +02:00
|
|
|
LINKS_CONF_OPTS += --with-directfb
|
2012-10-15 08:44:58 +02:00
|
|
|
LINKS_DEPENDENCIES += directfb
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LINKS_CONF_OPTS += --without-directfb
|
2012-10-15 08:44:58 +02:00
|
|
|
endif
|
2011-02-09 19:22:40 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
2016-02-20 17:40:11 +01:00
|
|
|
LINKS_CONF_OPTS += --with-libjpeg
|
2011-02-09 19:22:40 +01:00
|
|
|
LINKS_DEPENDENCIES += jpeg
|
2016-02-20 17:40:11 +01:00
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-libjpeg
|
2011-02-09 19:22:40 +01:00
|
|
|
endif
|
2016-02-20 18:22:05 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBRSVG),y)
|
|
|
|
LINKS_CONF_OPTS += --with-librsvg
|
|
|
|
LINKS_DEPENDENCIES += librsvg
|
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-librsvg
|
|
|
|
endif
|
2011-02-09 19:22:40 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_TIFF),y)
|
2016-02-20 17:40:09 +01:00
|
|
|
LINKS_CONF_OPTS += --with-libtiff
|
2011-02-09 19:22:40 +01:00
|
|
|
LINKS_DEPENDENCIES += tiff
|
2016-02-20 17:40:09 +01:00
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-libtiff
|
2011-02-09 19:22:40 +01:00
|
|
|
endif
|
2016-02-20 17:40:10 +01:00
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --disable-graphics
|
2011-02-09 19:22:40 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
2016-02-20 17:40:08 +01:00
|
|
|
LINKS_CONF_OPTS += --with-bzip2
|
2011-02-09 19:22:40 +01:00
|
|
|
LINKS_DEPENDENCIES += bzip2
|
2016-02-20 17:40:08 +01:00
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-bzip2
|
2011-02-09 19:22:40 +01:00
|
|
|
endif
|
|
|
|
|
2016-02-20 18:09:01 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GPM),y)
|
|
|
|
LINKS_CONF_OPTS += --with-gpm
|
|
|
|
LINKS_DEPENDENCIES += gpm
|
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-gpm
|
|
|
|
endif
|
|
|
|
|
2016-02-10 21:58:41 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBEVENT),y)
|
2016-02-20 17:40:07 +01:00
|
|
|
LINKS_CONF_OPTS += --with-libevent
|
2016-02-10 21:58:41 +01:00
|
|
|
LINKS_DEPENDENCIES += libevent
|
2016-02-20 17:40:07 +01:00
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-libevent
|
2016-02-10 21:58:41 +01:00
|
|
|
endif
|
|
|
|
|
2011-02-09 19:22:40 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2016-02-20 20:49:17 +01:00
|
|
|
LINKS_CONF_OPTS += --with-ssl --enable-ssl-pkgconfig
|
2011-02-09 19:22:40 +01:00
|
|
|
LINKS_DEPENDENCIES += openssl
|
2016-02-20 20:49:17 +01:00
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-ssl
|
2011-02-09 19:22:40 +01:00
|
|
|
endif
|
|
|
|
|
2016-02-10 21:58:42 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XZ),y)
|
2016-02-20 17:40:05 +01:00
|
|
|
LINKS_CONF_OPTS += --with-lzma
|
2016-02-10 21:58:42 +01:00
|
|
|
LINKS_DEPENDENCIES += xz
|
2016-02-20 17:40:05 +01:00
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-lzma
|
2016-02-10 21:58:42 +01:00
|
|
|
endif
|
|
|
|
|
2011-02-09 19:22:40 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
2016-02-20 17:40:04 +01:00
|
|
|
LINKS_CONF_OPTS += --with-zlib
|
2011-02-09 19:22:40 +01:00
|
|
|
LINKS_DEPENDENCIES += zlib
|
2016-02-20 17:40:04 +01:00
|
|
|
else
|
|
|
|
LINKS_CONF_OPTS += --without-zlib
|
2011-02-09 19:22:40 +01:00
|
|
|
endif
|
2002-05-23 21:21:23 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|