You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2008-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=motion
  9. PKG_VERSION:=4.3.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-release-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/Motion-Project/motion/tar.gz/release-$(PKG_VERSION)?
  13. PKG_HASH:=dafa4264b2d8e4778f8be5871f09b6c0ec710d5a836182c583469c18db944d70
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-release-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
  16. PKG_LICENSE:=GPL-2.0-or-later
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_CPE_ID:=cpe:/a:lavrsen:motion
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. PKG_BUILD_PARALLEL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. include $(INCLUDE_DIR)/nls.mk
  24. define Package/motion
  25. SECTION:=multimedia
  26. CATEGORY:=Multimedia
  27. DEPENDS:=+libjpeg +libpthread +libmicrohttpd $(INTL_DEPENDS)
  28. TITLE:=webcam motion sensing and logging
  29. URL:=https://motion-project.github.io/
  30. endef
  31. define Package/motion/conffiles
  32. /etc/config/motion
  33. /etc/motion.conf
  34. endef
  35. CONFIGURE_ARGS += \
  36. --without-bktr \
  37. --without-webp \
  38. --without-mmal \
  39. --without-ffmpeg \
  40. --without-mariadb \
  41. --without-mysql \
  42. --without-pgsql \
  43. --without-sqlite3 \
  44. --without-optimizecpu
  45. define Package/motion/install
  46. $(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d
  47. $(INSTALL_CONF) ./files/motion.conf $(1)/etc/config/motion
  48. $(INSTALL_BIN) ./files/motion.init $(1)/etc/init.d/motion
  49. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/motion/motion-dist.conf $(1)/etc/motion.conf
  50. $(INSTALL_DIR) $(1)/usr/bin
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/motion $(1)/usr/bin/
  52. endef
  53. $(eval $(call BuildPackage,motion))