blob: 9c78da0d23e02eeb27767af14444599dd36bf15d [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001Description = "Gerbera - An UPnP media server"
2
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://LICENSE.md;md5=25cdec9afe3f1f26212ead6bd2f7fac8"
5
6SRC_URI = "git://github.com/v00d00/gerbera.git;protocol=https \
7 file://gerbera.service \
8"
9
Brad Bishop19323692019-04-05 15:28:33 -040010PV = "1.3.0+git${SRCPV}"
11# v1.3.0
12SRCREV = "c7a81fb41e446ee67b3eac90e2caecd6de651a16"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050013
14S = "${WORKDIR}/git"
15
Brad Bishop19323692019-04-05 15:28:33 -040016DEPENDS = "expat zlib curl libupnp e2fsprogs sqlite3 libnsl2"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050017
18SYSTEMD_SERVICE_${PN} = "gerbera.service"
19
20inherit cmake systemd
21
Brad Bishop19323692019-04-05 15:28:33 -040022PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
23PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=TRUE,-DWITH_SYSTEMD=FALSE,systemd"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050024PACKAGECONFIG[taglib] = "-DWITH_TAGLIB=TRUE,-DWITH_TAGLIB=FALSE,taglib"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050025EXTRA_OECMAKE = "-DWITH_JS=FALSE -DWITH_MAGIC=FALSE -DWITH_EXIF=FALSE -DLIBUUID_INCLUDE_DIRS=${STAGING_INCDIR} -DLIBUUID_LIBRARIES=-luuid"
26
27do_install_append() {
28 install -d ${D}/root/.config/
29 install -d ${D}${systemd_system_unitdir}
30 install -m 0644 ${WORKDIR}/gerbera.service ${D}${systemd_system_unitdir}/
31}
32
33FILES_${PN} += "/root/.config/"