Upgrade motion to 3.2.10.1 (#3678)
[packages.git] / multimedia / motion / Makefile
1 #
2 # Copyright (C) 2008 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:=3.2.10.1
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:=5ffdc958313345c69d3e0d5ec5c013cd
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/motion
23   SECTION:=multimedia
24   CATEGORY:=Multimedia
25   DEPENDS:=+libjpeg
26   TITLE:=webcam motion sensing and logging
27   URL:=http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
28 endef
29
30 define Package/motion/conffiles
31 /etc/motion.conf
32 endef
33
34 define Build/Configure
35         $(call Build/Configure/Default, \
36                 --without-ffmpeg \
37                 --without-jpeg-mmx \
38                 --without-mysql \
39                 --without-pgsql \
40         )
41 endef
42
43 define Build/Compile
44         $(MAKE) -C $(PKG_BUILD_DIR) \
45                 DESTDIR="$(PKG_INSTALL_DIR)" \
46                 all install
47 endef
48
49 define Package/motion/install
50         $(INSTALL_DIR) $(1)/etc
51         $(CP) $(PKG_INSTALL_DIR)/etc/motion-dist.conf $(1)/etc/motion.conf
52         $(INSTALL_DIR) $(1)/usr/bin
53         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/motion $(1)/usr/bin/
54
55 endef
56
57 $(eval $(call BuildPackage,motion))