forked from bluenviron/mediamtx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openwrt.mk
36 lines (27 loc) · 933 Bytes
/
openwrt.mk
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
include $(TOPDIR)/rules.mk
PKG_NAME:=mediamtx
PKG_VERSION:=v0.0.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/bluenviron/mediamtx
PKG_SOURCE_VERSION:=$(PKG_VERSION)
PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0
GO_PKG:=github.com/bluenviron/mediamtx
GO_PKG_LDFLAGS_X:=github.com/bluenviron/mediamtx/internal/core.version=$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk
GO_MOD_ARGS:=-buildvcs=false
define Package/mediamtx
SECTION:=net
CATEGORY:=Network
TITLE:=mediamtx
URL:=https://github.com/bluenviron/mediamtx
DEPENDS:=$(GO_ARCH_DEPENDS)
endef
define Package/mediamtx/description
ready-to-use server and proxy that allows users to publish, read and proxy live video and audio streams through various protocols
endef
$(eval $(call GoBinPackage,mediamtx))
$(eval $(call BuildPackage,mediamtx))