Index: devel/kf5-kcoreaddons/Makefile =================================================================== --- devel/kf5-kcoreaddons/Makefile +++ devel/kf5-kcoreaddons/Makefile @@ -29,8 +29,13 @@ FAM_USES= fam FAM_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_FAM +.include +# FreeBSD base gained /etc/os-release in r354922, which +# corresponds to __FreeBSD_version 1300060 +.if ${OSVERSION} < 1300060 post-patch: ${REINPLACE_CMD} -e '/QStringLiteral/s|/etc/os-release|${LOCALBASE}/etc/os-release|g' \ ${WRKSRC}/src/lib/util/kosrelease.cpp +.endif -.include +.include Index: devel/qt5-core/Makefile =================================================================== --- devel/qt5-core/Makefile +++ devel/qt5-core/Makefile @@ -10,7 +10,6 @@ LIB_DEPENDS= libicui18n.so:devel/icu \ libpcre2-posix.so:devel/pcre2 -RUN_DEPENDS= etc_os-release>0:sysutils/etc_os-release USES= compiler:c++11-lang gnome qmake:no_env qt-dist:5,base USE_GNOME= glib20 @@ -37,10 +36,14 @@ MORE_WRKSRCS= src/tools/bootstrap src/tools/qfloat16-tables src/corelib src/tools/qlalr .include - +# FreeBSD base gained /etc/os-release in r354922, which +# corresponds to __FreeBSD_version 1300060 +.if ${OSVERSION} < 1300060 +RUN_DEPENDS+= etc_os-release>0:sysutils/etc_os-release post-patch: ${REINPLACE_CMD} -e '/readEtcFile/s|/etc/os-release|${LOCALBASE}/etc/os-release|g' \ ${WRKSRC}/src/corelib/global/qglobal.cpp +.endif post-configure: .for d in ${MORE_WRKSRCS} Index: sysutils/etc_os-release/Makefile =================================================================== --- sysutils/etc_os-release/Makefile +++ sysutils/etc_os-release/Makefile @@ -28,8 +28,15 @@ 'HOME_URL=https://freebsd.org/\0'$\ 'BUG_REPORT_URL=https://bugs.freebsd.org' +.include +# FreeBSD base gained /etc/os-release in r354922, which +# corresponds to __FreeBSD_version 1300060 +.if ${OSVERSION} >= 1300060 +IGNORE= /etc/os-release is present in base +.endif + do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/etc ${ECHO} -e ${CONTENTS} | ${XARGS} -0 -n 1 >> ${STAGEDIR}${PREFIX}/${PLIST_FILES} -.include +.include Index: sysutils/gnome-control-center/Makefile =================================================================== --- sysutils/gnome-control-center/Makefile +++ sysutils/gnome-control-center/Makefile @@ -37,7 +37,6 @@ RUN_DEPENDS= gnome-settings-daemon>=3.4.0:sysutils/gnome-settings-daemon \ gsettings-desktop-schemas>=3.2.2:devel/gsettings-desktop-schemas \ cantarell-fonts>=0:x11-fonts/cantarell-fonts \ - etc_os-release>0:sysutils/etc_os-release \ gcm-calibrate:graphics/gnome-color-manager PORTSCOUT= limitw:1,even @@ -65,9 +64,16 @@ WAYLAND_MESON_TRUE= wayland WAYLAND_LIB_DEPENDS= libgudev-1.0.so:devel/libgudev + +.include +# FreeBSD base gained /etc/os-release in r354922, which +# corresponds to __FreeBSD_version 1300060 +.if ${OSVERSION} < 1300060 +RUN_DEPENDS+= etc_os-release>0:sysutils/etc_os-release post-patch: @${REINPLACE_CMD} -e 's|/etc/os-release|${LOCALBASE}/etc/os-release|g' \ ${WRKSRC}/panels/privacy/cc-privacy-panel.c \ ${WRKSRC}/panels/info/cc-info-overview-panel.c +.endif -.include +.include