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.

58 lines
1.4 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.2.1
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
  12. PKG_LICENSE:=GPLv2
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_SOURCE:=$(PKG_NAME)-release-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=https://codeload.github.com/Motion-Project/motion/tar.gz/release-$(PKG_VERSION)?
  16. PKG_HASH:=d97ec6ae766adfd478b6f7f9cc0da5f2fe21faa9366d98664be255714c1cf81d
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-release-$(PKG_VERSION)
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_FIXUP:=autoreconf
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/motion
  22. SECTION:=multimedia
  23. CATEGORY:=Multimedia
  24. DEPENDS:=+libjpeg +libpthread +libmicrohttpd-ssl
  25. TITLE:=webcam motion sensing and logging
  26. URL:=https://motion-project.github.io/
  27. endef
  28. define Package/motion/conffiles
  29. /etc/motion.conf
  30. endef
  31. CONFIGURE_ARGS+= \
  32. --without-optimizecpu \
  33. --without-ffmpeg \
  34. --without-jpeg-mmx \
  35. --without-sdl \
  36. --without-mysql \
  37. --without-pgsql \
  38. --without-sqlite3 \
  39. --without-bktr
  40. define Package/motion/install
  41. $(INSTALL_DIR) $(1)/etc
  42. $(CP) $(PKG_BUILD_DIR)/motion-dist.conf $(1)/etc/motion.conf
  43. $(INSTALL_DIR) $(1)/usr/bin
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/motion $(1)/usr/bin/
  45. endef
  46. $(eval $(call BuildPackage,motion))