[packages] normalize PKG_FIXUP - the "libtool" fixup is merely an alias for "autoreco...
[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   URL:=http://librsync.sourceforge.net/
30 endef
31
32 define Package/librsync/description
33         librsync implements the rolling-checksum algorithm of remote file
34         synchronization that was popularized by the rsync utility and is
35         used in rproxy. This algorithm transfers the differences between 2
36         files without needing both files on the same system.
37 endef
38
39 define Build/Configure
40         $(call Build/Configure/Default, \
41                 --enable-shared \
42                 --enable-static \
43         );
44 endef
45
46 define Build/InstallDev
47         $(INSTALL_DIR) $(1)/usr/include
48         $(CP) $(PKG_INSTALL_DIR)/usr/include/librsync{,-config}.h $(1)/usr/include/
49         $(INSTALL_DIR) $(1)/usr/lib
50         $(CP) $(PKG_INSTALL_DIR)/usr/lib/librsync.{a,so*} $(1)/usr/lib/
51 endef
52
53 define Package/librsync/install
54         $(INSTALL_DIR) $(1)/usr/lib
55         $(CP) $(PKG_INSTALL_DIR)/usr/lib/librsync.so.* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,librsync))