add libtool-fix
[openwrt/svn-archive/archive.git] / Xorg / xorg / lib / libX11 / 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_BASE_NAME:=libX11
12 PKG_NAME:=libX11
13 PKG_RELEASE:=2
14 PKG_VERSION:=1.1.5
15 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.4/src/lib/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
18 PKG_BUILD_DEPENDS:=bigreqsproto xproto xextproto xcmiscproto xf86bigfontproto \
19 kbproto inputproto
20
21 PKG_FIXUP:=libtool
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libX11
26 SECTION:=xorg-lib
27 CATEGORY:=Xorg
28 SUBMENU:=lib
29 DEPENDS:=+xtrans +libXdmcp +libXau
30 TITLE:=libX11
31 URL:=http://xorg.freedesktop.org/
32 endef
33
34 CONFIGURE_ARGS += --enable-malloc0returnsnull --without-xcb
35 EXTRA_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
36
37 define Build/Compile
38 $(call $(PKG_NAME)/Compile)
39 make -C $(PKG_BUILD_DIR)
40 DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
41 endef
42
43 define Package/libX11/install
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so,a}* $(1)/usr/lib/
46 endef
47
48 define Build/InstallDev
49 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
50 endef
51
52 $(eval $(call BuildPackage,libX11))