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.

70 lines
1.6 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.28
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/liblo
  13. PKG_MD5SUM:=e2a4391a08b49bb316c03e2034e06fa2
  14. PKG_LICENSE:=LGPL-2.1+
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/liblo/Default
  20. TITLE:=Lightweight Open Sound Control (OSC)
  21. URL:=http://liblo.sourceforge.net/
  22. endef
  23. define Package/liblo
  24. $(call Package/liblo/Default)
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. SUBMENU:=Sound
  28. TITLE+= library
  29. DEPENDS:= +libpthread
  30. endef
  31. define Package/liblo-utils
  32. $(call Package/liblo/Default)
  33. CATEGORY:=Sound
  34. TITLE+= utilities
  35. DEPENDS:= +liblo
  36. endef
  37. TARGET_CFLAGS += \
  38. -Wno-error=maybe-uninitialized \
  39. define Build/InstallDev
  40. $(INSTALL_DIR) $(1)/usr/include
  41. $(CP) $(PKG_INSTALL_DIR)/usr/include/lo $(1)/usr/include/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblo.* $(1)/usr/lib/
  44. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/liblo.pc $(1)/usr/lib/pkgconfig/
  46. endef
  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))