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.3 KiB

  1. #
  2. # Copyright (C) 2008-2015 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:=2
  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_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
  20. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/motion
  23. SECTION:=multimedia
  24. CATEGORY:=Multimedia
  25. DEPENDS:=+libjpeg +libpthread
  26. TITLE:=webcam motion sensing and logging
  27. URL:=http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
  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. 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))