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.

59 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.2
  10. PKG_RELEASE:=1
  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-ssl
  26. TITLE:=webcam motion sensing and logging
  27. URL:=https://motion-project.github.io/
  28. endef
  29. define Package/motion/conffiles
  30. /etc/motion.conf
  31. endef
  32. CONFIGURE_ARGS+= \
  33. --without-optimizecpu \
  34. --without-ffmpeg \
  35. --without-jpeg-mmx \
  36. --without-sdl \
  37. --without-mysql \
  38. --without-pgsql \
  39. --without-sqlite3 \
  40. --without-bktr \
  41. --without-webp
  42. define Package/motion/install
  43. $(INSTALL_DIR) $(1)/etc
  44. $(CP) $(PKG_BUILD_DIR)/motion-dist.conf $(1)/etc/motion.conf
  45. $(INSTALL_DIR) $(1)/usr/bin
  46. $(INSTALL_BIN) $(PKG_BUILD_DIR)/motion $(1)/usr/bin/
  47. endef
  48. $(eval $(call BuildPackage,motion))