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
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_MD5SUM:=d1512d65dadd4f48c779d4749e7753a8
21 PKG_BUILD_DEPENDS:=xproto xextproto xf86bigfontproto kbproto inputproto \
22 xtrans xcmiscproto bigreqsproto
24 include $(INCLUDE_DIR)/package.mk
26 TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
32 DEPENDS:=+libXdmcp +libXau
34 URL:=http://xorg.freedesktop.org/
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --enable-malloc0returnsnull \
40 --enable-xf86bigfont \
47 $(MAKE) -C $(PKG_BUILD_DIR)/src/util HOSTCC=$(HOSTCC)
48 $(call Build/Compile/Default)
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/X11}
54 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la,a} \
58 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
59 $(1)/usr/lib/pkgconfig/
62 $(PKG_INSTALL_DIR)/usr/include/X11/* \
66 define Package/libX11/install
67 $(INSTALL_DIR) $(1)/usr/lib
69 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
73 $(eval $(call BuildPackage,libX11))