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.

60 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:=libartnet
  9. PKG_VERSION:=1.1.2
  10. PKG_RELEASE:=1.1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/OpenLightingProject/libartnet/releases/download/1.1.2
  13. PKG_HASH:=19cdda434e208a81ddd138377f11046364438e40e34542ae101d6aa3fcaec696
  14. PKG_MAINTAINER:=Martijn Zilverschoon <martijn@friedzombie.com>
  15. PKG_LICENSE:=GPL-2.1
  16. PKG_LICENSE_FILES:=COPYING
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/libartnet
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=Libartnet is an implementation of the ArtNet protocol.
  22. URL:=http://www.openlighting.org/libartnet-main/
  23. endef
  24. define Package/libartnet/description
  25. Libartnet is an implementation of the ArtNet protocol. ArtNet allows the
  26. transmission of DMX and related data over IP networks.
  27. endef
  28. define Build/Configure
  29. $(call Build/Configure/Default)
  30. endef
  31. define Build/Compile
  32. $(MAKE) -C $(PKG_BUILD_DIR) \
  33. DESTDIR="$(PKG_INSTALL_DIR)" \
  34. all install
  35. endef
  36. define Build/InstallDev
  37. mkdir -p $(1)/usr/include
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/artnet $(1)/usr/include/
  39. mkdir -p $(1)/usr/lib
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libartnet.{so,so.1,so.1.0.0} $(1)/usr/lib/
  41. endef
  42. define Package/libartnet/install
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libartnet.{so,so.1,so.1.0.0} $(1)/usr/lib/
  45. endef
  46. $(eval $(call BuildPackage,libartnet))