treewide: add PKG_CPE_ID for better cvescanner coverage
[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:=2
13
14 PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
15 PKG_LICENSE:=GPLv2
16 PKG_LICENSE_FILES:=COPYING
17 PKG_CPE_ID:=cpe:/a:lavrsen:motion
18
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)
23
24 PKG_BUILD_PARALLEL:=1
25 PKG_FIXUP:=autoreconf
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/motion
30 SECTION:=multimedia
31 CATEGORY:=Multimedia
32 DEPENDS:=+libjpeg +libpthread +libmicrohttpd-ssl
33 TITLE:=webcam motion sensing and logging
34 URL:=https://motion-project.github.io/
35 endef
36
37 define Package/motion/conffiles
38 /etc/motion.conf
39 endef
40
41 CONFIGURE_ARGS+= \
42 --without-optimizecpu \
43 --without-ffmpeg \
44 --without-jpeg-mmx \
45 --without-sdl \
46 --without-mysql \
47 --without-pgsql \
48 --without-sqlite3 \
49 --without-bktr
50
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/
56
57 endef
58
59 $(eval $(call BuildPackage,motion))