1 # This software is in the public domain, furnished "as is", without technical
2 # support, and with no warranty, express or implied, as to its usefulness for
5 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE_URL
:=https
://github.com
/mpromonet
/v4l2camera
13 PKG_SOURCE_VERSION
:=v
$(PKG_VERSION
)
14 PKG_MIRROR_HASH
:=3e10898db18d8b36ab41ebc9fa5cb37928e5bb4043a5a8bb1257724ee71f41ff
16 UI_FILE
:=v4l2camera-ui-
$(PKG_VERSION
).tgz
17 UI_HASH
:=9a03905fde298abe028e01ba575006a5bff5182ed3d45da01eace045cfef2f82
19 LIVE555_VERSION
:=2023.01.19
20 LIVE555_HASH
:=a7c64913f7f7007c5fdc29ea811e3ca781f262271b3e42afdd4bc1041d86fa99
21 LIVE555_FILE
:=live.
$(LIVE555_VERSION
).
tar.gz
23 PKG_MAINTAINER
:=Michel Promonet
<michel.promonet@free.fr
>
24 PKG_LICENSE
:=Unlicense
25 PKG_LICENSE_FILES
:=LICENCE
27 PKG_BUILD_FLAGS
:=gc-sections lto
29 include $(INCLUDE_DIR
)/package.mk
30 include $(INCLUDE_DIR
)/cmake.mk
34 define Package
/v4l2camera
39 URL
:=https
://github.com
/mpromonet
/v4l2camera
42 define Package
/v4l2camera
/conffiles
43 /etc
/config
/v4l2camera
51 define Download
/live555
52 URL
:=https
://download.videolan.org
/pub
/contrib
/live555
/
58 URL
:=https
://registry.npmjs.org
/v4l2camera-ui
/-/
65 $(eval
$(call Download
,live555
))
66 mkdir
-p
$(PKG_BUILD_DIR
)/live
67 $(TAR
) -xf
$(DL_DIR
)/$(LIVE555_FILE
) --strip=1 -C
$(PKG_BUILD_DIR
)/live
70 $(eval
$(call Download
,ui
))
71 mkdir
-p
$(PKG_BUILD_DIR
)/vuejs
72 $(TAR
) -xf
$(DL_DIR
)/$(UI_FILE
) --strip=1 -C
$(PKG_BUILD_DIR
)/vuejs
74 $(Build
/Prepare
/Default
)
77 define Package
/v4l2camera
/install
78 $(INSTALL_DIR
) $(1)/usr
/bin
79 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/v4l2camera
$(1)/usr
/bin
/
81 $(INSTALL_DIR
) $(1)/usr
/share
/v4l2camera
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/v4l2camera
$(1)/usr
/share
/
84 $(INSTALL_DIR
) $(1)/etc
/init.d
85 $(INSTALL_BIN
) files
/v4l2camera.init
$(1)/etc
/init.d
/v4l2camera
86 $(INSTALL_DIR
) $(1)/etc
/config
87 $(INSTALL_CONF
) files
/v4l2camera.config
$(1)/etc
/config
/v4l2camera
90 $(eval
$(call BuildPackage
,v4l2camera
))