[packages] luasec: update to 0.4
[openwrt/svn-archive/archive.git] / Xorg / app / template.mk
1 #
2 # Copyright (C) 2007 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:=@BASE_NAME@
12 PKG_NAME:=@NAME@
13 PKG_RELEASE:=2
14 PKG_VERSION:=@VER@
15 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.4/src/app
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/@NAME@
22 SECTION:=xorg-app
23 CATEGORY:=Xorg
24 SUBMENU:=app
25 DEPENDS:=@DISPLAY_SUPPORT
26 TITLE:=@NAME@
27 URL:=http://xorg.freedesktop.org/
28 endef
29
30 CONFIGURE_ARGS+=LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
31
32 define Build/Compile
33 DESTDIR=$(PKG_INSTALL_DIR) make -C $(PKG_BUILD_DIR) install
34 endef
35
36 define Package/@NAME@/install
37 $(INSTALL_DIR) $(1)
38 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
39 rm -rf $(1)/usr/man/
40 endef
41
42 define Build/InstallDev
43 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
44 endef
45
46 $(eval $(call BuildPackage,@NAME@))