Update XOrg to 7.3 the second
[openwrt/svn-archive/archive.git] / XOrg / lib / libxkbui / Makefile
1 #
2 # Copyright (C) 2007 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 include $(TOPDIR)/rules.mk
9
10 PKG_BASE_NAME:=libxkbui
11 PKG_NAME:=libxkbui
12 PKG_RELEASE:=2
13 PKG_VERSION:=1.0.2
14 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.3/src/lib/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/${PKG_NAME}-$(PKG_VERSION)/
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/libxkbui
21 SECTION:=xorg-libraries
22 CATEGORY:=Xorg
23 SUBMENU:=libraries
24 DEPENDS:=+xorg-headers-native +util-macros @DISPLAY_SUPPORT
25 TITLE:=libxkbui
26 URL:=http://xorg.freedesktop.org/
27 endef
28
29 define Build/InstallDev
30 DESTDIR=$(STAGING_DIR) $(MAKE) -C $(PKG_BUILD_DIR)/ $(MAKE_FLAGS) install
31 endef
32
33 ifeq (libxkbui,libX11)
34 CONFIGURE_ARGS+=--without-xcb
35 endif
36
37 define libX11/Compile
38 $(MAKE_VARS) \
39 $(MAKE) -C $(PKG_BUILD_DIR)/src/util CFLAGS="" LDFLAGS="" CC="cc" makekeys
40 endef
41
42 define libXt/Compile
43 $(MAKE_VARS) \
44 $(MAKE) -C $(PKG_BUILD_DIR)/util CFLAGS="" LDFLAGS="" CC="cc"
45 endef
46
47 define Build/Compile
48 $(call $(PKG_NAME)/Compile)
49 make -C $(PKG_BUILD_DIR)
50 mkdir -p $(PKG_INSTALL_DIR)
51 DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
52 find $(PKG_INSTALL_DIR) -name *.la | xargs rm -rf
53 endef
54
55 define Build/Configure
56 $(call Build/Configure/Default, --enable-malloc0returnsnull)
57 endef
58
59 define Package/libxkbui/install/Default
60 $(INSTALL_DIR) $(1)/usr/lib
61 find $(PKG_INSTALL_DIR)/usr/lib/ -name lib*so* | $(XARGS) -i -t cp -P {} $(1)/usr/lib
62 endef
63
64 define Package/libxkbui/install
65 $(call Package/libxkbui/install/Default,$(1))
66 endef
67
68 define Package/libXaw/install
69 $(call Package/libxkbui/install/Default,$(1))
70 cd $(1)/usr/lib; rm -f libXaw.so.7 libXaw.so.6; ln -s libXaw7.so.7.0.0 libXaw.so.7; ln -s libXaw6.so.6.0.1 libXaw.so.6
71 endef
72
73 define Build/InstallDev
74 $(CP) $(PKG_INSTALL_DIR)/* $(STAGING_DIR)
75 endef
76
77 $(eval $(call BuildPackage,libxkbui))