From: Rosen Penev Date: Sat, 20 Mar 2021 23:39:18 +0000 (-0700) Subject: mjpg-streamer: update to 1.0.0 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f457b68177152bfb2174d33602fa0356e20ebada;p=feed%2Fpackages.git mjpg-streamer: update to 1.0.0 Switch to AUTORELEASE for simplicity. Switch to building with Ninja for faster compilation. Modify PKG_UNPACK instead of overriding Build/Prepare. Signed-off-by: Rosen Penev --- diff --git a/multimedia/mjpg-streamer/Makefile b/multimedia/mjpg-streamer/Makefile index 8cffb58b6d..7ad040fdd8 100644 --- a/multimedia/mjpg-streamer/Makefile +++ b/multimedia/mjpg-streamer/Makefile @@ -6,24 +6,23 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mjpg-streamer -PKG_VERSION:=2019-05-24 -PKG_RELEASE:=1 +PKG_VERSION:=1.0.0 +PKG_RELEASE:=$(AUTORELEASE) -PKG_SOURCE_PROTO:=git -PKG_SOURCE_URL:=https://github.com/jacksonliam/mjpg-streamer -PKG_SOURCE_VERSION:=501f6362c5afddcfb41055f97ae484252c85c912 -PKG_MIRROR_HASH:=9e1f098c5092ae6cc70916caf9d45808a312333973524725ae5e729a4af18657 +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://codeload.github.com/jacksonliam/mjpg-streamer/tar.gz/v$(PKG_VERSION)? +PKG_HASH:=31850cd533b0290640cbdf4da44f7a774bfba050647cb0a0c84a435e90b08598 PKG_MAINTAINER:=Roger D , \ Ted Hess PKG_LICENSE:=GPL-2.0-or-later PKG_LICENSE_FILES:=LICENSE -PKG_BUILD_PARALLEL:=1 +PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip=2 -xf $(DL_DIR)/$(PKG_SOURCE) PKG_BUILD_DEPENDS:=MJPG_STREAMER_V4L2:libv4l zmq protobuf-c/host include $(INCLUDE_DIR)/package.mk -include $(INCLUDE_DIR)/cmake.mk +include ../../devel/ninja/ninja-cmake.mk define Package/mjpg-streamer SECTION:=multimedia @@ -192,10 +191,7 @@ endef # redefine prepare to extract to our build dir # apply patches define Build/Prepare - rm -rf $(PKG_BUILD_DIR)/ - mkdir -p $(PKG_BUILD_DIR)/ - $(TAR) -xJf $(DL_DIR)/$(PKG_SOURCE) -C $(PKG_BUILD_DIR) --strip=2 - $(Build/Patch) + $(Build/Prepare/Default) # Fetch latest cambozola that works with latest Java(s) # Yes, I know this is ugly ifneq ($(CONFIG_PACKAGE_mjpg-streamer-www),)