[packages] rtorrent: update to 0.8.6_r1130 (#6685)
[openwrt/svn-archive/archive.git] / Xorg / lib / 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 include $(TOPDIR)/rules.mk
9
10 PKG_BASE_NAME:=@BASE_NAME@
11 PKG_NAME:=@NAME@
12 PKG_RELEASE:=2
13 PKG_VERSION:=@VER@
14 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.4/src/lib/
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/@NAME@
21 SECTION:=xorg-lib
22 CATEGORY:=Xorg
23 SUBMENU:=lib
24 DEPENDS:=@DEP@ @DISPLAY_SUPPORT
25 TITLE:=@NAME@
26 URL:=http://xorg.freedesktop.org/
27 endef
28
29 CONFIGURE_ARGS += --enable-malloc0returnsnull --without-xcb
30
31 define Build/Compile
32 $(call $(PKG_NAME)/Compile)
33 make -C $(PKG_BUILD_DIR)
34 DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
35 find $(PKG_INSTALL_DIR) -name *.la | xargs rm -rf
36 endef
37
38 define Package/@NAME@/install
39 $(INSTALL_DIR) $(1)/usr/lib
40 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
41 endef
42
43 define Build/InstallDev
44 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
45 endef
46
47 $(eval $(call BuildPackage,@NAME@))