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=3.4.0-20141018-$(PKG_SOURCE_VERSION)
  10. PKG_RELEASE:=3
  11. PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
  12. PKG_LICENSE:=GPLv2
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_URL:=https://github.com/Mr-Dave/motion.git
  16. PKG_SOURCE_VERSION:=9479d910f2149b5558788bb86f97f26522794212
  17. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
  19. PKG_MIRROR_HASH:=02602c775ec3829dac59aed16ea6b0d78f77a435b9c360db1a05cb27227da97e
  20. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
  21. PKG_BUILD_PARALLEL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/motion
  24. SECTION:=multimedia
  25. CATEGORY:=Multimedia
  26. DEPENDS:=+libjpeg +libpthread
  27. TITLE:=webcam motion sensing and logging
  28. URL:=http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
  29. endef
  30. define Package/motion/conffiles
  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. define Package/motion/install
  42. $(INSTALL_DIR) $(1)/etc
  43. $(CP) $(PKG_BUILD_DIR)/motion-dist.conf $(1)/etc/motion.conf
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/motion $(1)/usr/bin/
  46. endef
  47. $(eval $(call BuildPackage,motion))