remove useless xorg macros patch
[openwrt/svn-archive/archive.git] / utils / rsync / Makefile
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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=rsync
12 PKG_VERSION:=2.6.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://rsync.samba.org/ftp/rsync/
17 PKG_MD5SUM:=3691cdf1540d0649ba679edce6bae8fc
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/rsync
26 SECTION:=utils
27 CATEGORY:=Utilities
28 DEPENDS:=+libpopt
29 TITLE:=A fast incremental file transfer utility
30 URL:=http://rsync.samba.org/
31 endef
32
33 define Build/Configure
34 $(call Build/Configure/Default, \
35 --with-included-popt=no \
36 --disable-debug \
37 --disable-ipv6 \
38 --disable-locale \
39 )
40 endef
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 DESTDIR="$(PKG_INSTALL_DIR)" \
45 all install
46 endef
47
48 define Package/rsync/install
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(CP) $(PKG_INSTALL_DIR)/usr/bin/rsync $(1)/usr/bin/
51 endef
52
53 $(eval $(call BuildPackage,rsync))