128c3f309c1eb4ec55922d3129f2b8b20f70053c
[openwrt/svn-archive/archive.git] / Xorg / xorg / util / util-macros / Makefile
1 #
2 # Copyright (C) 2006-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:=util-macros
12 PKG_RELEASE:=1
13 PKG_VERSION:=1.1.6
14 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.4/src/util/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/util-macros
21 SECTION:=xorg-utils
22 CATEGORY:=Xorg
23 SUBMENU:=utils
24 DEPENDS:=
25 TITLE:=${PKG_NAME}
26 URL:=http://xorg.freedesktop.org/
27 endef
28
29 define Build/Configure
30 cd $(PKG_BUILD_DIR); \
31 ./configure \
32 --prefix=${STAGING_DIR} \
33 --sysconfdir=/etc \
34 --mandir=${STAGING_DIR}/share/man \
35 --localstatedir=/var
36 endef
37
38 #define Build/Compile
39 # DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
40 #endef
41
42 define Build/InstallDev
43 $(INSTALL_DIR) $(2)/share/aclocal
44 $(CP) $(PKG_BUILD_DIR)/*.m4 $(2)/share/aclocal/
45 endef
46
47 $(eval $(call BuildPackage,util-macros))