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.

57 lines
1.3 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.1.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:=2074b935bdfe28f84c2c3233274b06908336778f303bb13530d4299c3f8aa4e2
  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
  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. define Package/motion/install
  40. $(INSTALL_DIR) $(1)/etc
  41. $(CP) $(PKG_BUILD_DIR)/motion-dist.conf $(1)/etc/motion.conf
  42. $(INSTALL_DIR) $(1)/usr/bin
  43. $(INSTALL_BIN) $(PKG_BUILD_DIR)/motion $(1)/usr/bin/
  44. endef
  45. $(eval $(call BuildPackage,motion))