motion: revert (#1868)
[openwrt/svn-archive/archive.git] / multimedia / motion / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=motion
12 PKG_VERSION:=20070331-051001
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.lavrsen.dk/sources/motion-daily \
17 @SF/motion
18 PKG_MD5SUM:=16e58186022dfee1c0dcaf03cf5393e5
19 PKG_CAT:=zcat
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/motion
27 SECTION:=multimedia
28 CATEGORY:=Multimedia
29 DEPENDS:=+libjpeg
30 TITLE:=webcam motion sensing and logging
31 URL:=http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
32 endef
33
34 define Package/motion/conffiles
35 /etc/motion.conf
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 --without-ffmpeg \
41 --without-jpeg-mmx \
42 --without-mysql \
43 --without-pgsql \
44 )
45 endef
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 all install
51 endef
52
53 define Package/motion/install
54 $(INSTALL_DIR) $(1)/etc
55 $(CP) $(PKG_INSTALL_DIR)/etc/motion-dist.conf $(1)/etc/motion.conf
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(CP) $(PKG_INSTALL_DIR)/usr/bin/motion $(1)/usr/bin/
58
59 endef
60
61 $(eval $(call BuildPackage,motion))