2006-08-05 16:13:13 +00:00
|
|
|
#
|
2009-10-06 03:02:53 +00:00
|
|
|
# Copyright (C) 2008-2009 OpenWrt.org
|
2006-08-05 16:13:13 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=motion
|
2009-10-06 03:02:53 +00:00
|
|
|
PKG_VERSION:=3.2.11.1
|
2006-08-05 16:13:13 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2007-07-16 20:39:13 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.lavrsen.dk/sources/motion-daily \
|
|
|
|
@SF/motion
|
2009-10-06 03:02:53 +00:00
|
|
|
PKG_MD5SUM:=4e729f129d8f9b9abaed5121c3cd0037
|
2006-08-05 16:13:13 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/motion
|
|
|
|
SECTION:=multimedia
|
|
|
|
CATEGORY:=Multimedia
|
2009-10-06 03:02:53 +00:00
|
|
|
DEPENDS:=+libjpeg +libpthread
|
2006-08-05 16:13:13 +00:00
|
|
|
TITLE:=webcam motion sensing and logging
|
|
|
|
URL:=http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
|
|
|
|
endef
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
define Package/motion/conffiles
|
|
|
|
/etc/motion.conf
|
|
|
|
endef
|
|
|
|
|
2009-10-06 03:02:53 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--without-ffmpeg \
|
|
|
|
--without-jpeg-mmx \
|
|
|
|
--without-mysql \
|
|
|
|
--without-pgsql \
|
2006-08-05 16:13:13 +00:00
|
|
|
|
2008-01-09 20:02:34 +00:00
|
|
|
define Build/Compile
|
2006-08-05 16:13:13 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
2008-01-09 20:02:34 +00:00
|
|
|
define Package/motion/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
2006-10-30 13:51:50 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/motion-dist.conf $(1)/etc/motion.conf
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/motion $(1)/usr/bin/
|
2006-10-30 13:51:50 +00:00
|
|
|
|
2006-08-05 16:13:13 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,motion))
|