80301c7705405167e8d36316667d564f9cee6795
[feed/packages.git] / multimedia / motion / Makefile
1 #
2 # Copyright (C) 2008-2016 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:=4.2.1
12 PKG_RELEASE:=1
13
14 PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
15 PKG_LICENSE:=GPLv2
16 PKG_LICENSE_FILES:=COPYING
17
18 PKG_SOURCE:=$(PKG_NAME)-release-$(PKG_VERSION).tar.gz
19 PKG_SOURCE_URL:=https://codeload.github.com/Motion-Project/motion/tar.gz/release-$(PKG_VERSION)?
20 PKG_HASH:=d97ec6ae766adfd478b6f7f9cc0da5f2fe21faa9366d98664be255714c1cf81d
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-release-$(PKG_VERSION)
22
23 PKG_BUILD_PARALLEL:=1
24 PKG_FIXUP:=autoreconf
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/motion
29 SECTION:=multimedia
30 CATEGORY:=Multimedia
31 DEPENDS:=+libjpeg +libpthread +libmicrohttpd
32 TITLE:=webcam motion sensing and logging
33 URL:=https://motion-project.github.io/
34 endef
35
36 define Package/motion/conffiles
37 /etc/motion.conf
38 endef
39
40 CONFIGURE_ARGS+= \
41 --without-optimizecpu \
42 --without-ffmpeg \
43 --without-jpeg-mmx \
44 --without-sdl \
45 --without-mysql \
46 --without-pgsql \
47 --without-sqlite3 \
48 --without-bktr
49
50 define Package/motion/install
51 $(INSTALL_DIR) $(1)/etc
52 $(CP) $(PKG_BUILD_DIR)/motion-dist.conf $(1)/etc/motion.conf
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/motion $(1)/usr/bin/
55
56 endef
57
58 $(eval $(call BuildPackage,motion))