2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
12 PKG_VERSION:=20070331-051001
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.lavrsen.dk/sources/motion-daily \
18 PKG_MD5SUM:=16e58186022dfee1c0dcaf03cf5393e5
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
29 TITLE:=webcam motion sensing and logging
30 URL:=http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
33 define Package/motion/conffiles
37 define Build/Configure
38 $(call Build/Configure/Default, \
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
52 define Package/motion/install
53 $(INSTALL_DIR) $(1)/etc
54 $(CP) $(PKG_INSTALL_DIR)/etc/motion-dist.conf $(1)/etc/motion.conf
55 $(INSTALL_DIR) $(1)/usr/bin
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/motion $(1)/usr/bin/
60 $(eval $(call BuildPackage,motion))