aboutsummaryrefslogtreecommitdiff
path: root/libs/libartnet/Makefile
blob: c5b003e0211bf14002132e75eddaee15f57d3441 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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))