Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | Description = "Gerbera - An UPnP media server" |
| 2 | |
| 3 | LICENSE = "GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=25cdec9afe3f1f26212ead6bd2f7fac8" |
| 5 | |
| 6 | SRC_URI = "git://github.com/v00d00/gerbera.git;protocol=https \ |
| 7 | file://gerbera.service \ |
| 8 | " |
| 9 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 10 | PV = "1.3.0+git${SRCPV}" |
| 11 | # v1.3.0 |
| 12 | SRCREV = "c7a81fb41e446ee67b3eac90e2caecd6de651a16" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 13 | |
| 14 | S = "${WORKDIR}/git" |
| 15 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 16 | DEPENDS = "expat zlib curl libupnp e2fsprogs sqlite3 libnsl2" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 17 | |
| 18 | SYSTEMD_SERVICE_${PN} = "gerbera.service" |
| 19 | |
| 20 | inherit cmake systemd |
| 21 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 22 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
| 23 | PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=TRUE,-DWITH_SYSTEMD=FALSE,systemd" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 24 | PACKAGECONFIG[taglib] = "-DWITH_TAGLIB=TRUE,-DWITH_TAGLIB=FALSE,taglib" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 25 | EXTRA_OECMAKE = "-DWITH_JS=FALSE -DWITH_MAGIC=FALSE -DWITH_EXIF=FALSE -DLIBUUID_INCLUDE_DIRS=${STAGING_INCDIR} -DLIBUUID_LIBRARIES=-luuid" |
| 26 | |
| 27 | do_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 | |
| 33 | FILES_${PN} += "/root/.config/" |