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.

68 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.30
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/liblo
  13. PKG_HASH:=30a7c9de49a25ed7f2425a7a7415f5b14739def62431423d3419ea26fb978d1b
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=LGPL-2.1+
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/liblo/Default
  21. TITLE:=Lightweight Open Sound Control (OSC)
  22. URL:=http://liblo.sourceforge.net/
  23. endef
  24. define Package/liblo
  25. $(call Package/liblo/Default)
  26. SECTION:=libs
  27. CATEGORY:=Libraries
  28. SUBMENU:=Sound
  29. TITLE+= library
  30. DEPENDS:= +libpthread
  31. endef
  32. define Package/liblo-utils
  33. $(call Package/liblo/Default)
  34. CATEGORY:=Sound
  35. TITLE+= utilities
  36. DEPENDS:= +liblo
  37. endef
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include
  40. $(CP) $(PKG_INSTALL_DIR)/usr/include/lo $(1)/usr/include/
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblo.* $(1)/usr/lib/
  43. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/liblo.pc $(1)/usr/lib/pkgconfig/
  45. endef
  46. define Package/liblo/install
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblo.so.* $(1)/usr/lib/
  49. endef
  50. define Package/liblo-utils/install
  51. $(INSTALL_DIR) $(1)/usr/bin
  52. $(CP) $(PKG_INSTALL_DIR)/usr/bin/osc{dump,send} $(1)/usr/bin/
  53. endef
  54. $(eval $(call BuildPackage,liblo))
  55. $(eval $(call BuildPackage,liblo-utils))