2 # Copyright (C) 2012 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
11 PKG_REV
:=c182599c8c18ed729726ea7cbbd0a3b89790d2db
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=git
://git.sukimashita.com
/libimobiledevice.git
18 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
19 PKG_SOURCE_VERSION
:=$(PKG_REV
)
24 include $(INCLUDE_DIR
)/package.mk
25 include $(INCLUDE_DIR
)/nls.mk
26 $(call include_mk
, python-package.mk
)
28 define Package
/libimobiledevice
/Default
29 TITLE
:=A library that talks to Apple devices.
30 URL
:=http
://www.libimobiledevice.org
/
33 define Package
/libimobiledevice
/Default
/description
34 libimobiledevice is a software library that talks the protocols to support
35 iPhone®
, iPod Touch®
, iPad® and Apple TV® devices.
38 define Package
/libimobiledevice
39 $(call Package
/libimobiledevice
/Default
)
42 DEPENDS
:=+glib2
+libgcrypt
+libgnutls
$(ICONV_DEPENDS
) +libplist
+libtasn1
+libusbmuxd
45 define Package
/libimobiledevice
/description
46 $(call Package
/libimobiledevice
/Default
/description
)
49 define Package
/libimobiledevice-utils
50 $(call Package
/libimobiledevice
/Default
)
53 DEPENDS
:=+libimobiledevice
56 define Package
/libimobiledevice-utils
/description
57 $(call Package
/libimobiledevice
/Default
/description
)
58 This package contains the libimobiledevice utilities.
61 CONFIGURE_ARGS
+= --without-swig
63 TARGET_LDFLAGS
+= -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib
65 define Build
/InstallDev
66 $(INSTALL_DIR
) $(1)/usr
/include
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libimobiledevice
$(1)/usr
/include/
68 $(INSTALL_DIR
) $(1)/usr
/lib
69 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libimobiledevice.
{a
,la
,so
*} $(1)/usr
/lib
/
70 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libimobiledevice-
*.
pc $(1)/usr
/lib
/pkgconfig
/
74 define Package
/libimobiledevice
/install
75 $(INSTALL_DIR
) $(1)/usr
/lib
76 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libimobiledevice.so.
* $(1)/usr
/lib
/
79 define Package
/libimobiledevice-utils
/install
80 $(INSTALL_DIR
) $(1)/usr
/bin
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/idevice
* $(1)/usr
/bin
/
84 $(eval
$(call BuildPackage
,libimobiledevice
))
85 $(eval
$(call BuildPackage
,libimobiledevice-utils
))