77abff36e039ed5d558a40ea0aac07c9cd4527ae
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=motion
11 PKG_VERSION:=3.2.10.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.lavrsen.dk/sources/motion-daily \
16                 @SF/motion
17 PKG_MD5SUM:=5ffdc958313345c69d3e0d5ec5c013cd
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/motion
22   SECTION:=multimedia
23   CATEGORY:=Multimedia
24   DEPENDS:=+libjpeg
25   TITLE:=webcam motion sensing and logging
26   URL:=http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
27 endef
28
29 define Package/motion/conffiles
30 /etc/motion.conf
31 endef
32
33 define Build/Configure
34         $(call Build/Configure/Default, \
35                 --without-ffmpeg \
36                 --without-jpeg-mmx \
37                 --without-mysql \
38                 --without-pgsql \
39         )
40 endef
41
42 define Build/Compile
43         $(MAKE) -C $(PKG_BUILD_DIR) \
44                 DESTDIR="$(PKG_INSTALL_DIR)" \
45                 all install
46 endef
47
48 define Package/motion/install
49         $(INSTALL_DIR) $(1)/etc
50         $(CP) $(PKG_INSTALL_DIR)/etc/motion-dist.conf $(1)/etc/motion.conf
51         $(INSTALL_DIR) $(1)/usr/bin
52         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/motion $(1)/usr/bin/
53
54 endef
55
56 $(eval $(call BuildPackage,motion))