diff options
author | Steven Barth <steven@midlink.org> | 2014-12-01 08:59:00 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-12-01 08:59:00 +0100 |
commit | 38befcd838e3c8bc6953dd2dd30126d8a4186f56 (patch) | |
tree | c0e430911efb2a7ae3804d35c4d23434fd97acfd | |
parent | 40aaae1f9d6d13785bad8885991d3797cdd879ea (diff) | |
parent | f63733cdeb1840d11d9ef6c68669967179b3b2dd (diff) |
Merge pull request #583 from Frieds-Technology/libartnet
libartnet: new package added
-rw-r--r-- | libs/libartnet/Makefile | 60 | ||||
-rw-r--r-- | libs/libartnet/patches/001-bswap_16.patch | 12 |
2 files changed, 72 insertions, 0 deletions
diff --git a/libs/libartnet/Makefile b/libs/libartnet/Makefile new file mode 100644 index 000000000..c5b003e02 --- /dev/null +++ b/libs/libartnet/Makefile @@ -0,0 +1,60 @@ +# +# Copyright (C) 2010-2014 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libartnet +PKG_VERSION:=1.1.2 +PKG_RELEASE:=1.1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/OpenLightingProject/libartnet/releases/download/1.1.2 +PKG_MD5SUM:=dcceab3efe3dae4c18fa549dbd198e71 + +PKG_MAINTAINER:=Martijn Zilverschoon <martijn@friedzombie.com> + +PKG_LICENSE:=GPL-2.1 +PKG_LICENSE_FILES:=COPYING + +include $(INCLUDE_DIR)/package.mk + +define Package/libartnet + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Libartnet is an implementation of the ArtNet protocol. + URL:=http://www.openlighting.org/libartnet-main/ +endef + +define Package/libartnet/description + Libartnet is an implementation of the ArtNet protocol. ArtNet allows the + transmission of DMX and related data over IP networks. +endef + +define Build/Configure + $(call Build/Configure/Default) +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) \ + DESTDIR="$(PKG_INSTALL_DIR)" \ + all install +endef + +define Build/InstallDev + mkdir -p $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/artnet $(1)/usr/include/ + mkdir -p $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libartnet.{so,so.1,so.1.0.0} $(1)/usr/lib/ +endef + + +define Package/libartnet/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libartnet.{so,so.1,so.1.0.0} $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libartnet)) diff --git a/libs/libartnet/patches/001-bswap_16.patch b/libs/libartnet/patches/001-bswap_16.patch new file mode 100644 index 000000000..9c9be5f16 --- /dev/null +++ b/libs/libartnet/patches/001-bswap_16.patch @@ -0,0 +1,12 @@ +--- a/artnet/private.h ++++ b/artnet/private.h +@@ -100,7 +100,9 @@ extern uint16_t HIGH_BYTE; + #endif + + // byte ordering macros ++#ifndef bswap_16 + #define bswap_16(x) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8)) ++#endif + + // htols : convert short from host to little endian order + #ifdef WIN32 |