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 | " |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 12 | MIRRORS += "https://www.jwz.org/${BPN} https://ftp.osuosl.org/pub/blfs/conglomeration/${BPN}" |
| 13 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 14 | SRC_URI[sha256sum] = "787014b29f0c5793ecc2d93e1109a049ff48ab0c29b851dab34f683ceef6b152" |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 15 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 16 | 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] | 17 | # These are only needed as part of the stopgap screensaver implementation: |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 18 | RDEPENDS:${PN} = " \ |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 19 | liberation-fonts \ |
| 20 | xuser-account \ |
| 21 | " |
| 22 | |
| 23 | inherit systemd perlnative pkgconfig gettext autotools-brokensep features_check |
| 24 | |
| 25 | |
| 26 | EXTRA_OECONF += "--with-app-defaults=${datadir}/X11/app-defaults --libdir=${STAGING_LIBDIR} \ |
| 27 | --includedir=${STAGING_INCDIR} --with-pam --with-login-manager" |
| 28 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 29 | EXTRA_OEMAKE += "install_prefix=${D} GTK_DATADIR=${datadir}" |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 30 | REQUIRED_DISTRO_FEATURES = "x11 pam" |
| 31 | |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 32 | PACKAGECONFIG = "png ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}" |
| 33 | |
| 34 | PACKAGECONFIG[systemd] = "--with-systemd=yes,--with-systemd=no,systemd" |
| 35 | PACKAGECONFIG[png] = "--with-png=yes,--with-png=no,libpng" |
| 36 | |
| 37 | CONFIGUREOPTS:remove = "--disable-silent-rules --disable-dependency-tracking ${@append_libtool_sysroot(d)}" |
| 38 | EXTRA_OECONF:remove = "--disable-static" |
| 39 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 40 | do_install:append() { |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 41 | install -D ${WORKDIR}/xscreensaver.service ${D}${systemd_unitdir}/system/xscreensaver.service |
| 42 | for f in xscreensaver-getimage-file xscreensaver-getimage-video webcollage xscreensaver-text vidwhacker |
| 43 | do |
| 44 | sed -i -e "s|${STAGING_BINDIR_NATIVE}/perl-native/perl|/usr/bin/perl|g" ${D}/${libexecdir}/${PN}/$f |
| 45 | done |
| 46 | } |
| 47 | |
| 48 | PACKAGES =+ "${PN}-perl" |
| 49 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 50 | FILES:${PN}-perl = "\ |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 51 | ${libexecdir}/${PN}/xscreensaver-getimage-file \ |
| 52 | ${libexecdir}/${PN}/xscreensaver-getimage-video \ |
| 53 | ${libexecdir}/${PN}/webcollage \ |
| 54 | ${libexecdir}/${PN}/xscreensaver-text \ |
| 55 | ${libexecdir}/${PN}/vidwhacker \ |
| 56 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 57 | FILES:${PN} += "${datadir}/X11/app-defaults/XScreenSaver ${datadir}/fonts" |
| 58 | SYSTEMD_SERVICE:${PN} = "xscreensaver.service" |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 59 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 60 | RDEPENDS:${PN}-perl = "perl" |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 61 | |
| 62 | CLEANBROKEN = "1" |