2 # Copyright (C) 2012-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=libimobiledevice
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://www.libimobiledevice.org
/downloads
16 PKG_MD5SUM
:=274783651e9b772774cd9fed2fc52e08
21 include $(INCLUDE_DIR
)/package.mk
22 include $(INCLUDE_DIR
)/nls.mk
23 $(call include_mk
, python-package.mk
)
25 define Package
/libimobiledevice
/Default
26 TITLE
:=A library that talks to Apple devices.
27 URL
:=http
://www.libimobiledevice.org
/
30 define Package
/libimobiledevice
/Default
/description
31 libimobiledevice is a software library that talks the protocols to support
32 iPhone®
, iPod Touch®
, iPad® and Apple TV® devices.
35 define Package
/libimobiledevice
36 $(call Package
/libimobiledevice
/Default
)
39 DEPENDS
:=+libgcrypt
+libgnutls
$(ICONV_DEPENDS
) +libplist
+libtasn1
+libusbmuxd
42 define Package
/libimobiledevice
/description
43 $(call Package
/libimobiledevice
/Default
/description
)
46 define Package
/libimobiledevice-utils
47 $(call Package
/libimobiledevice
/Default
)
50 DEPENDS
:=+libimobiledevice
53 define Package
/libimobiledevice-utils
/description
54 $(call Package
/libimobiledevice
/Default
/description
)
55 This package contains the libimobiledevice utilities.
59 libusbmuxd_CFLAGS
="-I$(STAGING_DIR)/usr/include" \
60 libusbmuxd_LIBS
="-L$(STAGING_DIR)/usr/lib -lusbmuxd" \
69 TARGET_LDFLAGS
+= -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib
71 define Build
/InstallDev
72 $(INSTALL_DIR
) $(1)/usr
/include
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libimobiledevice
$(1)/usr
/include/
74 $(INSTALL_DIR
) $(1)/usr
/lib
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libimobiledevice.
{a
,la
,so
*} $(1)/usr
/lib
/
76 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libimobiledevice-
*.
pc $(1)/usr
/lib
/pkgconfig
/
80 define Package
/libimobiledevice
/install
81 $(INSTALL_DIR
) $(1)/usr
/lib
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libimobiledevice.so.
* $(1)/usr
/lib
/
85 define Package
/libimobiledevice-utils
/install
86 $(INSTALL_DIR
) $(1)/usr
/bin
87 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/idevice
* $(1)/usr
/bin
/
90 $(eval
$(call BuildPackage
,libimobiledevice
))
91 $(eval
$(call BuildPackage
,libimobiledevice-utils
))