seperate xorg-tree from other x11-stuff
[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_BASE_NAME:=libXrandr
12 PKG_NAME:=libXrandr
13 PKG_RELEASE:=2
14 PKG_VERSION:=1.2.3
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:=randrproto renderproto xextproto
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libXrandr
23 SECTION:=xorg-lib
24 CATEGORY:=Xorg
25 SUBMENU:=lib
26 DEPENDS:=+libXext +libXrender +libX11
27 TITLE:=libXrandr
28 URL:=http://xorg.freedesktop.org/
29 endef
30
31 CONFIGURE_ARGS += --enable-malloc0returnsnull --without-xcb
32
33 define Build/Compile
34 $(call $(PKG_NAME)/Compile)
35 make -C $(PKG_BUILD_DIR)
36 DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
37 find $(PKG_INSTALL_DIR) -name *.la | xargs rm -rf
38 endef
39
40 define Package/libXrandr/install
41 $(INSTALL_DIR) $(1)/usr/lib
42 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
43 endef
44
45 define Build/InstallDev
46 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
47 endef
48
49 $(eval $(call BuildPackage,libXrandr))