You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=openobex
  9. PKG_VERSION:=1.7.1
  10. PKG_RELEASE:=1
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-Source
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-Source.tar.gz
  13. PKG_SOURCE_URL:=@SF/openobex
  14. PKG_MD5SUM:=3181bfed9cb7db591605391068cb0085
  15. PKG_LICENSE:=GPL-2.0+ LGPL-2.1+
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/openobex/Default
  21. TITLE:=Open Source impl of the OBject EXchange protocol
  22. URL:=https://www.gitorious.org/openobex
  23. endef
  24. define Package/openobex
  25. $(call Package/openobex/Default)
  26. SECTION:=utils
  27. CATEGORY:=Utilities
  28. TITLE+= (meta)
  29. DEPENDS:=+openobex-apps +libopenobex
  30. endef
  31. define Package/openobex-apps
  32. $(call Package/openobex/Default)
  33. SECTION:=utils
  34. CATEGORY:=Utilities
  35. TITLE+= (apps)
  36. DEPENDS:=+libopenobex +bluez-libs
  37. endef
  38. define Package/libopenobex
  39. $(call Package/openobex/Default)
  40. SECTION:=libs
  41. CATEGORY:=Libraries
  42. TITLE+= (library)
  43. DEPENDS:=+libusb-1.0
  44. endef
  45. CMAKE_OPTIONS += \
  46. -DBUILD_DOCUMENTATION:BOOL=OFF \
  47. MAKE_FLAGS += \
  48. openobex openobex-apps \
  49. define Build/InstallDev
  50. $(INSTALL_DIR) $(1)/usr/include
  51. $(CP) $(PKG_INSTALL_DIR)/usr/include/openobex $(1)/usr/include/
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopenobex.so* $(1)/usr/lib/
  54. $(CP) $(PKG_BUILD_DIR)/apps/lib/libopenobex-apps-common.a $(1)/usr/lib/
  55. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/openobex.pc $(1)/usr/lib/pkgconfig/
  57. endef
  58. define Package/openobex/install
  59. :
  60. endef
  61. define Package/openobex-apps/install
  62. $(INSTALL_DIR) $(1)/usr/bin
  63. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  64. $(INSTALL_DIR) $(1)/usr/sbin
  65. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
  66. endef
  67. define Package/libopenobex/install
  68. $(INSTALL_DIR) $(1)/usr/lib
  69. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopenobex.so.* $(1)/usr/lib/
  70. endef
  71. $(eval $(call BuildPackage,openobex))
  72. $(eval $(call BuildPackage,openobex-apps))
  73. $(eval $(call BuildPackage,libopenobex))