3588904a231399d04ee908468dc2e4c390e8cb6c
[openwrt/svn-archive/packages.git] / libs / librsync / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=librsync
11 PKG_VERSION:=0.9.7
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/librsync
16 PKG_MD5SUM:=24cdb6b78f45e0e83766903fd4f6bc84
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 TARGET_CFLAGS += $(FPIC)
23
24 define Package/librsync
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=implementation of the rolling-checksum algorithm
28 URL:=http://librsync.sourceforge.net/
29 endef
30
31 define Package/librsync/description
32 librsync implements the rolling-checksum algorithm of remote file
33 synchronization that was popularized by the rsync utility and is
34 used in rproxy. This algorithm transfers the differences between 2
35 files without needing both files on the same system.
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 --enable-shared \
41 --enable-static \
42 );
43 endef
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include
47 $(CP) $(PKG_INSTALL_DIR)/usr/include/librsync{,-config}.h $(1)/usr/include/
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/librsync.{a,so*} $(1)/usr/lib/
50 endef
51
52 define Package/librsync/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/librsync.so.* $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,librsync))