pwrtray: Compilefix on avr32
[openwrt/svn-archive/archive.git] / multimedia / motion / Makefile
1 #
2 # Copyright (C) 2008-2009 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.11.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:=4e729f129d8f9b9abaed5121c3cd0037
18
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/motion
24 SECTION:=multimedia
25 CATEGORY:=Multimedia
26 DEPENDS:=+libjpeg +libpthread
27 TITLE:=webcam motion sensing and logging
28 URL:=http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
29 endef
30
31 define Package/motion/conffiles
32 /etc/motion.conf
33 endef
34
35 CONFIGURE_ARGS+= \
36 --without-ffmpeg \
37 --without-jpeg-mmx \
38 --without-mysql \
39 --without-pgsql \
40
41 define Package/motion/install
42 $(INSTALL_DIR) $(1)/etc
43 $(CP) $(PKG_INSTALL_DIR)/etc/motion-dist.conf $(1)/etc/motion.conf
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/motion $(1)/usr/bin/
46
47 endef
48
49 $(eval $(call BuildPackage,motion))