[packages] c-ares: update to 1.7.1
[openwrt/svn-archive/archive.git] / libs / libpar2 / Makefile
1 #
2 # Copyright (C) 2009-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:=libpar2
11 PKG_VERSION:=0.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/parchive
16 PKG_MD5SUM:=94c6df4e38efe08056ecde2a04e0be91
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libpar2
24 SECTION:=libs
25 CATEGORY:=Libraries
26 DEPENDS:=+libsigcxx
27 TITLE:=A library for performing common tasks related to PAR recovery sets
28 URL:=http://parchive.sourceforge.net/
29 endef
30
31 define Package/libpar2/description
32 A library for performing common tasks related to PAR recovery sets
33 endef
34
35 CONFIGURE_ARGS += \
36 --disable-static \
37 --disable-nls \
38
39 define Build/InstallDev
40 $(INSTALL_DIR) $(1)/usr/include/libpar2
41 $(INSTALL_DATA) \
42 $(PKG_INSTALL_DIR)/usr/include/libpar2/*.h \
43 $(1)/usr/include/libpar2/
44
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) \
47 $(PKG_INSTALL_DIR)/usr/lib/libpar2.{la,so*} \
48 $(1)/usr/lib/
49 endef
50
51 define Package/libpar2/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) \
54 $(PKG_INSTALL_DIR)/usr/lib/libpar2.so* \
55 $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,libpar2))