DESCRIPTION:= is obselete
[packages.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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=librsync
12 PKG_VERSION:=0.9.7
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/librsync
17 PKG_MD5SUM:=24cdb6b78f45e0e83766903fd4f6bc84
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/librsync
26   SECTION:=libs
27   CATEGORY:=Libraries
28   TITLE:=implementation of the rolling-checksum algorithm
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/Compile
46         $(MAKE) -C $(PKG_BUILD_DIR) \
47                 DESTDIR="$(PKG_INSTALL_DIR)" \
48                 all install
49 endef
50
51 define Build/InstallDev
52         mkdir -p $(1)/usr/include
53         $(CP) $(PKG_INSTALL_DIR)/usr/include/librsync{,-config}.h $(1)/usr/include/
54         mkdir -p $(1)/usr/lib
55         $(CP) $(PKG_INSTALL_DIR)/usr/lib/librsync.{a,so*} $(1)/usr/lib/
56 endef
57
58 define Build/UninstallDev
59         rm -rf \
60                 $(STAGING_DIR)/usr/include/librsync{,-config}.h \
61                 $(STAGING_DIR)/usr/lib/librsync.{a,so*}
62 endef
63
64 define Package/librsync/install
65         $(INSTALL_DIR) $(1)/usr/lib
66         $(CP) $(PKG_INSTALL_DIR)/usr/lib/librsync.so.* $(1)/usr/lib/
67 endef
68
69 $(eval $(call BuildPackage,librsync))