libvorbisdec: moved to github
[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:=4
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/librsync
16 PKG_MD5SUM:=24cdb6b78f45e0e83766903fd4f6bc84
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 TARGET_CFLAGS += $(FPIC)
24
25 define Package/librsync
26   SECTION:=libs
27   CATEGORY:=Libraries
28   TITLE:=implementation of the rolling-checksum algorithm
29   DEPENDS:=+libbz2 +libpopt +zlib
30   URL:=http://librsync.sourceforge.net/
31 endef
32
33 define Package/librsync/description
34         librsync implements the rolling-checksum algorithm of remote file
35         synchronization that was popularized by the rsync utility and is
36         used in rproxy. This algorithm transfers the differences between 2
37         files without needing both files on the same system.
38 endef
39
40 define Build/Configure
41         $(call Build/Configure/Default, \
42                 --enable-shared \
43                 --enable-static \
44         );
45 endef
46
47 define Build/InstallDev
48         $(INSTALL_DIR) $(1)/usr/include
49         $(CP) $(PKG_INSTALL_DIR)/usr/include/librsync{,-config}.h $(1)/usr/include/
50         $(INSTALL_DIR) $(1)/usr/lib
51         $(CP) $(PKG_INSTALL_DIR)/usr/lib/librsync.{a,so*} $(1)/usr/lib/
52 endef
53
54 define Package/librsync/install
55         $(INSTALL_DIR) $(1)/usr/lib
56         $(CP) $(PKG_INSTALL_DIR)/usr/lib/librsync.so.* $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,librsync))