Cleanup xorg/libs package makefiles:
[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:=3
14 PKG_VERSION:=1.1.5
15
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
20 PKG_FIXUP:=libtool
21 PKG_INSTALL:=1
22 PKG_BUILD_DEPENDS:=xproto xextproto xf86bigfontproto kbproto inputproto \
23 xtrans xcmiscproto bigreqsproto
24
25 include $(INCLUDE_DIR)/package.mk
26
27 TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
28
29 define Package/libX11
30 SECTION:=xorg-lib
31 CATEGORY:=Xorg
32 SUBMENU:=lib
33 DEPENDS:=+libXdmcp +libXau
34 TITLE:=libX11
35 URL:=http://xorg.freedesktop.org/
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 --enable-malloc0returnsnull \
41 --enable-xf86bigfont \
42 --without-xcb \
43 --without-launchd \
44 )
45 endef
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR)/src/util HOSTCC=$(HOSTCC)
49 $(call Build/Compile/Default)
50 endef
51
52 define Build/InstallDev
53 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/X11}
54 $(INSTALL_DATA) \
55 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la,a} \
56 $(1)/usr/lib/
57
58 $(INSTALL_DATA) \
59 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
60 $(1)/usr/lib/pkgconfig/
61
62 $(INSTALL_DATA) \
63 $(PKG_INSTALL_DIR)/usr/include/X11/* \
64 $(1)/usr/include/X11/
65 endef
66
67 define Package/libX11/install
68 $(INSTALL_DIR) $(1)/usr/lib
69 $(INSTALL_DATA) \
70 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
71 $(1)/usr/lib/
72 endef
73
74 $(eval $(call BuildPackage,libX11))