diff Makefile @ 550:847ae246f3cc

Make the port really DATADIR and EXAMPLESDIR safe because the user may redefine DATADIR and EXAMPLESDIR. pkg-plist must use DATADIR and EXAMPLESDIR. The scripts must search for common.subr and farray.sh more intelligently.
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 10 Sep 2024 21:10:27 +0200
parents 48b31d24d71d
children b99bcd88b2a3
line wrap: on
line diff
--- a/Makefile	Tue Sep 10 19:48:07 2024 +0200
+++ b/Makefile	Tue Sep 10 21:10:27 2024 +0200
@@ -84,6 +84,7 @@
 	${CP} -v ${SRC}/${_rp} ${WRKSRC}/${_rp}
 	${SED} -i "" -e "s|@@VERSION@@|${PORTVERSION}|" ${WRKSRC}/${_rp}
 	${SED} -i "" -e "s|@@ETCDIR@@|${ETCDIR}|" ${WRKSRC}/${_rp}
+	${SED} -i "" -e "s|@@DATADIR@@|${DATADIR}|" ${WRKSRC}/${_rp}
 	${SED} -i "" -e "s|@@VERSIONTAG@@|${VERSIONTAG}|" ${WRKSRC}/${_rp}
 	${SED} -i "" -e "s|@@SIMPLEVERSIONTAG@@|${SIMPLEVERSIONTAG}|" ${WRKSRC}/${_rp}
 	${SED} -i "" -e "s|@@SIMPLEVERSIONSTR@@|${SIMPLEVERSIONSTR}|" ${WRKSRC}/${_rp}