source: packages/XOrg/utils/util-macros/Makefile @ 9173

Last change on this file since 9173 was 9173, checked in by blogic, 9 years ago

InstallDev should be using (1) and not (STAGING_DIR)

File size: 1.0 KB
Line 
1#
2# Copyright (C) 2006 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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=util-macros
11PKG_RELEASE:=1
12PKG_VERSION:=X11R7.2-1.1.5
13PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.2/src/util/
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/${PKG_NAME}-$(PKG_VERSION)/
16
17include $(INCLUDE_DIR)/package.mk
18
19define Package/util-macros
20  SECTION:=xorg-utils
21  CATEGORY:=Xorg
22  SUBMENU:=utils
23  DEPENDS:= @TARGET_x86
24  TITLE:=${PKG_NAME}
25  URL:=http://xorg.freedesktop.org/
26endef
27
28define Build/InstallDev
29        DESTDIR=$(1) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
30endef
31
32define Build/Configure
33        cd $(PKG_BUILD_DIR); \
34                ./configure \
35                        --prefix=${STAGING_DIR} \
36                        --sysconfdir=/etc \
37                        --mandir=${STAGING_DIR}/share/man \
38                        --localstatedir=/var
39endef
40
41define Build/Compile
42        make -C $(PKG_BUILD_DIR)
43endef
44
45$(eval $(call BuildPackage,util-macros))
Note: See TracBrowser for help on using the repository browser.