harfbuzz: security bump to version 1.4.4
[buildroot-gz.git] / package / tekui / tekui.mk
blobf9ae849033d68157f0f89fc42a8da0a77427d4cb
1 ################################################################################
3 # tekui
5 ################################################################################
7 TEKUI_VERSION = 1.12
8 TEKUI_SOURCE = tekui-$(TEKUI_VERSION).tgz
9 TEKUI_SITE = http://tekui.neoscientists.org/releases
10 TEKUI_LICENSE = MIT
11 TEKUI_LICENSE_FILES = COPYRIGHT
12 TEKUI_DEPENDENCIES = freetype luainterpreter
14 TEKUI_MAKE_OPTS = \
15 CC="$(TARGET_CC) -fPIC" \
16 AR="$(TARGET_AR) rcu" \
17 INSTALL_S="install" \
18 LUAVER=$(LUAINTERPRETER_ABIVER) \
19 LUA_DEFS=""
21 ifeq ($(BR2_PACKAGE_LIBPNG),y)
22 TEKUI_DEPENDENCIES += libpng
23 TEKUI_MAKE_OPTS += TEKUI_DEFS="-DENABLE_GRADIENT -DENABLE_FILENO -DENABLE_PIXMAP_CACHE -DENABLE_PNG"
24 TEKUI_MAKE_OPTS += TEKUI_LIBS=-lpng
25 else
26 TEKUI_MAKE_OPTS += TEKUI_DEFS="-DENABLE_GRADIENT -DENABLE_FILENO -DENABLE_PIXMAP_CACHE"
27 endif
29 ifeq ($(BR2_PACKAGE_DEJAVU),y)
30 TEKUI_FONTDIR=/usr/share/fonts/dejavu
31 else
32 TEKUI_FONTDIR=/usr/share/lua/$(LUAINTERPRETER_ABIVER)/tek/ui/font
33 endif
35 ifeq ($(BR2_PACKAGE_XLIB_LIBXFT)$(BR2_PACKAGE_XLIB_LIBXXF86VM),yy)
36 TEKUI_DEPENDENCIES += xlib_libXft xlib_libXxf86vm
37 TEKUI_MAKE_OPTS += \
38 X11_LIBS="-lXext -lXxf86vm -lXft -lfreetype -lfontconfig" \
39 X11_DEFS="-D_XOPEN_SOURCE -DENABLE_XFT -DENABLE_XVID -I$(STAGING_DIR)/usr/include/freetype2 -I$(STAGING_DIR)/usr/include/fontconfig" \
40 DISPLAY_DRIVER=x11
41 else
42 ifeq ($(BR2_PACKAGE_DIRECTFB),y)
43 TEKUI_DEPENDENCIES += directfb
44 TEKUI_MAKE_OPTS += \
45 DIRECTFB_LIBS="-lfreetype -ldirectfb -lpthread" \
46 DIRECTFB_DEFS="-D_REENTRANT -I$(STAGING_DIR)/usr/include/directfb -I$(STAGING_DIR)/usr/include/freetype2" \
47 DISPLAY_DRIVER=directfb
48 else
49 TEKUI_MAKE_OPTS += \
50 FREETYPE_LIBS=-lfreetype \
51 FREETYPE_DEFS="-I$(STAGING_DIR)/usr/include/freetype2" \
52 RAWFB_SUB_LIBS="" \
53 RAWFB_SUB_DEFS="-DDEF_FONTDIR=\\\"$(TEKUI_FONTDIR)\\\"" \
54 DISPLAY_DRIVER=rawfb
55 endif
56 endif
58 define TEKUI_BUILD_CMDS
59 $(TARGET_MAKE_ENV) $(MAKE) $(TEKUI_MAKE_OPTS) PREFIX="/usr" -C $(@D) all
60 endef
62 define TEKUI_INSTALL_TARGET_CMDS
63 $(TARGET_MAKE_ENV) $(MAKE) $(TEKUI_MAKE_OPTS) PREFIX="$(TARGET_DIR)/usr" -C $(@D) install
64 endef
66 $(eval $(generic-package))