2018-05-20 10:28:53 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# gerbera
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-11-17 19:07:53 +01:00
|
|
|
GERBERA_VERSION = 1.3.4
|
package: remove 'v' prefix from github-fetched packages
On Github, a large number of projects name their tag vXYZ (i.e v3.0,
v0.1, etc.). In some packages we do:
<pkg>_VERSION = v0.3
<pkg>_SITE = $(call github foo,bar,$(<pkg>_VERSION))
And in some other packages we do:
<pkg>_VERSION = 0.3
<pkg>_SITE = $(call github foo,bar,v$(<pkg>_VERSION))
I.e in one case we consider the version to be v0.3, in the other case
we consider 0.3 to be the version.
The problem with v0.3 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" and using
that they drop the "v" prefix for the version.
Therefore, a number of packages in Buildroot have a version that
doesn't match with release-monitoring.org because Buildroot has 'v0.3'
and release-monitoring.org has '0.3'.
Since really the version number of 0.3, is makes sense to update our
packages to drop this 'v'.
This commit only addresses the (common) case of github packages where
the prefix is simply 'v'. Other cases will be handled by separate
commits. Also, there are a few cases that couldn't be handled
mechanically that aren't covered by this commit.
Signed-off-by: Victor Huesca <victor.huesca@bootlin.com>
[Arnout: don't change flatbuffers, json-for-modern-cpp, libpagekite,
python-scapy3k, softether]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-06-12 08:42:06 +02:00
|
|
|
GERBERA_SITE = $(call github,gerbera,gerbera,v$(GERBERA_VERSION))
|
2018-05-20 10:28:53 +02:00
|
|
|
GERBERA_LICENSE = GPL-2.0
|
|
|
|
GERBERA_LICENSE_FILES = LICENSE.md
|
|
|
|
GERBERA_DEPENDENCIES = \
|
|
|
|
expat \
|
|
|
|
host-pkgconf \
|
|
|
|
libupnp18 \
|
|
|
|
sqlite \
|
|
|
|
util-linux \
|
|
|
|
zlib
|
|
|
|
GERBERA_CONF_OPTS = \
|
|
|
|
-DWITH_DEBUG=OFF \
|
|
|
|
-DWITH_JS=OFF
|
|
|
|
|
|
|
|
# Uses __atomic_fetch_add_4
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
|
|
GERBERA_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -latomic"
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_EXIV2),y)
|
|
|
|
GERBERA_DEPENDENCIES += exiv2
|
|
|
|
GERBERA_CONF_OPTS += -DWITH_EXIV2=ON
|
|
|
|
else
|
|
|
|
GERBERA_CONF_OPTS += -DWITH_EXIV2=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FFMPEG),y)
|
|
|
|
GERBERA_DEPENDENCIES += ffmpeg
|
|
|
|
GERBERA_CONF_OPTS += -DWITH_AVCODEC=ON
|
|
|
|
else
|
|
|
|
GERBERA_CONF_OPTS += -DWITH_AVCODEC=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FILE),y)
|
|
|
|
GERBERA_DEPENDENCIES += file
|
|
|
|
GERBERA_CONF_OPTS += -DWITH_MAGIC=ON
|
|
|
|
else
|
|
|
|
GERBERA_CONF_OPTS += -DWITH_MAGIC=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
|
|
GERBERA_DEPENDENCIES += libcurl
|
|
|
|
GERBERA_CONF_OPTS += -DWITH_CURL=ON
|
|
|
|
else
|
|
|
|
GERBERA_CONF_OPTS += -DWITH_CURL=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEXIF),y)
|
|
|
|
GERBERA_DEPENDENCIES += libexif
|
|
|
|
GERBERA_CONF_OPTS += -DWITH_EXIF=ON
|
|
|
|
else
|
|
|
|
GERBERA_CONF_OPTS += -DWITH_EXIF=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
|
|
GERBERA_DEPENDENCIES += libiconv
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MYSQL),y)
|
|
|
|
GERBERA_DEPENDENCIES += mysql
|
|
|
|
GERBERA_CONF_OPTS += -DWITH_MYSQL=ON
|
|
|
|
else
|
|
|
|
GERBERA_CONF_OPTS += -DWITH_MYSQL=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
|
|
GERBERA_DEPENDENCIES += systemd
|
|
|
|
GERBERA_CONF_OPTS += -DWITH_SYSTEMD=ON
|
|
|
|
else
|
|
|
|
GERBERA_CONF_OPTS += -DWITH_SYSTEMD=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TAGLIB),y)
|
|
|
|
GERBERA_DEPENDENCIES += taglib
|
|
|
|
GERBERA_CONF_OPTS += -DWITH_TAGLIB=ON
|
|
|
|
else
|
|
|
|
GERBERA_CONF_OPTS += -DWITH_TAGLIB=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
# gerbera does not provide a default configuration file, it can be
|
|
|
|
# created during run time through --create-config:
|
|
|
|
# http://docs.gerbera.io/en/latest/config-overview.html#generating-configuration
|
|
|
|
# However, to have a correct home directory and UDN, install it ourself
|
|
|
|
define GERBERA_INSTALL_CONFIGURATION
|
|
|
|
$(INSTALL) -D -m 0644 package/gerbera/config.xml \
|
|
|
|
$(TARGET_DIR)/etc/gerbera/config.xml
|
|
|
|
endef
|
|
|
|
|
|
|
|
GERBERA_POST_INSTALL_TARGET_HOOKS += GERBERA_INSTALL_CONFIGURATION
|
|
|
|
|
|
|
|
define GERBERA_USERS
|
|
|
|
gerbera -1 gerbera -1 * /var/lib/gerbera - - Gerbera user
|
|
|
|
endef
|
|
|
|
|
|
|
|
define GERBERA_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 0755 package/gerbera/S99gerbera \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S99gerbera
|
|
|
|
endef
|
|
|
|
|
|
|
|
# gerbera.service is installed by cmake in $(TARGET_DIR)/usr/lib/systemd/system
|
|
|
|
define GERBERA_INSTALL_INIT_SYSTEMD
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
ln -sf ../../../../usr/lib/systemd/system/gerbera.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/gerbera.service
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|