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.

90 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.2
  10. PKG_RELEASE:=1
  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:=Rosen Penev <rosenp@gmail.com>
  16. PKG_LICENSE:=GPL-2.0+ LGPL-2.1+
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_CPE_ID:=cpe:/a:openobex:openobex
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/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. MAKE_FLAGS += \
  49. openobex openobex-apps \
  50. define Build/InstallDev
  51. $(INSTALL_DIR) $(1)/usr/include
  52. $(CP) $(PKG_INSTALL_DIR)/usr/include/openobex $(1)/usr/include/
  53. $(INSTALL_DIR) $(1)/usr/lib
  54. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopenobex.so* $(1)/usr/lib/
  55. $(CP) $(PKG_BUILD_DIR)/apps/lib/libopenobex-apps-common.a $(1)/usr/lib/
  56. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  57. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/openobex.pc $(1)/usr/lib/pkgconfig/
  58. endef
  59. define Package/openobex/install
  60. :
  61. endef
  62. define Package/openobex-apps/install
  63. $(INSTALL_DIR) $(1)/usr/bin
  64. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  65. $(INSTALL_DIR) $(1)/usr/sbin
  66. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
  67. endef
  68. define Package/libopenobex/install
  69. $(INSTALL_DIR) $(1)/usr/lib
  70. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopenobex.so.* $(1)/usr/lib/
  71. endef
  72. $(eval $(call BuildPackage,openobex))
  73. $(eval $(call BuildPackage,openobex-apps))
  74. $(eval $(call BuildPackage,libopenobex))