98b4b5a2e912d70fe56a8aaa68ade5d037a94912
[packages.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 include $(INCLUDE_DIR)/package.mk
20
21 define Package/motion
22   SECTION:=multimedia
23   CATEGORY:=Multimedia
24   DEPENDS:=+libjpeg +libpthread
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 CONFIGURE_ARGS+= \
34         --without-ffmpeg \
35         --without-jpeg-mmx \
36         --without-mysql \
37         --without-pgsql \
38
39 define Build/Compile
40         $(MAKE) -C $(PKG_BUILD_DIR) \
41                 DESTDIR="$(PKG_INSTALL_DIR)" \
42                 all install
43 endef
44
45 define Package/motion/install
46         $(INSTALL_DIR) $(1)/etc
47         $(CP) $(PKG_INSTALL_DIR)/etc/motion-dist.conf $(1)/etc/motion.conf
48         $(INSTALL_DIR) $(1)/usr/bin
49         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/motion $(1)/usr/bin/
50
51 endef
52
53 $(eval $(call BuildPackage,motion))