From fada8f3ec8dcc8f0bb9adbd3fdadce73dd59f670 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Wed, 7 Jun 2023 07:41:35 +0200 Subject: [PATCH] textproc/kmfl-european-latin: Fix build on 14 - base64 is available in the base system from 14 so conditionally change base64 call - Pet portclippy Approved by: portmgr (blanket) --- textproc/kmfl-european-latin/Makefile | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/textproc/kmfl-european-latin/Makefile b/textproc/kmfl-european-latin/Makefile index 90ddce39b2f0..7740d970282f 100644 --- a/textproc/kmfl-european-latin/Makefile +++ b/textproc/kmfl-european-latin/Makefile @@ -11,26 +11,35 @@ MAINTAINER= nikola.lecic@anthesphoria.net COMMENT= Paneuropean Latin KMFL keyboard covering 120 languages WWW= http://eurolatin.keymankeyboards.com/ -BUILD_DEPENDS= base64:converters/base64 RUN_DEPENDS= kmflcomp:textproc/kmflcomp -WRKSRC= ${WRKDIR}/EuroLatin\ Source\ Files USES= dos2unix zip DOS2UNIX_FILES= european.kmn -OPTIONS_DEFINE= DOCS DOCSDIR= ${PREFIX}/share/doc/kmfl/${PORTNAME} +SUB_FILES= pkg-message + +WRKSRC= ${WRKDIR}/EuroLatin\ Source\ Files + +OPTIONS_DEFINE= DOCS + DOCSLIST= EuroLatin\ Keyman\ Desktop\ Keyboard\ Files/eurolatin1.6.pdf \ EuroLatin\ KeymanWeb\ Keyboard\ Files/european.html \ licence.txt - KMFL_DIR= share/kmfl KMFL_ICONS_DIR= share/kmfl/icons -SUB_FILES= pkg-message +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079 +BASE64= /usr/bin/base64 +.else +BUILD_DEPENDS= base64:converters/base64 +BASE64= ${LOCALBASE}/bin/base64 +.endif do-build: - ${LOCALBASE}/bin/base64 -d ${FILESDIR}/latin.png.base64.txt > ${WRKSRC}/latin.png + ${BASE64} -d ${FILESDIR}/latin.png.base64.txt > ${WRKSRC}/latin.png do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/${KMFL_DIR} ${STAGEDIR}${PREFIX}/${KMFL_ICONS_DIR} @@ -41,4 +50,4 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/"$$doc" ${STAGEDIR}${DOCSDIR} ; \ done -.include +.include