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_SOURCE
:=$(PKG_NAME
)-release-
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/Motion-Project
/motion
/tar.gz
/release-
$(PKG_VERSION
)?
16 PKG_HASH
:=42320a1c7b54a3f0b5a49cecf34a5d752760b28383bc573b3ca1240581786fe5
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-release-
$(PKG_VERSION
)
19 PKG_MAINTAINER
:=Roger D
<rogerdammit@gmail.com
>
20 PKG_LICENSE
:=GPL-2.0
-or-later
21 PKG_LICENSE_FILES
:=COPYING
22 PKG_CPE_ID
:=cpe
:/a
:motion_project
:motion
27 PKG_BUILD_DEPENDS
:=gettext-full
/host
29 include $(INCLUDE_DIR
)/package.mk
30 include $(INCLUDE_DIR
)/nls.mk
32 define Package
/motion
/Default
35 DEPENDS
:=+libjpeg
+libpthread
+libmicrohttpd
$(INTL_DEPENDS
)
36 TITLE
:=webcam motion sensing and logging
38 URL
:=https
://motion-project.github.io
/
41 define Package
/motion
/Default
/description
42 Motion is a program that monitor video signals from many types of cameras and
43 depending upon how they are configured
, perform actions when movement is
47 define Package
/motion-noffmpeg
48 $(call Package
/motion
/Default
)
49 TITLE
+= (w
/o FFMPEG support
)
54 define Package
/motion-noffmpeg
/description
55 $(call Package
/motion
/Default
/description
)
56 This package is built without FFMPEG support.
59 define Package
/motion-ffmpeg
60 $(call Package
/motion
/Default
)
61 TITLE
+= (with FFMPEG support
)
63 DEPENDS
+=+libffmpeg-full
66 define Package
/motion-ffmpeg
/description
67 $(call Package
/motion
/Default
/description
)
68 This package is built with FFMPEG support.
71 define Package
/motion
/conffiles
76 Package
/motion-noffmpeg
/conffiles
= $(Package
/motion
/conffiles
)
77 Package
/motion-ffmpeg
/conffiles
= $(Package
/motion
/conffiles
)
89 ifeq ($(BUILD_VARIANT
),noffmpeg
)
90 CONFIGURE_ARGS
+= --without-ffmpeg
92 ifeq ($(BUILD_VARIANT
),ffmpeg
)
93 CONFIGURE_ARGS
+= --with-ffmpeg
96 define Package
/motion
/install
97 $(INSTALL_DIR
) $(1)/etc
/config
$(1)/etc
/init.d
98 $(INSTALL_CONF
) .
/files
/motion.conf
$(1)/etc
/config
/motion
99 $(INSTALL_BIN
) .
/files
/motion.init
$(1)/etc
/init.d
/motion
100 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/etc
/motion
/motion-dist.conf
$(1)/etc
/motion.conf
101 $(INSTALL_DIR
) $(1)/usr
/bin
102 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/motion
$(1)/usr
/bin
/
104 Package
/motion-noffmpeg
/install = $(Package
/motion
/install)
105 Package
/motion-ffmpeg
/install = $(Package
/motion
/install)
107 $(eval
$(call BuildPackage
,motion-noffmpeg
))
108 $(eval
$(call BuildPackage
,motion-ffmpeg
))