blob: d24f666bcf01b53d576d1bc41c93ed3ef2ef57a5 [file] [log] [blame]
Andrew Geissler69721092021-07-23 12:57:00 -04001SUMMARY = "X screen saver and locker"
2HOMEPAGE = "https://www.jwz.org/xscreensaver/"
Andrew Geissler9aee5002022-03-30 16:27:02 +00003LICENSE = "0BSD"
Andrew Geissler69721092021-07-23 12:57:00 -04004LIC_FILES_CHKSUM = "file://driver/xscreensaver.h;endline=10;md5=c3ce41cdff745eb1dc9d4fcfbffb4d51"
5
Patrick Williamsdb4c27e2022-08-05 08:10:29 -05006SRC_URI = "https://www.jwz.org/${BPN}/${BP}.tar.gz \
Andrew Geissler69721092021-07-23 12:57:00 -04007 file://xscreensaver.service \
Patrick Williamsdb4c27e2022-08-05 08:10:29 -05008 file://0001-Tweak-app-defaults.patch \
9 file://0002-build-Do-not-build-po-files.patch \
10 file://0001-configure-Ignore-CONF_STATUS-for-gtk-and-openGL-need.patch \
Andrew Geissler69721092021-07-23 12:57:00 -040011"
Patrick Williamsdb4c27e2022-08-05 08:10:29 -050012SRC_URI[sha256sum] = "787014b29f0c5793ecc2d93e1109a049ff48ab0c29b851dab34f683ceef6b152"
Andrew Geissler69721092021-07-23 12:57:00 -040013
Patrick Williamsdb4c27e2022-08-05 08:10:29 -050014DEPENDS = "intltool-native libx11 libxext libxt libxft libxi glib-2.0-native bc-native libpam jpeg"
Andrew Geissler69721092021-07-23 12:57:00 -040015# These are only needed as part of the stopgap screensaver implementation:
Patrick Williams213cb262021-08-07 19:21:33 -050016RDEPENDS:${PN} = " \
Andrew Geissler69721092021-07-23 12:57:00 -040017 liberation-fonts \
18 xuser-account \
19"
20
21inherit systemd perlnative pkgconfig gettext autotools-brokensep features_check
22
23
24EXTRA_OECONF += "--with-app-defaults=${datadir}/X11/app-defaults --libdir=${STAGING_LIBDIR} \
25 --includedir=${STAGING_INCDIR} --with-pam --with-login-manager"
26
Patrick Williamsdb4c27e2022-08-05 08:10:29 -050027EXTRA_OEMAKE += "install_prefix=${D} GTK_DATADIR=${datadir}"
Andrew Geissler69721092021-07-23 12:57:00 -040028REQUIRED_DISTRO_FEATURES = "x11 pam"
29
Patrick Williamsdb4c27e2022-08-05 08:10:29 -050030PACKAGECONFIG = "png ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}"
31
32PACKAGECONFIG[systemd] = "--with-systemd=yes,--with-systemd=no,systemd"
33PACKAGECONFIG[png] = "--with-png=yes,--with-png=no,libpng"
34
35CONFIGUREOPTS:remove = "--disable-silent-rules --disable-dependency-tracking ${@append_libtool_sysroot(d)}"
36EXTRA_OECONF:remove = "--disable-static"
37
Patrick Williams213cb262021-08-07 19:21:33 -050038do_install:append() {
Andrew Geissler69721092021-07-23 12:57:00 -040039 install -D ${WORKDIR}/xscreensaver.service ${D}${systemd_unitdir}/system/xscreensaver.service
40 for f in xscreensaver-getimage-file xscreensaver-getimage-video webcollage xscreensaver-text vidwhacker
41 do
42 sed -i -e "s|${STAGING_BINDIR_NATIVE}/perl-native/perl|/usr/bin/perl|g" ${D}/${libexecdir}/${PN}/$f
43 done
44}
45
46PACKAGES =+ "${PN}-perl"
47
Patrick Williams213cb262021-08-07 19:21:33 -050048FILES:${PN}-perl = "\
Andrew Geissler69721092021-07-23 12:57:00 -040049 ${libexecdir}/${PN}/xscreensaver-getimage-file \
50 ${libexecdir}/${PN}/xscreensaver-getimage-video \
51 ${libexecdir}/${PN}/webcollage \
52 ${libexecdir}/${PN}/xscreensaver-text \
53 ${libexecdir}/${PN}/vidwhacker \
54 "
Patrick Williams213cb262021-08-07 19:21:33 -050055FILES:${PN} += "${datadir}/X11/app-defaults/XScreenSaver ${datadir}/fonts"
56SYSTEMD_SERVICE:${PN} = "xscreensaver.service"
Andrew Geissler69721092021-07-23 12:57:00 -040057
Patrick Williams213cb262021-08-07 19:21:33 -050058RDEPENDS:${PN}-perl = "perl"
Andrew Geissler69721092021-07-23 12:57:00 -040059
60CLEANBROKEN = "1"