blob: df23f97ee19b29bd990ce0639662fb0b9dbd35f5 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
#
# Copyright (C) 2007-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# blogic@openwrt.org
include $(TOPDIR)/rules.mk
PKG_NAME:=matchbox-window-manager
PKG_VERSION:=1.2
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://matchbox-project.org/sources/$(PKG_NAME)/$(PKG_VERSION)
PKG_MD5SUM:=3e158dcf57823b55c926d95b245500fb
PKG_FIXUP:=libtool
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
TARGET_LDFLAGS+= \
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
define Package/matchbox-window-manager
TITLE:=matchbox window manager
SECTION:=xorg-wm
CATEGORY:=Xorg
SUBMENU:=window manager
DEPENDS:=+libX11 +zlib +libfreetype +fontconfig +libmatchbox
URL:=http://matchbox-project.org/
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR=$(PKG_INSTALL_DIR) \
LIBMB_LIBS="$(TARGET_LDFLAGS) -lfontconfig -lXrender \
-lz -lexpat -lfreetype -lXft -lmb -lX11 -lXext -lXau -lXdmcp \
-lpng12" \
all
endef
define Package/matchbox-window-manager/install
$(INSTALL_DIR) $(1)/etc/matchbox
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/etc/matchbox/kbdconfig \
$(1)/etc/matchbox/
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/bin/* \
$(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/share/{matchbox,themes}
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/share/matchbox/* \
$(1)/usr/share/matchbox/
$(CP) \
$(PKG_INSTALL_DIR)/usr/share/themes/* \
$(1)/usr/share/themes/
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_DATA) \
./files/uci-defaults/x11 \
$(1)/etc/uci-defaults/
endef
define Package/matchbox-window-manager/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] && exit
. /etc/functions.sh
uci_apply_defaults
endef
$(eval $(call BuildPackage,matchbox-window-manager))
|