2016-09-27 23:37:47 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# motion
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-10-24 09:10:47 +02:00
|
|
|
MOTION_VERSION = 4.4.0
|
package: remove non-conventional prefix/suffix from github-fetched packages
On Github, a large number of projects name their tag
<some-prefix>-0.3-<some-suffix> (i.e release-3.0, poco-0.1-release,
etc.). In fact majority of the cased adressed in this commit concerns
prefixes.
In most packages, we encode those prefix/suffix in the <pkg>_VERSION
variable.
The problem with this approach is that when used in conjunction with
release-monitoring.org, it doesn't work very well, because
release-monitoring.org has the concept of "version prefix/suffix" and
using that they drop the prefix/suffix to really get the version. For
example on https://release-monitoring.org/project/5418/ the latest
release of "poco" is "1.8.1", not "poco-1.8.1-release".
Therefore, a number of packages in Buildroot have a version that
doesn't match with release-monitoring.org.
Since really the version number of 1.8.1, is makes sense to update our
packages to drop these prefixes/suffixes.
This commit addreses the case of github-fetched packages with
non-conventional prefixes/suffixes.
Note that these changes modify the name of the files stored in DL_DIR,
which means that this will force a re-download of those package source
code for all users, and requires a change to their .hash file.
Signed-off-by: Victor Huesca <victor.huesca@bootlin.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-06-12 08:42:08 +02:00
|
|
|
MOTION_SITE = $(call github,Motion-Project,motion,release-$(MOTION_VERSION))
|
2017-03-30 15:43:32 +02:00
|
|
|
MOTION_LICENSE = GPL-2.0
|
2021-10-24 09:10:47 +02:00
|
|
|
MOTION_LICENSE_FILES = LICENSE
|
2021-12-04 10:19:27 +01:00
|
|
|
MOTION_CPE_ID_VENDOR = motion_project
|
2018-10-29 15:08:46 +01:00
|
|
|
MOTION_DEPENDENCIES = host-pkgconf jpeg libmicrohttpd $(TARGET_NLS_DEPENDENCIES)
|
2017-11-19 15:26:41 +01:00
|
|
|
# From git
|
2016-09-27 23:37:47 +02:00
|
|
|
MOTION_AUTORECONF = YES
|
2020-10-04 23:08:07 +02:00
|
|
|
MOTION_GETTEXTIZE = YES
|
2016-09-27 23:37:47 +02:00
|
|
|
|
2017-11-19 15:26:41 +01:00
|
|
|
MOTION_CONF_OPTS += --without-optimizecpu
|
2016-09-27 23:37:47 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG_SWSCALE),y)
|
|
|
|
MOTION_DEPENDENCIES += ffmpeg
|
|
|
|
MOTION_CONF_OPTS += --with-ffmpeg
|
|
|
|
else
|
|
|
|
MOTION_CONF_OPTS += --without-ffmpeg
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MYSQL),y)
|
|
|
|
MOTION_DEPENDENCIES += mysql
|
2020-10-04 23:08:07 +02:00
|
|
|
MOTION_CONF_OPTS += --with-mysql
|
2016-09-27 23:37:47 +02:00
|
|
|
else
|
|
|
|
MOTION_CONF_OPTS += --without-mysql
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
|
|
|
|
MOTION_DEPENDENCIES += postgresql
|
2020-10-04 23:08:07 +02:00
|
|
|
MOTION_CONF_OPTS += --with-pgsql
|
2016-09-27 23:37:47 +02:00
|
|
|
else
|
2016-10-17 22:01:28 +02:00
|
|
|
MOTION_CONF_OPTS += --without-pgsql
|
2016-09-27 23:37:47 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SQLITE),y)
|
|
|
|
MOTION_DEPENDENCIES += sqlite
|
|
|
|
MOTION_CONF_OPTS += --with-sqlite3
|
|
|
|
else
|
|
|
|
MOTION_CONF_OPTS += --without-sqlite3
|
|
|
|
endif
|
|
|
|
|
2017-12-02 13:08:49 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_WEBP_MUX),y)
|
|
|
|
MOTION_DEPENDENCIES += webp
|
|
|
|
MOTION_CONF_OPTS += --with-webp
|
|
|
|
else
|
|
|
|
MOTION_CONF_OPTS += --without-webp
|
|
|
|
endif
|
|
|
|
|
2016-09-27 23:37:47 +02:00
|
|
|
# Do not use default install target as it installs many unneeded files and
|
|
|
|
# directories: docs, examples and init scripts
|
|
|
|
define MOTION_INSTALL_TARGET_CMDS
|
2020-10-04 23:08:07 +02:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/data/motion-dist.conf \
|
2018-03-08 15:15:36 +01:00
|
|
|
$(TARGET_DIR)/etc/motion/motion.conf
|
2020-10-04 23:08:07 +02:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/src/motion $(TARGET_DIR)/usr/bin/motion
|
2016-09-27 23:37:47 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define MOTION_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 0755 package/motion/S99motion \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S99motion
|
|
|
|
endef
|
|
|
|
|
|
|
|
define MOTION_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/motion/motion.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/motion.service
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|