libpar2: move to the libs section (patch by edgar soldin)
[packages.git] / libs / libpar2 / Makefile
1 #
2 # Copyright (C) 2009 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
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libpar2
23   SECTION:=libs
24   CATEGORY:=Libraries
25   DEPENDS:=+libsigcxx
26   TITLE:=A library for performing common tasks related to PAR recovery sets
27 endef
28
29 define Package/libpar2/description
30 A library for performing common tasks related to PAR recovery sets
31 endef
32
33 CONFIGURE_ARGS += \
34         --disable-static \
35         --disable-nls \
36
37 define Build/Compile
38         $(MAKE) -C $(PKG_BUILD_DIR) \
39                 $(TARGET_CONFIGURE_OPTS) \
40                 CFLAGS="$(TARGET_CFLAGS)" \
41                 DESTDIR="$(PKG_INSTALL_DIR)" \
42                 all install
43 endef
44
45 define Build/InstallDev
46         $(INSTALL_DIR) $(1)/usr/include/libpar2
47         $(INSTALL_DATA) \
48                 $(PKG_INSTALL_DIR)/usr/include/libpar2/*.h \
49                 $(1)/usr/include/libpar2/
50
51         $(INSTALL_DIR) $(1)/usr/lib
52         $(CP) \
53                 $(PKG_INSTALL_DIR)/usr/lib/libpar2.{la,so*} \
54                 $(1)/usr/lib/
55 endef
56
57 define Package/libpar2/install
58         $(INSTALL_DIR) $(1)/usr/lib
59         $(CP) \
60                 $(PKG_INSTALL_DIR)/usr/lib/libpar2.so* \
61                 $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,libpar2))