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.

53 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2008-2011 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:=20110826-051001
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=http://www.lavrsen.dk/sources/motion-daily \
  14. @SF/motion
  15. PKG_MD5SUM:=e703fce57ae2215cb05f25e3027f5818
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/motion
  19. SECTION:=multimedia
  20. CATEGORY:=Multimedia
  21. DEPENDS:=+libjpeg +libpthread
  22. TITLE:=webcam motion sensing and logging
  23. URL:=http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
  24. endef
  25. define Package/motion/conffiles
  26. /etc/motion.conf
  27. endef
  28. CONFIGURE_ARGS+= \
  29. --without-optimizecpu \
  30. --without-ffmpeg \
  31. --without-jpeg-mmx \
  32. --without-sdl \
  33. --without-mysql \
  34. --without-pgsql \
  35. --without-sqlite3 \
  36. define Package/motion/install
  37. $(INSTALL_DIR) $(1)/etc
  38. $(CP) $(PKG_INSTALL_DIR)/etc/motion-dist.conf $(1)/etc/motion.conf
  39. $(INSTALL_DIR) $(1)/usr/bin
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/motion $(1)/usr/bin/
  41. endef
  42. $(eval $(call BuildPackage,motion))