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
17 PKG_CPE_ID
:=cpe
:/a
:lavrsen
:motion
19 PKG_SOURCE
:=$(PKG_NAME
)-release-
$(PKG_VERSION
).
tar.gz
20 PKG_SOURCE_URL
:=https
://codeload.github.com
/Motion-Project
/motion
/tar.gz
/release-
$(PKG_VERSION
)?
21 PKG_HASH
:=d97ec6ae766adfd478b6f7f9cc0da5f2fe21faa9366d98664be255714c1cf81d
22 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-release-
$(PKG_VERSION
)
27 include $(INCLUDE_DIR
)/package.mk
32 DEPENDS
:=+libjpeg
+libpthread
+libmicrohttpd-ssl
33 TITLE
:=webcam motion sensing and logging
34 URL
:=https
://motion-project.github.io
/
37 define Package
/motion
/conffiles
42 --without-optimizecpu \
51 define Package
/motion
/install
52 $(INSTALL_DIR
) $(1)/etc
53 $(CP
) $(PKG_BUILD_DIR
)/motion-dist.conf
$(1)/etc
/motion.conf
54 $(INSTALL_DIR
) $(1)/usr
/bin
55 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/motion
$(1)/usr
/bin
/
59 $(eval
$(call BuildPackage
,motion
))