pps-tools: moved to github
[openwrt/svn-archive/packages.git] / libs / libimobiledevice / 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:=libimobiledevice
11 PKG_VERSION:=1.1.6
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:=274783651e9b772774cd9fed2fc52e08
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/nls.mk
23 $(call include_mk, python-package.mk)
24
25 define Package/libimobiledevice/Default
26 TITLE:=A library that talks to Apple devices.
27 URL:=http://www.libimobiledevice.org/
28 endef
29
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.
33 endef
34
35 define Package/libimobiledevice
36 $(call Package/libimobiledevice/Default)
37 SECTION:=libs
38 CATEGORY:=Libraries
39 DEPENDS:=+libgcrypt +libgnutls $(ICONV_DEPENDS) +libplist +libtasn1 +libusbmuxd
40 endef
41
42 define Package/libimobiledevice/description
43 $(call Package/libimobiledevice/Default/description)
44 endef
45
46 define Package/libimobiledevice-utils
47 $(call Package/libimobiledevice/Default)
48 SECTION:=utils
49 CATEGORY:=Utilities
50 DEPENDS:=+libimobiledevice
51 endef
52
53 define Package/libimobiledevice-utils/description
54 $(call Package/libimobiledevice/Default/description)
55 This package contains the libimobiledevice utilities.
56 endef
57
58 CONFIGURE_VARS += \
59 libusbmuxd_CFLAGS="-I$(STAGING_DIR)/usr/include" \
60 libusbmuxd_LIBS="-L$(STAGING_DIR)/usr/lib -lusbmuxd" \
61 openssl_CFLAGS=" " \
62 openssl_LIBS=" "
63
64 CONFIGURE_ARGS += \
65 --without-cython \
66 --disable-largefile \
67 --disable-openssl
68
69 TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
70
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/
78 endef
79
80 define Package/libimobiledevice/install
81 $(INSTALL_DIR) $(1)/usr/lib
82 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libimobiledevice.so.* $(1)/usr/lib/
83 endef
84
85 define Package/libimobiledevice-utils/install
86 $(INSTALL_DIR) $(1)/usr/bin
87 $(CP) $(PKG_INSTALL_DIR)/usr/bin/idevice* $(1)/usr/bin/
88 endef
89
90 $(eval $(call BuildPackage,libimobiledevice))
91 $(eval $(call BuildPackage,libimobiledevice-utils))