blob: ea4563a6e452bf43f76758d642feeaf2274bc7fd [file] [log] [blame]
Andrew Geissler69721092021-07-23 12:57:00 -04001SUMMARY = "X screen saver and locker"
2HOMEPAGE = "https://www.jwz.org/xscreensaver/"
3LICENSE = "BSD-0-Clause"
4LIC_FILES_CHKSUM = "file://driver/xscreensaver.h;endline=10;md5=c3ce41cdff745eb1dc9d4fcfbffb4d51"
5
6SRC_URI = "https://www.jwz.org/${BPN}/${BP}.tar.gz"
7SRC_URI[sha256sum] = "085484665d91f60b4a1dedacd94bcf9b74b0fb096bcedc89ff1c245168e5473b"
8
9SRC_URI += " \
10 file://xscreensaver.service \
11 file://0001-build-Do-not-build-po-files.patch \
12 file://tweak-app-defaults.patch \
13"
14
15DEPENDS = "intltool-native libx11 libxext libxt libxft libxi glib-2.0-native bc-native libpam"
16# These are only needed as part of the stopgap screensaver implementation:
Patrick Williams213cb262021-08-07 19:21:33 -050017RDEPENDS:${PN} = " \
Andrew Geissler69721092021-07-23 12:57:00 -040018 liberation-fonts \
19 xuser-account \
20"
21
22inherit systemd perlnative pkgconfig gettext autotools-brokensep features_check
23
24
25EXTRA_OECONF += "--with-app-defaults=${datadir}/X11/app-defaults --libdir=${STAGING_LIBDIR} \
26 --includedir=${STAGING_INCDIR} --with-pam --with-login-manager"
27
28EXTRA_OEMAKE += "install_prefix=${D}"
29REQUIRED_DISTRO_FEATURES = "x11 pam"
30
Patrick Williams213cb262021-08-07 19:21:33 -050031do_install:append() {
Andrew Geissler69721092021-07-23 12:57:00 -040032 install -D ${WORKDIR}/xscreensaver.service ${D}${systemd_unitdir}/system/xscreensaver.service
33 for f in xscreensaver-getimage-file xscreensaver-getimage-video webcollage xscreensaver-text vidwhacker
34 do
35 sed -i -e "s|${STAGING_BINDIR_NATIVE}/perl-native/perl|/usr/bin/perl|g" ${D}/${libexecdir}/${PN}/$f
36 done
37}
38
39PACKAGES =+ "${PN}-perl"
40
Patrick Williams213cb262021-08-07 19:21:33 -050041FILES:${PN}-perl = "\
Andrew Geissler69721092021-07-23 12:57:00 -040042 ${libexecdir}/${PN}/xscreensaver-getimage-file \
43 ${libexecdir}/${PN}/xscreensaver-getimage-video \
44 ${libexecdir}/${PN}/webcollage \
45 ${libexecdir}/${PN}/xscreensaver-text \
46 ${libexecdir}/${PN}/vidwhacker \
47 "
Patrick Williams213cb262021-08-07 19:21:33 -050048FILES:${PN} += "${datadir}/X11/app-defaults/XScreenSaver ${datadir}/fonts"
49SYSTEMD_SERVICE:${PN} = "xscreensaver.service"
Andrew Geissler69721092021-07-23 12:57:00 -040050
Patrick Williams213cb262021-08-07 19:21:33 -050051RDEPENDS:${PN}-perl = "perl"
Andrew Geissler69721092021-07-23 12:57:00 -040052
53CLEANBROKEN = "1"