2 # Copyright (C) 2008-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_MAINTAINER
:=Roger D
<rogerdammit@gmail.com
>
16 PKG_LICENSE_FILES
:=COPYING
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
)
26 include $(INCLUDE_DIR
)/package.mk
31 DEPENDS
:=+libjpeg
+libpthread
+libmicrohttpd
32 TITLE
:=webcam motion sensing and logging
33 URL
:=https
://motion-project.github.io
/
36 define Package
/motion
/conffiles
41 --without-optimizecpu \
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
/
58 $(eval
$(call BuildPackage
,motion
))