1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# fltk 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunFLTK_VERSION = 1.3.7 8*4882a593SmuzhiyunFLTK_SOURCE = fltk-$(FLTK_VERSION)-source.tar.bz2 9*4882a593SmuzhiyunFLTK_SITE = http://fltk.org/pub/fltk/$(FLTK_VERSION) 10*4882a593SmuzhiyunFLTK_INSTALL_STAGING = YES 11*4882a593Smuzhiyun# We force --libdir=/usr/lib, because by default, it is set to 12*4882a593Smuzhiyun# ${exec_prefix}/lib, which doesn't match the condition used by the 13*4882a593Smuzhiyun# fltk build system to decide whether it should pass a -rpath,/usr/lib 14*4882a593Smuzhiyun# or not. Since this rpath breaks the build, we want the fltk build 15*4882a593Smuzhiyun# system to not pass it, which requires having --libdir set to 16*4882a593Smuzhiyun# /usr/lib. 17*4882a593SmuzhiyunFLTK_CONF_OPTS = --enable-threads --with-x --disable-gl \ 18*4882a593Smuzhiyun --disable-localjpeg --disable-localpng --disable-localzlib \ 19*4882a593Smuzhiyun --libdir=/usr/lib 20*4882a593SmuzhiyunFLTK_DEPENDENCIES = jpeg libpng xlib_libX11 xlib_libXext xlib_libXt 21*4882a593SmuzhiyunFLTK_CONFIG_SCRIPTS = fltk-config 22*4882a593SmuzhiyunFLTK_LICENSE = LGPL-2.0 with exceptions 23*4882a593SmuzhiyunFLTK_LICENSE_FILES = COPYING 24*4882a593Smuzhiyun 25*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_CAIRO),y) 26*4882a593SmuzhiyunFLTK_CONF_OPTS += --enable-cairo 27*4882a593SmuzhiyunFLTK_DEPENDENCIES += cairo 28*4882a593Smuzhiyunendif 29*4882a593Smuzhiyun 30*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_XLIB_LIBXCURSOR),y) 31*4882a593SmuzhiyunFLTK_DEPENDENCIES += xlib_libXcursor 32*4882a593SmuzhiyunFLTK_CONF_OPTS += --enable-xcursor 33*4882a593Smuzhiyunelse 34*4882a593SmuzhiyunFLTK_CONF_OPTS += --disable-xcursor 35*4882a593Smuzhiyunendif 36*4882a593Smuzhiyun 37*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_XLIB_LIBXFIXES),y) 38*4882a593SmuzhiyunFLTK_DEPENDENCIES += xlib_libXfixes 39*4882a593SmuzhiyunFLTK_CONF_OPTS += --enable-xfixes 40*4882a593Smuzhiyunelse 41*4882a593SmuzhiyunFLTK_CONF_OPTS += --disable-xfixes 42*4882a593Smuzhiyunendif 43*4882a593Smuzhiyun 44*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_XLIB_LIBXFT),y) 45*4882a593SmuzhiyunFLTK_CONF_ENV += ac_cv_path_FTCONFIG=$(STAGING_DIR)/usr/bin/freetype-config 46*4882a593SmuzhiyunFLTK_DEPENDENCIES += xlib_libXft 47*4882a593Smuzhiyunelse 48*4882a593SmuzhiyunFLTK_CONF_OPTS += --disable-xft 49*4882a593Smuzhiyunendif 50*4882a593Smuzhiyun 51*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y) 52*4882a593SmuzhiyunFLTK_DEPENDENCIES += xlib_libXinerama 53*4882a593Smuzhiyunelse 54*4882a593SmuzhiyunFLTK_CONF_OPTS += --disable-xinerama 55*4882a593Smuzhiyunendif 56*4882a593Smuzhiyun 57*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_XLIB_LIBXRENDER),y) 58*4882a593SmuzhiyunFLTK_DEPENDENCIES += xlib_libXrender 59*4882a593SmuzhiyunFLTK_CONF_OPTS += --enable-xrender 60*4882a593Smuzhiyunelse 61*4882a593SmuzhiyunFLTK_CONF_OPTS += --disable-xrender 62*4882a593Smuzhiyunendif 63*4882a593Smuzhiyun 64*4882a593Smuzhiyun$(eval $(autotools-package)) 65