2017-12-17 00:04:43 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2017 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:=v4l2rtspserver
|
2022-10-12 13:26:48 +00:00
|
|
|
PKG_VERSION:=0.3.7
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=8
|
2018-12-15 21:09:07 +00:00
|
|
|
|
|
|
|
#cannot use codeload as this uses submodules
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL:=https://github.com/mpromonet/v4l2rtspserver
|
|
|
|
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
|
2022-10-12 13:26:48 +00:00
|
|
|
PKG_MIRROR_HASH:=f2eca75c8af9933f4ceb67cab74af488e1e9ec8af9cbef2534fda5b701b1d63d
|
2017-12-17 00:04:43 +00:00
|
|
|
|
2023-03-23 08:27:01 +00:00
|
|
|
PKG_BUILD_FLAGS:=gc-sections lto
|
2023-03-23 08:09:13 +00:00
|
|
|
|
2022-10-12 13:26:48 +00:00
|
|
|
LIVE555_VERSION:=2022.10.01
|
|
|
|
LIVE555_HASH:=429de73061e3fc6901c4d2f0b7562ae3f6233060ca4b5e182fe555d065cbdd45
|
2017-12-17 00:04:43 +00:00
|
|
|
LIVE555_FILE:=live.$(LIVE555_VERSION).tar.gz
|
|
|
|
|
2019-03-05 21:14:39 +00:00
|
|
|
PKG_MAINTAINER:=Roger Dammit <rogerdammit@gmail.com>
|
|
|
|
PKG_LICENSE:=Unlicense
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
2017-12-17 00:04:43 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-10 23:27:06 +00:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2017-12-17 00:04:43 +00:00
|
|
|
|
|
|
|
define Package/v4l2rtspserver
|
|
|
|
SECTION:=multimedia
|
|
|
|
CATEGORY:=Multimedia
|
|
|
|
TITLE:=v4l2rtspserver
|
2021-02-23 04:58:58 +00:00
|
|
|
DEPENDS:=+libstdcpp
|
2017-12-17 00:04:43 +00:00
|
|
|
URL:=https://github.com/mpromonet/v4l2rtspserver
|
2018-12-15 21:09:07 +00:00
|
|
|
endef
|
2017-12-17 00:04:43 +00:00
|
|
|
|
|
|
|
define Package/v4l2rtspserver/description
|
|
|
|
RTSP server for v4L2 video sources
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/v4l2rtspserver/conffiles
|
2018-06-05 23:15:29 +00:00
|
|
|
/etc/config/v4l2rtspserver
|
2017-12-17 00:04:43 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Download/live555
|
|
|
|
URL:=https://download.videolan.org/pub/contrib/live555/
|
|
|
|
FILE:=$(LIVE555_FILE)
|
2018-12-15 21:09:07 +00:00
|
|
|
HASH:=$(LIVE555_HASH)
|
2017-12-17 00:04:43 +00:00
|
|
|
endef
|
|
|
|
|
2023-03-23 08:09:13 +00:00
|
|
|
TARGET_LDFLAGS += -Wl,--as-needed
|
2018-12-15 21:09:07 +00:00
|
|
|
|
2020-06-25 23:12:34 +00:00
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DALSA=OFF \
|
2022-10-12 13:26:48 +00:00
|
|
|
-DSTATICSTDCPP=OFF \
|
2020-06-25 23:12:34 +00:00
|
|
|
-DLIVE555CFLAGS=" -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALE_NOT_USED -DNO_SSTREAM=1 -DALLOW_RTSP_SERVER_PORT_REUSE=1 -DNO_OPENSSL"
|
2017-12-17 00:04:43 +00:00
|
|
|
|
2019-08-29 18:59:20 +00:00
|
|
|
define Build/Prepare
|
2019-03-05 21:14:39 +00:00
|
|
|
# download live555
|
|
|
|
$(eval $(call Download,live555))
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)/live
|
|
|
|
$(TAR) -xf $(DL_DIR)/$(LIVE555_FILE) --strip=1 -C $(PKG_BUILD_DIR)/live
|
2021-10-31 11:17:09 +00:00
|
|
|
$(Build/Prepare/Default)
|
2017-12-17 00:04:43 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/v4l2rtspserver/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2019-08-29 18:59:20 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/v4l2rtspserver $(1)/usr/bin/
|
2017-12-17 00:04:43 +00:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) files/v4l2rtspserver.init $(1)/etc/init.d/v4l2rtspserver
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_CONF) files/v4l2rtspserver.config $(1)/etc/config/v4l2rtspserver
|
2018-12-15 21:09:07 +00:00
|
|
|
endef
|
2017-12-17 00:04:43 +00:00
|
|
|
|
2018-06-05 23:15:29 +00:00
|
|
|
$(eval $(call BuildPackage,v4l2rtspserver))
|