blob: 9131c754d5cefda7a38a1747b58a6bf4f352a37c [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "X screen saver and locker"
Andrew Geisslerd688a012020-09-18 13:36:00 -05002HOMEPAGE = "https://www.jwz.org/xscreensaver/"
Brad Bishop6a62e0e2019-10-21 08:11:42 -04003LICENSE = "BSD-0-Clause"
Andrew Geisslerc87764f2020-06-27 00:16:32 -05004LIC_FILES_CHKSUM = "file://driver/xscreensaver.h;endline=10;md5=2b97002f72fbfc9329b4336e798f2463"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08005
6SRC_URI = "https://www.jwz.org/${BPN}/${BP}.tar.gz"
Andrew Geisslerc87764f2020-06-27 00:16:32 -05007SRC_URI[md5sum] = "9f764e561f9939f8684a66ec98b27cba"
8SRC_URI[sha256sum] = "73d8089cfc7d7363b5dac99b5b01dffb3429d0a855e6af16ce9a4b7777017b95"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08009
10SRC_URI += " \
11 file://xscreensaver.service \
12 file://fix-buildscripts.patch \
13 file://tweak-app-defaults.patch \
14"
15
16DEPENDS = "intltool-native libx11 libxext libxt libxft glib-2.0-native bc-native"
17# These are only needed as part of the stopgap screensaver implementation:
Andrew Geisslerc87764f2020-06-27 00:16:32 -050018RDEPENDS_${PN} = " \
19 liberation-fonts \
20 xuser-account \
21"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080022
Brad Bishop8410d612019-11-25 09:40:59 -050023inherit systemd perlnative pkgconfig gettext autotools-brokensep features_check
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080024
Andrew Geissler1548c072019-02-22 16:03:50 -060025EXTRA_OECONF += "--with-x-app-defaults=${datadir}/X11/app-defaults"
26
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080027REQUIRED_DISTRO_FEATURES = "x11"
28
29do_install_append() {
30 install -D ${WORKDIR}/xscreensaver.service ${D}${systemd_unitdir}/system/xscreensaver.service
31}
32
33FILES_${PN} += "${datadir}/X11/app-defaults/XScreenSaver"
34SYSTEMD_SERVICE_${PN} = "xscreensaver.service"
Andrew Geissler1548c072019-02-22 16:03:50 -060035
36CLEANBROKEN = "1"