f81e49e22932809b8478e4fef33e6d746611b7ca
[openwrt/svn-archive/archive.git] / Xorg / wm / matchbox-window-manager / Makefile
1 #
2 # Copyright (C) 2007-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=matchbox-window-manager
12 PKG_VERSION:=1.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://matchbox-project.org/sources/$(PKG_NAME)/$(PKG_VERSION)
17 PKG_FIXUP:=libtool
18
19 TARGET_LDFLAGS+= \
20 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
21 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib/libiconv/lib \
22 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib/libintl/lib
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/matchbox-window-manager
27 TITLE:=matchbox window manager
28 SECTION:=xorg-wm
29 CATEGORY:=Xorg
30 SUBMENU:=window manager
31 DEPENDS:=+libX11 +zlib +libfreetype +fontconfig +libmatchbox +freedesktop-compliant
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 DESTDIR=$(PKG_INSTALL_DIR) \
37 LIBMB_LIBS="-L$(STAGING_DIR)/usr/lib -lfontconfig -lXrender \
38 -lz -lexpat -lfreetype -lXft -lmb -lX11 -lXext -lXau -lXdmcp \
39 -lpng12" \
40 all install
41 endef
42
43 define Package/matchbox-window-manager/install
44 $(INSTALL_DIR) $(1)/etc/matchbox
45 $(INSTALL_DATA) \
46 $(PKG_INSTALL_DIR)/etc/matchbox/kbdconfig \
47 $(1)/etc/matchbox/
48
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(INSTALL_BIN) \
51 $(PKG_INSTALL_DIR)/usr/bin/* \
52 $(1)/usr/bin/
53
54 $(INSTALL_DIR) $(1)/usr/share/{matchbox,themes}
55 $(INSTALL_DATA) \
56 $(PKG_INSTALL_DIR)/usr/share/matchbox/* \
57 $(1)/usr/share/matchbox/
58 $(CP) \
59 $(PKG_INSTALL_DIR)/usr/share/themes/* \
60 $(1)/usr/share/themes/
61 $(INSTALL_DIR) $(1)/etc/uci-defaults
62 $(INSTALL_DATA) \
63 ./files/uci-defaults/x11 \
64 $(1)/etc/uci-defaults/
65 endef
66
67 define Package/matchbox-window-manager/postinst
68 #!/bin/sh
69 [ -n "$${IPKG_INSTROOT}" ] && exit
70 . /etc/functions.sh
71 uci_apply_defaults
72 endef
73
74 $(eval $(call BuildPackage,matchbox-window-manager))