lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (2577B)


      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:=libusbmuxd
     11 PKG_VERSION:=1.1.0
     12 PKG_RELEASE:=2
     13 
     14 PKG_MAINTAINER:=Lukasz Baj <l.baj@radytek.com>
     15 PKG_LICENSE:=LGPL-2.1+
     16 PKG_LICENSE_FILES:=COPYING.LGPLv2.1
     17 
     18 PKG_SOURCE_PROTO:=git
     19 PKG_SOURCE_URL:=https://github.com/libimobiledevice/libusbmuxd.git
     20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
     21 PKG_SOURCE_VERSION:=4397b3376dc4e4cb1c991d0aed61ce6482614196
     22 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
     23 
     24 PKG_FIXUP:=autoreconf
     25 PKG_INSTALL:=1
     26 
     27 include $(INCLUDE_DIR)/package.mk
     28 
     29 define Package/libusbmuxd/Default
     30   TITLE:=USB multiplexing daemon
     31   URL:=http://www.libimobiledevice.org/
     32 endef
     33 
     34 define Package/libusbmuxd/Default/description
     35   This daemon is in charge of multiplexing connections over USB to an iPhone or
     36   iPod touch. To users, it means you can sync your music, contacts, photos, etc.
     37   over USB. To developers, it means you can connect to any listening localhost
     38   socket on the device. usbmuxd is not used for tethering data transfer, which
     39   uses a dedicated USB interface as a virtual network device.
     40 endef
     41 
     42 define Package/libusbmuxd
     43   $(call Package/libusbmuxd/Default)
     44   SECTION:=libs
     45   CATEGORY:=Libraries
     46   TITLE+= library
     47   DEPENDS:=+libplist +libpthread +libxml2 +zlib
     48 endef
     49 
     50 define Package/libusbmuxd/description
     51   $(call Package/libusbmuxd/Default/description)
     52   This package contains the libusbmuxd shared library.
     53 endef
     54 
     55 define Package/libusbmuxd-utils
     56   $(call Package/libusbmuxd/Default)
     57   SECTION:=utils
     58   CATEGORY:=Utilities
     59   TITLE+= utilies
     60   DEPENDS:=+libusbmuxd
     61 endef
     62 
     63 define Package/libusbmuxd-utils/description
     64   $(call Package/libusbmuxd/Default/description)
     65   This package contains the libusbmuxd utilities.
     66 endef
     67 
     68 TARGET_CFLAGS += $(FPIC)
     69 
     70 define Build/InstallDev
     71 	$(INSTALL_DIR) $(1)/usr/include
     72 	$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
     73 	$(INSTALL_DIR) $(1)/usr/lib
     74 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbmuxd.so* $(1)/usr/lib/
     75 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
     76 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libusbmuxd.pc $(1)/usr/lib/pkgconfig/
     77 endef
     78 
     79 define Package/libusbmuxd/install
     80 	$(INSTALL_DIR) $(1)/usr/lib
     81 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbmuxd.so.* $(1)/usr/lib/
     82 endef
     83 
     84 define Package/libusbmuxd-utils/install
     85 	$(INSTALL_DIR) $(1)/usr/bin
     86 	$(CP) $(PKG_INSTALL_DIR)/usr/bin/iproxy $(1)/usr/bin/
     87 endef
     88 
     89 $(eval $(call BuildPackage,libusbmuxd))
     90 $(eval $(call BuildPackage,libusbmuxd-utils))