nuke $Id$ in /packages as well
[openwrt/svn-archive/archive.git] / libs / librsync / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=librsync
11 PKG_VERSION:=0.9.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/librsync
16 PKG_MD5SUM:=24cdb6b78f45e0e83766903fd4f6bc84
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/librsync
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=implementation of the rolling-checksum algorithm
24 endef
25
26 define Package/librsync/description
27 librsync implements the rolling-checksum algorithm of remote file
28 synchronization that was popularized by the rsync utility and is
29 used in rproxy. This algorithm transfers the differences between 2
30 files without needing both files on the same system.
31 endef
32
33 define Build/Configure
34 $(call Build/Configure/Default, \
35 --enable-shared \
36 --enable-static \
37 );
38 endef
39
40 TARGET_CFLAGS += $(FPIC)
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 DESTDIR="$(PKG_INSTALL_DIR)" \
45 all install
46 endef
47
48 define Build/InstallDev
49 mkdir -p $(1)/usr/include
50 $(CP) $(PKG_INSTALL_DIR)/usr/include/librsync{,-config}.h $(1)/usr/include/
51 mkdir -p $(1)/usr/lib
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/librsync.{a,so*} $(1)/usr/lib/
53 endef
54
55 define Package/librsync/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/librsync.so.* $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,librsync))