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.

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