Cleanup xorg/libs package makefiles:
[openwrt/svn-archive/archive.git] / Xorg / xorg / lib / libXrandr / 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_NAME:=libXrandr
12 PKG_RELEASE:=3
13 PKG_VERSION:=1.2.3
14
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:=5cd67cc02a50c9644ba0a1846ea3b08e
19 PKG_FIXUP:=libtool
20 PKG_INSTALL:=1
21 PKG_BUILD_DEPENDS:=randrproto renderproto xextproto
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libXrandr
26 SECTION:=xorg-lib
27 CATEGORY:=Xorg
28 SUBMENU:=lib
29 DEPENDS:=+libXext +libXrender +libX11
30 TITLE:=libXrandr
31 URL:=http://xorg.freedesktop.org/
32 endef
33
34 define Build/Configure
35 $(call Build/Configure/Default, \
36 --enable-malloc0returnsnull \
37 )
38 endef
39
40 define Build/InstallDev
41 $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/X11/extensions}
42 $(INSTALL_DATA) \
43 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
44 $(1)/usr/lib/
45 $(INSTALL_DATA) \
46 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
47 $(1)/usr/lib/pkgconfig/
48 $(INSTALL_DATA) \
49 $(PKG_INSTALL_DIR)/usr/include/X11/extensions/* \
50 $(1)/usr/include/X11/extensions/
51 endef
52
53 define Package/libXrandr/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(INSTALL_DATA) \
56 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
57 $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,libXrandr))