2 # Copyright (C) 2007-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
16 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.4/src/lib/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
19 PKG_MD5SUM:=d1512d65dadd4f48c779d4749e7753a8
22 PKG_BUILD_DEPENDS:=xproto xextproto xf86bigfontproto kbproto inputproto \
23 xtrans xcmiscproto bigreqsproto
25 include $(INCLUDE_DIR)/package.mk
27 TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
33 DEPENDS:=+libXdmcp +libXau
35 URL:=http://xorg.freedesktop.org/
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 --enable-malloc0returnsnull \
41 --enable-xf86bigfont \
48 $(MAKE) -C $(PKG_BUILD_DIR)/src/util HOSTCC=$(HOSTCC)
49 $(call Build/Compile/Default)
52 define Build/InstallDev
53 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/X11}
55 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la,a} \
59 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
60 $(1)/usr/lib/pkgconfig/
63 $(PKG_INSTALL_DIR)/usr/include/X11/* \
67 define Package/libX11/install
68 $(INSTALL_DIR) $(1)/usr/lib
70 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
74 $(eval $(call BuildPackage,libX11))