aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/mldonkey
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2022-04-07 13:59:40 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2022-04-07 13:59:40 +0000
commit69c0109b3e720f1be123618a1f9d1649e24040e8 (patch)
tree72ff61d35b37e5c2145f749fd5fa820d85425f5e /net-p2p/mldonkey
parent9aa49f27ffd0ad9bd0bbef810100b9eefcaf8749 (diff)
downloadports-69c0109b3e720f1be123618a1f9d1649e24040e8.tar.gz
ports-69c0109b3e720f1be123618a1f9d1649e24040e8.zip
net-p2p/mldonkey: force unsafe strings to unbreak against modern OCaml.
Diffstat (limited to 'net-p2p/mldonkey')
-rw-r--r--net-p2p/mldonkey/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/net-p2p/mldonkey/Makefile b/net-p2p/mldonkey/Makefile
index c34bea2599d6..6f3e08010452 100644
--- a/net-p2p/mldonkey/Makefile
+++ b/net-p2p/mldonkey/Makefile
@@ -106,9 +106,11 @@ post-patch:
${WRKDIR}/wrapper.sh
@${REINPLACE_CMD} \
-e 's|$$OCAMLLIB/$$LABLGTK_NAME|$$OCAMLLIB/site-lib/$$LABLGTK_NAME|' \
+ -e 's|^DEVFLAGS=|&-unsafe-string|' \
${WRKSRC}/config/configure
@${REINPLACE_CMD} \
-e 's|+labl|+site-lib/labl|' \
+ -e '/BITSTRING/s|OCAMLC)|& -unsafe-string|' \
${WRKSRC}/config/Makefile.in
@${REINPLACE_CMD} -E \
-e 's@(#include <)(lablgtk2/)@\1site-lib/\2@' \