9b67bd32aeb49ac920772b0a9659579be845d664
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / fltk / fltk.mk
1 ################################################################################
2 #
3 # fltk
4 #
5 ################################################################################
6
7 FLTK_VERSION = 1.3.3
8 FLTK_SOURCE = fltk-$(FLTK_VERSION)-source.tar.gz
9 FLTK_SITE = http://fltk.org/pub/fltk/$(FLTK_VERSION)
10 FLTK_INSTALL_STAGING = YES
11 # We force --libdir=/usr/lib, because by default, it is set to
12 # ${exec_prefix}/lib, which doesn't match the condition used by the
13 # fltk build system to decide whether it should pass a -rpath,/usr/lib
14 # or not. Since this rpath breaks the build, we want the fltk build
15 # system to not pass it, which requires having --libdir set to
16 # /usr/lib.
17 FLTK_CONF_OPTS = --enable-threads --with-x --disable-gl \
18         --disable-localjpeg --disable-localpng --disable-localzlib \
19         --libdir=/usr/lib
20 FLTK_DEPENDENCIES = jpeg libpng xlib_libX11 xlib_libXext xlib_libXt
21 FLTK_CONFIG_SCRIPTS = fltk-config
22 FLTK_LICENSE = LGPLv2 with exceptions
23 FLTK_LICENSE_FILES = COPYING
24
25 ifeq ($(BR2_PACKAGE_CAIRO),y)
26 FLTK_CONF_OPTS += --enable-cairo
27 FLTK_DEPENDENCIES += cairo
28 endif
29
30 ifeq ($(BR2_PACKAGE_XLIB_LIBXCURSOR),y)
31 FLTK_DEPENDENCIES += xlib_libXcursor
32 FLTK_CONF_OPTS += --enable-xcursor
33 else
34 FLTK_CONF_OPTS += --disable-xcursor
35 endif
36
37 ifeq ($(BR2_PACKAGE_XLIB_LIBXFIXES),y)
38 FLTK_DEPENDENCIES += xlib_libXfixes
39 FLTK_CONF_OPTS += --enable-xfixes
40 else
41 FLTK_CONF_OPTS += --disable-xfixes
42 endif
43
44 ifeq ($(BR2_PACKAGE_XLIB_LIBXFT),y)
45 FLTK_CONF_ENV += ac_cv_path_FTCONFIG=$(STAGING_DIR)/usr/bin/freetype-config
46 FLTK_DEPENDENCIES += xlib_libXft
47 else
48 FLTK_CONF_OPTS += --disable-xft
49 endif
50
51 ifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y)
52 FLTK_DEPENDENCIES += xlib_libXinerama
53 else
54 FLTK_CONF_OPTS += --disable-xinerama
55 endif
56
57 $(eval $(autotools-package))