summaryrefslogtreecommitdiffstats
path: root/package/matchbox/matchbox-keyboard/matchbox-keyboard.mk
blob: 3d7178d14242ec5ac92a5d3f8e5ccf347b4336e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#############################################################
#
# MatchBox Keyboard
#
#############################################################

MATCHBOX_KEYBOARD_VERSION = 0.1
MATCHBOX_KEYBOARD_SOURCE = matchbox-keyboard-$(MATCHBOX_KEYBOARD_VERSION).tar.bz2
MATCHBOX_KEYBOARD_SITE = http://matchbox-project.org/sources/matchbox-keyboard/$(MATCHBOX_KEYBOARD_VERSION)
MATCHBOX_KEYBOARD_DEPENDENCIES = matchbox-lib matchbox-fakekey

# Workaround bug in configure script
MATCHBOX_KEYBOARD_CONF_ENV = expat=yes

define MATCHBOX_KEYBOARD_POST_INSTALL_FIXES
 cp -dpf ./package/matchbox/matchbox-keyboard/mb-applet-kbd-wrapper.sh $(TARGET_DIR)/usr/bin/
endef

MATCHBOX_KEYBOARD_POST_INSTALL_TARGET_HOOKS += MATCHBOX_KEYBOARD_POST_INSTALL_FIXES

#############################################################

ifeq ($(BR2_PACKAGE_PANGO),y)
  MATCHBOX_PKEYBOARD_CONF_OPT+=--enable-pango
else
  MATCHBOX_KEYBOARD_DEPENDENCIES+=xlib_libXft
endif

#############################################################

$(eval $(call AUTOTARGETS,package/matchbox,matchbox-keyboard))