From 61978b665828effc7ca1cb46df4117f6f5930737 Mon Sep 17 00:00:00 2001 From: kikadf Date: Sun, 6 Dec 2020 13:58:59 +0100 Subject: [PATCH] enlightenment-current: enable systemd on linux --- enlightenment-current/Makefile | 9 +++++++-- enlightenment-current/PLIST | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/enlightenment-current/Makefile b/enlightenment-current/Makefile index 258140527c..9236ed862f 100644 --- a/enlightenment-current/Makefile +++ b/enlightenment-current/Makefile @@ -3,7 +3,7 @@ DISTNAME= enlightenment-0.24.2 PKGNAME= ${DISTNAME:S/enlightenment/enlightenment-current/} CATEGORIES= wm -PKGREVISION= 4 +PKGREVISION= 5 MASTER_SITES= https://download.enlightenment.org/rel/apps/enlightenment/ EXTRACT_SUFX= .tar.xz @@ -42,7 +42,7 @@ SUBST_VARS.prefix= PREFIX .include "../../mk/bsd.prefs.mk" -PLIST_VARS+= cpufreq sysinfo temperature +PLIST_VARS+= cpufreq sysinfo temperature linux .if ${OPSYS} != "NetBSD" PLIST.cpufreq= yes @@ -52,6 +52,7 @@ PLIST.temperature= yes .if ${OPSYS} == "Linux" PLIST_SUBST+= PLATFORM="linux-gnu" +PLIST.linux= yes .else PLIST_SUBST+= PLATFORM=${LOWER_OPSYS} .endif @@ -62,7 +63,11 @@ MESON_ARGS+= -Dsysinfo=false MESON_ARGS+= -Dtemperature=false .endif MESON_ARGS+= -Ddevice-udev=false +.if ${OPSYS} != "Linux" MESON_ARGS+= -Dsystemd=false +.else +MESON_ARGS+= -Dsystemdunitdir=${PREFIX}/lib/systemd/user +.endif .if ${X11_TYPE} == "modular" CPPFLAGS+= -DPKGSRC_X11BASE=\"${X11BASE:Q}\" diff --git a/enlightenment-current/PLIST b/enlightenment-current/PLIST index 770ff2ec5d..4b57561c5f 100644 --- a/enlightenment-current/PLIST +++ b/enlightenment-current/PLIST @@ -391,6 +391,7 @@ lib/enlightenment/utils/enlightenment_thumb lib/enlightenment/utils/enlightenment_wallpaper_gen lib/pkgconfig/enlightenment.pc lib/pkgconfig/everything.pc +${PLIST.linux}lib/systemd/user/enlightenment.service share/applications/emixer.desktop share/applications/enlightenment_askpass.desktop share/applications/enlightenment_filemanager.desktop