fix compile of libmatchbox and possibly other packages by fixing up the libtool fixups
[openwrt/svn-archive/archive.git] / XOrg / lib / libXext / 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:=libXext
11 PKG_NAME:=libXext
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 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libXext
23 SECTION:=xorg-libraries
24 CATEGORY:=Xorg
25 SUBMENU:=libraries
26 DEPENDS:=+xorg-headers-native +util-macros +xproto +xextproto +libXau +libX11 @DISPLAY_SUPPORT
27 TITLE:=libXext
28 URL:=http://xorg.freedesktop.org/
29 endef
30
31 define Build/InstallDev
32 DESTDIR=$(STAGING_DIR) $(MAKE) -C $(PKG_BUILD_DIR)/ $(MAKE_FLAGS) install
33 endef
34
35 ifeq (libXext,libX11)
36 CONFIGURE_ARGS+=--without-xcb
37 endif
38
39 define libX11/Compile
40 $(MAKE_VARS) \
41 $(MAKE) -C $(PKG_BUILD_DIR)/src/util CFLAGS="" LDFLAGS="" CC="cc" makekeys
42 endef
43
44 define libXt/Compile
45 $(MAKE_VARS) \
46 $(MAKE) -C $(PKG_BUILD_DIR)/util CFLAGS="" LDFLAGS="" CC="cc"
47 endef
48
49 define Build/Compile
50 $(call $(PKG_NAME)/Compile)
51 make -C $(PKG_BUILD_DIR)
52 mkdir -p $(PKG_INSTALL_DIR)
53 DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
54 endef
55
56 define Build/Configure
57 $(call Build/Configure/Default, --enable-malloc0returnsnull)
58 endef
59
60 define Package/libXext/install/Default
61 $(INSTALL_DIR) $(1)/usr/lib
62 find $(PKG_INSTALL_DIR)/usr/lib/ -name lib*so* | $(XARGS) -i -t cp -P {} $(1)/usr/lib
63 endef
64
65 define Package/libXext/install
66 $(call Package/libXext/install/Default,$(1))
67 endef
68
69 define Package/libXaw/install
70 $(call Package/libXext/install/Default,$(1))
71 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
72 endef
73
74 define Build/InstallDev
75 $(CP) $(PKG_INSTALL_DIR)/* $(STAGING_DIR)
76 endef
77
78 $(eval $(call BuildPackage,libXext))