pps-tools: moved to github
[packages.git] / libs / libplist / Makefile
1 #
2 # Copyright (C) 2012-2014 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:=libplist
11 PKG_VERSION:=1.11
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.libimobiledevice.org/downloads
16 PKG_MD5SUM:=82de65f38cb2f0a9fd0839679b46072b
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libplist/Default
23   TITLE:=Apple property list
24   URL:=http://www.libimobiledevice.org/
25 endef
26
27 define Package/libplist/Default/description
28   A library to handle Apple Property List format whereas it's binary or XML
29 endef
30
31 define Package/libplist
32   $(call Package/libplist/Default)
33   SECTION:=libs
34   CATEGORY:=Libraries
35   DEPENDS:=+libxml2
36   TITLE+= library
37 endef
38
39 define Package/libplist/description
40   $(call Package/libplist/Default/description)
41 endef
42
43 define Package/libplistcxx
44   $(call Package/libplist/Default)
45   SECTION:=libs
46   CATEGORY:=Libraries
47   DEPENDS:=+libplist +libstdcpp
48   TITLE+= C++ library
49 endef
50
51 define Package/libplistcxx/description
52   $(call Package/libplist/Default/description)
53   This package contains the libplist C++ shared library.
54 endef
55
56 define Package/libplist-utils
57   $(call Package/libplist/Default)
58   SECTION:=utils
59   CATEGORY:=Utilities
60   DEPENDS:=+libplist
61   TITLE+= converter
62 endef
63
64 define Package/libplist-utils/description
65   $(call Package/libplist/Default/description)
66   This package contains the libplist utilities.
67 endef
68
69 CONFIGURE_ARGS += \
70         --without-cython
71
72 define Build/InstallDev
73         $(INSTALL_DIR) $(1)/usr/include
74         $(CP) $(PKG_INSTALL_DIR)/usr/include/plist $(1)/usr/include/
75         $(INSTALL_DIR) $(1)/usr/lib
76         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist*.so* $(1)/usr/lib/
77         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
78         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libplist*.pc $(1)/usr/lib/pkgconfig/
79 endef
80
81 define Package/libplist/install
82         $(INSTALL_DIR) $(1)/usr/lib
83         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist.so.* $(1)/usr/lib/
84 endef
85
86 define Package/libplistcxx/install
87         $(INSTALL_DIR) $(1)/usr/lib
88         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist++.so.* $(1)/usr/lib/
89 endef
90
91 define Package/libplist-utils/install
92         $(INSTALL_DIR) $(1)/usr/bin
93         $(CP) $(PKG_INSTALL_DIR)/usr/bin/plistutil $(1)/usr/bin/
94 endef
95
96 $(eval $(call BuildPackage,libplist))
97 $(eval $(call BuildPackage,libplistcxx))
98 $(eval $(call BuildPackage,libplist-utils))