Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "X screen saver and locker" |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 2 | HOMEPAGE = "https://www.jwz.org/xscreensaver/" |
Brad Bishop | 6a62e0e | 2019-10-21 08:11:42 -0400 | [diff] [blame] | 3 | LICENSE = "BSD-0-Clause" |
Andrew Geissler | c87764f | 2020-06-27 00:16:32 -0500 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://driver/xscreensaver.h;endline=10;md5=2b97002f72fbfc9329b4336e798f2463" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 5 | |
| 6 | SRC_URI = "https://www.jwz.org/${BPN}/${BP}.tar.gz" |
Andrew Geissler | c87764f | 2020-06-27 00:16:32 -0500 | [diff] [blame] | 7 | SRC_URI[md5sum] = "9f764e561f9939f8684a66ec98b27cba" |
| 8 | SRC_URI[sha256sum] = "73d8089cfc7d7363b5dac99b5b01dffb3429d0a855e6af16ce9a4b7777017b95" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 9 | |
| 10 | SRC_URI += " \ |
| 11 | file://xscreensaver.service \ |
| 12 | file://fix-buildscripts.patch \ |
| 13 | file://tweak-app-defaults.patch \ |
| 14 | " |
| 15 | |
| 16 | DEPENDS = "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 Geissler | c87764f | 2020-06-27 00:16:32 -0500 | [diff] [blame] | 18 | RDEPENDS_${PN} = " \ |
| 19 | liberation-fonts \ |
| 20 | xuser-account \ |
| 21 | " |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 22 | |
Brad Bishop | 8410d61 | 2019-11-25 09:40:59 -0500 | [diff] [blame] | 23 | inherit systemd perlnative pkgconfig gettext autotools-brokensep features_check |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 24 | |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame] | 25 | EXTRA_OECONF += "--with-x-app-defaults=${datadir}/X11/app-defaults" |
| 26 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 27 | REQUIRED_DISTRO_FEATURES = "x11" |
| 28 | |
| 29 | do_install_append() { |
| 30 | install -D ${WORKDIR}/xscreensaver.service ${D}${systemd_unitdir}/system/xscreensaver.service |
| 31 | } |
| 32 | |
| 33 | FILES_${PN} += "${datadir}/X11/app-defaults/XScreenSaver" |
| 34 | SYSTEMD_SERVICE_${PN} = "xscreensaver.service" |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame] | 35 | |
| 36 | CLEANBROKEN = "1" |