package xorg-macros
[openwrt/openwrt.git] / tools / xorg-macros / Makefile
1 #
2 # Copyright (C) 2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=xorg-macros
10 PKG_VERSION:=1.11.0
11
12 PKG_SOURCE:=util-macros-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=http://cgit.freedesktop.org/xorg/util/macros/snapshot/
14 PKG_MD5SUM:=2bb2645cfc2cc6768dd46f9406cab1d7
15
16 HOST_BUILD_DIR:=$(BUILD_DIR)/util-macros-$(PKG_VERSION)
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 define Host/Compile
21 ( cd $(HOST_BUILD_DIR); ./autogen.sh )
22 endef
23
24 define Host/Install
25 $(INSTALL_DIR) $(STAGING_DIR)/host/share/aclocal
26 $(INSTALL_DATA) $(HOST_BUILD_DIR)/xorg-macros.m4 $(STAGING_DIR)/host/share/aclocal/
27 endef
28
29 define Host/Clean
30 -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
31 $(call Host/Clean/Default)
32 endef
33
34 $(eval $(call HostBuild))