123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- #
- # Copyright (C) 2012-2014 OpenWrt.org
- #
- # This is free software, licensed under the GNU General Public License v2.
- # See /LICENSE for more information.
- #
- include $(TOPDIR)/rules.mk
- PKG_NAME:=libplist
- PKG_VERSION:=1.13
- PKG_RELEASE:=2
- PKG_MAINTAINER:=Lukasz Baj <l.baj@radytek.com>
- PKG_LICENSE:=LGPL-2.1+
- PKG_LICENSE_FILES:=COPYING.LESSER
- PKG_SOURCE_PROTO:=git
- PKG_SOURCE_URL:=https://github.com/libimobiledevice/libplist.git
- PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
- PKG_SOURCE_VERSION:=060eda6b1846968aa40b0d38dcf92ac46f933417
- PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
- PKG_FIXUP:=autoreconf
- PKG_INSTALL:=1
- include $(INCLUDE_DIR)/package.mk
- define Package/libplist/Default
- TITLE:=Apple property list
- URL:=http://www.libimobiledevice.org/
- endef
- define Package/libplist/Default/description
- A library to handle Apple Property List format whereas it's binary or XML
- endef
- define Package/libplist
- $(call Package/libplist/Default)
- SECTION:=libs
- CATEGORY:=Libraries
- DEPENDS:=+libxml2
- TITLE+= library
- endef
- define Package/libplist/description
- $(call Package/libplist/Default/description)
- endef
- define Package/libplistcxx
- $(call Package/libplist/Default)
- SECTION:=libs
- CATEGORY:=Libraries
- DEPENDS:=+libplist +libstdcpp
- TITLE+= C++ library
- endef
- define Package/libplistcxx/description
- $(call Package/libplist/Default/description)
- This package contains the libplist C++ shared library.
- endef
- define Package/libplist-utils
- $(call Package/libplist/Default)
- SECTION:=utils
- CATEGORY:=Utilities
- DEPENDS:=+libplist
- TITLE+= converter
- endef
- define Package/libplist-utils/description
- $(call Package/libplist/Default/description)
- This package contains the libplist utilities.
- endef
- CONFIGURE_ARGS += \
- --without-cython
- define Build/InstallDev
- $(INSTALL_DIR) $(1)/usr/include
- $(CP) $(PKG_INSTALL_DIR)/usr/include/plist $(1)/usr/include/
- $(INSTALL_DIR) $(1)/usr/lib
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist*.so* $(1)/usr/lib/
- $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libplist*.pc $(1)/usr/lib/pkgconfig/
- endef
- define Package/libplist/install
- $(INSTALL_DIR) $(1)/usr/lib
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist.so.* $(1)/usr/lib/
- endef
- define Package/libplistcxx/install
- $(INSTALL_DIR) $(1)/usr/lib
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist++.so.* $(1)/usr/lib/
- endef
- define Package/libplist-utils/install
- $(INSTALL_DIR) $(1)/usr/bin
- $(CP) $(PKG_INSTALL_DIR)/usr/bin/plistutil $(1)/usr/bin/
- endef
- $(eval $(call BuildPackage,libplist))
- $(eval $(call BuildPackage,libplistcxx))
- $(eval $(call BuildPackage,libplist-utils))
|