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.

69 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2010-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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=liblo
  9. PKG_VERSION:=0.31
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/liblo
  13. PKG_HASH:=2b4f446e1220dcd624ecd8405248b08b7601e9a0d87a0b94730c2907dbccc750
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=LGPL-2.1-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. CMAKE_INSTALL:=1
  18. CMAKE_SOURCE_SUBDIR:=cmake
  19. PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_liblo-utils
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/cmake.mk
  22. define Package/liblo/Default
  23. TITLE:=Lightweight Open Sound Control (OSC)
  24. URL:=http://liblo.sourceforge.net/
  25. endef
  26. define Package/liblo
  27. $(call Package/liblo/Default)
  28. SECTION:=libs
  29. CATEGORY:=Libraries
  30. SUBMENU:=Sound
  31. TITLE+= library
  32. DEPENDS:= +libpthread
  33. endef
  34. define Package/liblo-utils
  35. $(call Package/liblo/Default)
  36. CATEGORY:=Sound
  37. TITLE+= utilities
  38. DEPENDS:= +liblo
  39. endef
  40. CMAKE_OPTIONS += \
  41. -DWITH_TOOLS=O$(if $(CONFIG_PACKAGE_liblo-utils),N,FF) \
  42. -DWITH_TESTS=OFF \
  43. -DWITH_EXAMPLES=OFF \
  44. -DWITH_CPP_TESTS=OFF \
  45. -DWITH_STATIC=OFF \
  46. -DTHREADING=ON
  47. define Package/liblo/install
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblo.so.* $(1)/usr/lib/
  50. endef
  51. define Package/liblo-utils/install
  52. $(INSTALL_DIR) $(1)/usr/bin
  53. $(CP) $(PKG_INSTALL_DIR)/usr/bin/osc{dump,send} $(1)/usr/bin/
  54. endef
  55. $(eval $(call BuildPackage,liblo))
  56. $(eval $(call BuildPackage,liblo-utils))