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.

91 lines
2.3 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.2
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-Source.tar.gz
  12. PKG_SOURCE_URL:=@SF/openobex
  13. PKG_HASH:=158860aaea52f0fce0c8e4b64550daaae06df2689e05834697b7e8c7d73dd4fc
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-Source
  15. PKG_MAINTAINER:=
  16. PKG_LICENSE:=GPL-2.0-or-later LGPL-2.1-or-later
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_CPE_ID:=cpe:/a:openobex:openobex
  19. include $(INCLUDE_DIR)/package.mk
  20. include ../../devel/ninja/ninja-cmake.mk
  21. define Package/openobex/Default
  22. TITLE:=Open Source impl of the OBject EXchange protocol
  23. URL:=https://www.gitorious.org/openobex
  24. endef
  25. define Package/openobex
  26. $(call Package/openobex/Default)
  27. SECTION:=utils
  28. CATEGORY:=Utilities
  29. TITLE+= (meta)
  30. DEPENDS:=+openobex-apps +libopenobex
  31. endef
  32. define Package/openobex-apps
  33. $(call Package/openobex/Default)
  34. SECTION:=utils
  35. CATEGORY:=Utilities
  36. TITLE+= (apps)
  37. DEPENDS:=+libopenobex +bluez-libs
  38. endef
  39. define Package/libopenobex
  40. $(call Package/openobex/Default)
  41. SECTION:=libs
  42. CATEGORY:=Libraries
  43. TITLE+= (library)
  44. DEPENDS:=+libusb-1.0
  45. endef
  46. CMAKE_OPTIONS += \
  47. -DBUILD_DOCUMENTATION:BOOL=OFF
  48. define Build/Compile
  49. $(call Build/Compile/Default,openobex openobex-apps)
  50. endef
  51. define Build/InstallDev
  52. $(INSTALL_DIR) $(1)/usr/include
  53. $(CP) $(PKG_INSTALL_DIR)/usr/include/openobex $(1)/usr/include/
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopenobex.so* $(1)/usr/lib/
  56. $(CP) $(PKG_BUILD_DIR)/apps/lib/libopenobex-apps-common.a $(1)/usr/lib/
  57. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  58. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/openobex.pc $(1)/usr/lib/pkgconfig/
  59. endef
  60. define Package/openobex/install
  61. :
  62. endef
  63. define Package/openobex-apps/install
  64. $(INSTALL_DIR) $(1)/usr/bin
  65. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  66. $(INSTALL_DIR) $(1)/usr/sbin
  67. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
  68. endef
  69. define Package/libopenobex/install
  70. $(INSTALL_DIR) $(1)/usr/lib
  71. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopenobex.so.* $(1)/usr/lib/
  72. endef
  73. $(eval $(call BuildPackage,openobex))
  74. $(eval $(call BuildPackage,openobex-apps))
  75. $(eval $(call BuildPackage,libopenobex))