Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jun 2023 07:25:18 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: fada8f3ec8dc - main - textproc/kmfl-european-latin: Fix build on 14
Message-ID:  <202306070725.3577PIVA084944@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fada8f3ec8dcc8f0bb9adbd3fdadce73dd59f670

commit fada8f3ec8dcc8f0bb9adbd3fdadce73dd59f670
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-07 05:41:35 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-07 07:25:08 +0000

    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 <bsd.port.pre.mk>
+
+.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 <bsd.port.mk>
+.include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306070725.3577PIVA084944>