summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/compat13x/Makefile7
-rw-r--r--misc/compat4x/Makefile.makedist14
2 files changed, 21 insertions, 0 deletions
diff --git a/misc/compat13x/Makefile b/misc/compat13x/Makefile
index f826b491abd2..a9bbabcc1899 100644
--- a/misc/compat13x/Makefile
+++ b/misc/compat13x/Makefile
@@ -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
diff --git a/misc/compat4x/Makefile.makedist b/misc/compat4x/Makefile.makedist
new file mode 100644
index 000000000000..0e011f3ddeb3
--- /dev/null
+++ b/misc/compat4x/Makefile.makedist
@@ -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