2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2008-03-06 19:09:12 +01:00
|
|
|
#
|
|
|
|
# fltk
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2008-03-06 19:09:12 +01:00
|
|
|
|
2017-05-28 16:05:16 +02:00
|
|
|
FLTK_VERSION = 1.3.4
|
|
|
|
FLTK_SOURCE = fltk-$(FLTK_VERSION)-1-source.tar.gz
|
2013-10-27 23:54:18 +01:00
|
|
|
FLTK_SITE = http://fltk.org/pub/fltk/$(FLTK_VERSION)
|
2008-03-06 19:09:12 +01:00
|
|
|
FLTK_INSTALL_STAGING = YES
|
2015-02-21 15:02:58 +01:00
|
|
|
# We force --libdir=/usr/lib, because by default, it is set to
|
|
|
|
# ${exec_prefix}/lib, which doesn't match the condition used by the
|
|
|
|
# fltk build system to decide whether it should pass a -rpath,/usr/lib
|
|
|
|
# or not. Since this rpath breaks the build, we want the fltk build
|
|
|
|
# system to not pass it, which requires having --libdir set to
|
|
|
|
# /usr/lib.
|
2014-09-27 21:32:44 +02:00
|
|
|
FLTK_CONF_OPTS = --enable-threads --with-x --disable-gl \
|
2015-02-21 15:02:58 +01:00
|
|
|
--disable-localjpeg --disable-localpng --disable-localzlib \
|
|
|
|
--libdir=/usr/lib
|
2013-10-27 23:54:18 +01:00
|
|
|
FLTK_DEPENDENCIES = jpeg libpng xlib_libX11 xlib_libXext xlib_libXt
|
2013-05-10 08:29:24 +02:00
|
|
|
FLTK_CONFIG_SCRIPTS = fltk-config
|
2017-03-30 15:43:37 +02:00
|
|
|
FLTK_LICENSE = LGPL-2.0 with exceptions
|
2013-10-27 23:54:18 +01:00
|
|
|
FLTK_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_CAIRO),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FLTK_CONF_OPTS += --enable-cairo
|
2013-10-27 23:54:18 +01:00
|
|
|
FLTK_DEPENDENCIES += cairo
|
|
|
|
endif
|
|
|
|
|
2015-02-21 15:56:15 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXCURSOR),y)
|
|
|
|
FLTK_DEPENDENCIES += xlib_libXcursor
|
|
|
|
FLTK_CONF_OPTS += --enable-xcursor
|
|
|
|
else
|
|
|
|
FLTK_CONF_OPTS += --disable-xcursor
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXFIXES),y)
|
|
|
|
FLTK_DEPENDENCIES += xlib_libXfixes
|
|
|
|
FLTK_CONF_OPTS += --enable-xfixes
|
|
|
|
else
|
|
|
|
FLTK_CONF_OPTS += --disable-xfixes
|
|
|
|
endif
|
|
|
|
|
2013-10-27 23:54:18 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXFT),y)
|
|
|
|
FLTK_CONF_ENV += ac_cv_path_FTCONFIG=$(STAGING_DIR)/usr/bin/freetype-config
|
|
|
|
FLTK_DEPENDENCIES += xlib_libXft
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FLTK_CONF_OPTS += --disable-xft
|
2013-10-27 23:54:18 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y)
|
|
|
|
FLTK_DEPENDENCIES += xlib_libXinerama
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FLTK_CONF_OPTS += --disable-xinerama
|
2013-10-27 23:54:18 +01:00
|
|
|
endif
|
2008-03-06 19:09:12 +01:00
|
|
|
|
2019-03-17 16:29:29 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXRENDER),y)
|
|
|
|
FLTK_DEPENDENCIES += xlib_libXrender
|
|
|
|
FLTK_CONF_OPTS += --enable-xrender
|
|
|
|
else
|
|
|
|
FLTK_CONF_OPTS += --disable-xrender
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|