Skip to content

Commit

Permalink
v4l2rtspserver: Update to 0.1.1
Browse files Browse the repository at this point in the history
Switched to using versioned releases.

Removed md5 usage and went full sha256.

Various other adjustments.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Dec 15, 2018
1 parent 2b6d26b commit d78d39d
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions multimedia/v4l2rtspserver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,27 @@
# See /LICENSE for more information.

include $(TOPDIR)/rules.mk

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/mpromonet/v4l2rtspserver.git
PKG_MIRROR_HASH:=ccd2424b94feb7c52e53700b8613e16291463e3717aff598385d8439ad8c81af
PKG_SOURCE_VERSION:=7ead7613fe6719b6004d229130f7d62aa0a149e7
PKG_DATE:=2018-05-26

PKG_NAME:=v4l2rtspserver
PKG_VERSION:=$(PKG_DATE)-$(PKG_SOURCE_VERSION)
PKG_VERSION:=0.1.1
PKG_RELEASE:=1

#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)
PKG_MIRROR_HASH:=3e3c106b41562be010ba2132903ebf9cdc75a2caceca468b10e2cd0d2939e940

PKG_MAINTAINER:=Roger Dammit <[email protected]>
PKG_LICENSE:=Unlicense
PKG_LICENSE_FILES:=LICENSE

LIVE555_VERSION:=2018.04.25
LIVE555_MD5SUM:=9b58a5d62659eb29b9bd85d1b29c3a75
LIVE555_VERSION:=2018.12.14
LIVE555_HASH:=8dc31f76909602c3c07c8f876237e6ab7ac674d00f1bb065eda20e719f772a47
LIVE555_FILE:=live.$(LIVE555_VERSION).tar.gz

CMAKE_INSTALL:=1
PKG_BUILD_PARALLEL:=1
CMAKE_INSTALL:=1

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
Expand All @@ -32,7 +36,7 @@ define Package/v4l2rtspserver
TITLE:=v4l2rtspserver
DEPENDS:=+libstdcpp
URL:=https://github.com/mpromonet/v4l2rtspserver
endef
endef

define Package/v4l2rtspserver/description
RTSP server for v4L2 video sources
Expand All @@ -45,7 +49,7 @@ endef
define Download/live555
URL:=https://download.videolan.org/pub/contrib/live555/
FILE:=$(LIVE555_FILE)
MD5SUM:=$(LIVE555_MD5SUM)
HASH:=$(LIVE555_HASH)
endef

define Build/Prepare
Expand All @@ -61,7 +65,7 @@ define Build/Prepare
$(CP) files/config.openwrt $(PKG_BUILD_DIR)/live555
( cd $(PKG_BUILD_DIR)/live555; ./genMakefiles openwrt )

$(MAKE) $(MAKE_FLAGS) -C $(PKG_BUILD_DIR)/live555
$(MAKE) $(MAKE_FLAGS) -C $(PKG_BUILD_DIR)/live555
$(MAKE) -C $(PKG_BUILD_DIR)/live555 PREFIX="$(STAGING_DIR)/usr/" install

# build v4l2wrapper
Expand All @@ -70,7 +74,7 @@ define Build/Prepare

# cmake patches (these are very hacky and should be a lot cleaner)

# prevent root path override
# prevent root path override
$(SED) 's/SET(CMAKE_FIND_ROOT_PATH/#SET(CMAKE_FIND_ROOT_PATH/' $(PKG_BUILD_DIR)/CMakeLists.txt

# set search path for v4l2wrapper to current build dir
Expand All @@ -89,6 +93,6 @@ define Package/v4l2rtspserver/install
$(INSTALL_BIN) files/v4l2rtspserver.init $(1)/etc/init.d/v4l2rtspserver
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) files/v4l2rtspserver.config $(1)/etc/config/v4l2rtspserver
endef
endef

$(eval $(call BuildPackage,v4l2rtspserver))

0 comments on commit d78d39d

Please sign in to comment.