misc/compat*x: Add an auxiliary target to regenerate distfiles

Approved by: bapt
Differential Revision: https://reviews.freebsd.org/D50372
This commit is contained in:
Gleb Popov
2025-05-16 13:04:18 +03:00
parent e0d976d380
commit 3f33edbb30
2 changed files with 21 additions and 0 deletions
+7
View File
@@ -20,6 +20,13 @@ TARGET32_DIR= ${PREFIX}/lib32/compat
USE_LDCONFIG= ${TARGET_DIR}
NO_SHLIB_REQUIRES_GLOB= *:32
COMPAT_LIBS= libcrypto.so.111 \
libdialog.so.9 \
libnv.so.0 \
libssl.so.111
.include "${.CURDIR}/../compat4x/Makefile.makedist"
.include <bsd.port.pre.mk>
.if ${OSREL:R} < 13
+14
View File
@@ -0,0 +1,14 @@
_VER= ${PORTVERSION:C/\..*//g}.${PORTVERSION:C/[^\.]*\.//:C/\..*//g}
makedist:
.for lib in ${COMPAT_LIBS}
${ECHO_CMD} ${lib} >> /tmp/compat-libs
.endfor
.for arch in ${ONLY_FOR_ARCHS}
cd /tmp && ${SH} ${PORTSDIR}/Tools/scripts/gen-compat.sh ${_VER} ${arch} /tmp/compat-libs
.endfor
@${ECHO_CMD}
@${ECHO_CMD} Now run
@${ECHO_CMD} 'mv /tmp/${PORTNAME}-* ${PORTSDIR}/distfiles/'
@${ECHO_CMD} adjust PORTVERSION accordingly and run
@${ECHO_CMD} ${MAKE} -C ${.CURDIR} makesum