2014-09-25 09:48:31 +00:00
|
|
|
#
|
|
|
|
# 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
|
2020-06-20 05:28:27 +00:00
|
|
|
PKG_VERSION:=2.2.0
|
2021-02-23 04:48:58 +00:00
|
|
|
PKG_RELEASE:=3
|
2019-10-13 04:29:00 +00:00
|
|
|
|
2020-06-20 05:28:27 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=https://www.libimobiledevice.org/downloads
|
|
|
|
PKG_HASH:=4a5517e5377ec421df84c586ba85bb4e1d26f11ad203d7d450a907c0156fbd9a
|
2014-09-25 09:48:31 +00:00
|
|
|
|
2019-12-16 20:42:45 +00:00
|
|
|
PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
|
|
|
|
PKG_CPE_ID:=cpe:/a:libimobiledevice:libplist
|
2014-09-25 09:48:31 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2019-10-13 04:29:00 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2023-03-23 08:27:01 +00:00
|
|
|
PKG_BUILD_FLAGS:=lto
|
2014-09-25 09:48:31 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libplist/Default
|
|
|
|
TITLE:=Apple property list
|
2019-10-13 04:29:00 +00:00
|
|
|
URL:=https://www.libimobiledevice.org/
|
2019-12-16 20:42:45 +00:00
|
|
|
SUBMENU:=libimobiledevice
|
2014-09-25 09:48:31 +00:00
|
|
|
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
|
2019-11-27 06:05:48 +00:00
|
|
|
PKG_LICENSE:=LGPL-2.1-or-later
|
|
|
|
PKG_LICENSE_FILES:=COPYING.LESSER
|
2014-09-25 09:48:31 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libplist/description
|
|
|
|
$(call Package/libplist/Default/description)
|
|
|
|
endef
|
|
|
|
|
2019-12-16 20:42:45 +00:00
|
|
|
define Package/plistutil
|
2014-09-25 09:48:31 +00:00
|
|
|
$(call Package/libplist/Default)
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=+libplist
|
|
|
|
TITLE+= converter
|
2019-11-27 06:05:48 +00:00
|
|
|
LICENSE:=GPL-2.0-or-later
|
|
|
|
LICENSE_FILES:=COPYING
|
2014-09-25 09:48:31 +00:00
|
|
|
endef
|
|
|
|
|
2019-12-16 20:42:45 +00:00
|
|
|
define Package/plistutil/description
|
2014-09-25 09:48:31 +00:00
|
|
|
$(call Package/libplist/Default/description)
|
|
|
|
This package contains the libplist utilities.
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
2020-06-20 05:28:27 +00:00
|
|
|
--disable-static \
|
2014-09-25 09:48:31 +00:00
|
|
|
--without-cython
|
|
|
|
|
2019-10-13 04:29:00 +00:00
|
|
|
TARGET_LDFLAGS += -Wl,--gc-sections
|
2017-06-05 20:36:33 +00:00
|
|
|
|
2014-09-25 09:48:31 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/plist $(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2020-06-20 05:28:27 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist-2.0*.so* $(1)/usr/lib/
|
2014-09-25 09:48:31 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2020-06-26 21:55:39 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libplist-2.0.pc $(1)/usr/lib/pkgconfig/
|
|
|
|
$(LN) libplist-2.0.pc $(1)/usr/lib/pkgconfig/libplist.pc
|
2014-09-25 09:48:31 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libplist/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2020-06-20 05:28:27 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist-2.0.so.* $(1)/usr/lib/
|
2014-09-25 09:48:31 +00:00
|
|
|
endef
|
|
|
|
|
2019-12-16 20:42:45 +00:00
|
|
|
define Package/plistutil/install
|
2014-09-25 09:48:31 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/plistutil $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libplist))
|
2019-12-16 20:42:45 +00:00
|
|
|
$(eval $(call BuildPackage,plistutil))
|