@ -5,24 +5,29 @@
# See /LICENSE for more information.
i n c l u d e $( TOPDIR ) / r u l e s . m k
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 <rogerdammit@gmail.com>
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
i n c l u d e $( INCLUDE_DIR ) / u c l i b c + + . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
@ -30,9 +35,9 @@ define Package/v4l2rtspserver
SECTION:= multimedia
CATEGORY:= Multimedia
TITLE:= v4l2rtspserver
DEPENDS:= +libstdcpp
DEPENDS:= $( CXX_DEPENDS)
URL:= https://github.com/mpromonet/v4l2rtspserver
e n d e f
e n d e f
d e f i n e P a c k a g e / v 4 l 2 r t s p s e r v e r / d e s c r i p t i o n
RTSP server for v4L2 video sources
@ -45,32 +50,36 @@ endef
d e f i n e D o w n l o a d / l i v e 5 5 5
URL:= https://download.videolan.org/pub/contrib/live555/
FILE:= $( LIVE555_FILE)
MD5SUM:= $( LIVE555_MD5SUM )
HASH:= $( LIVE555_HASH )
e n d e f
TARGET_CFLAGS += -flto
TARGET_CXXFLAGS += -fno-rtti
TARGET_LDFLAGS += -Wl,--gc-sections
d e f i n e B u i l d / P r e p a r e
$( Build/Prepare/Default)
## need to compile some dependencies so that cmake will find them
# build live555
$( eval $( call Download,live555) )
$( eval $( call Download,live555) )
mkdir -p $( PKG_BUILD_DIR) /live555
$( TAR) -xf $( DL_DIR) /$( LIVE555_FILE) --strip= 1 -C $( PKG_BUILD_DIR) /live555
$( CP) files/config.openwrt $( PKG_BUILD_DIR) /live555
( cd $( PKG_BUILD_DIR) /live555; ./genMakefiles openwrt )
$( MAKE) $( MAKE_FLAGS) -C $( PKG_BUILD_DIR) /live555
$( MAKE) -C $( PKG_BUILD_DIR) /live555 PREFIX = " $( STAGING_DIR) /usr/ " install
+$( MAKE_VARS) $( MAKE) $( MAKE_FLAGS) -C $( PKG_BUILD_DIR) /live555
$( MAKE_VARS) $( MAKE) $( MAKE_FLAGS ) -C $( PKG_BUILD_DIR) /live555 PREFIX = " $( STAGING_DIR) /usr/ " install
# build v4l2wrapper
$( MAKE) $( MAKE_FLAGS) -C $( PKG_BUILD_DIR) /v4l2wrapper CFLAGS = " $( TARGET_CFLAGS) -I $( PKG_BUILD_DIR) /v4l2wrapper/inc "
+$( MAKE_VARS) $( MAKE) $( MAKE_FLAGS) -C $( PKG_BUILD_DIR) /v4l2wrapper
$( CP) $( PKG_BUILD_DIR) /v4l2wrapper/libv4l2wrapper.a $( PKG_BUILD_DIR)
# 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
@ -89,6 +98,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
e n d e f
e n d e f
$( eval $ ( call BuildPackage ,v 4l 2rtspserver ) )