Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 1 | SUMMARY = "X screen saver and locker" |
| 2 | HOMEPAGE = "https://www.jwz.org/xscreensaver/" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 3 | LICENSE = "0BSD" |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://driver/xscreensaver.h;endline=10;md5=c3ce41cdff745eb1dc9d4fcfbffb4d51" |
| 5 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame^] | 6 | SRC_URI = "https://www.jwz.org/${BPN}/${BP}.tar.gz \ |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 7 | file://xscreensaver.service \ |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame^] | 8 | 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 Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 11 | " |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame^] | 12 | SRC_URI[sha256sum] = "787014b29f0c5793ecc2d93e1109a049ff48ab0c29b851dab34f683ceef6b152" |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 13 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame^] | 14 | DEPENDS = "intltool-native libx11 libxext libxt libxft libxi glib-2.0-native bc-native libpam jpeg" |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 15 | # These are only needed as part of the stopgap screensaver implementation: |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 16 | RDEPENDS:${PN} = " \ |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 17 | liberation-fonts \ |
| 18 | xuser-account \ |
| 19 | " |
| 20 | |
| 21 | inherit systemd perlnative pkgconfig gettext autotools-brokensep features_check |
| 22 | |
| 23 | |
| 24 | EXTRA_OECONF += "--with-app-defaults=${datadir}/X11/app-defaults --libdir=${STAGING_LIBDIR} \ |
| 25 | --includedir=${STAGING_INCDIR} --with-pam --with-login-manager" |
| 26 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame^] | 27 | EXTRA_OEMAKE += "install_prefix=${D} GTK_DATADIR=${datadir}" |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 28 | REQUIRED_DISTRO_FEATURES = "x11 pam" |
| 29 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame^] | 30 | PACKAGECONFIG = "png ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}" |
| 31 | |
| 32 | PACKAGECONFIG[systemd] = "--with-systemd=yes,--with-systemd=no,systemd" |
| 33 | PACKAGECONFIG[png] = "--with-png=yes,--with-png=no,libpng" |
| 34 | |
| 35 | CONFIGUREOPTS:remove = "--disable-silent-rules --disable-dependency-tracking ${@append_libtool_sysroot(d)}" |
| 36 | EXTRA_OECONF:remove = "--disable-static" |
| 37 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 38 | do_install:append() { |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 39 | 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 | |
| 46 | PACKAGES =+ "${PN}-perl" |
| 47 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 48 | FILES:${PN}-perl = "\ |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 49 | ${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 Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 55 | FILES:${PN} += "${datadir}/X11/app-defaults/XScreenSaver ${datadir}/fonts" |
| 56 | SYSTEMD_SERVICE:${PN} = "xscreensaver.service" |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 57 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 58 | RDEPENDS:${PN}-perl = "perl" |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 59 | |
| 60 | CLEANBROKEN = "1" |