1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

devel/ocaml-ipaddr: force unsafe strings to prepare for modern OCaml

While here, perform configure step in the ${CONFIGURE_WRKSRC} (style
issue, but canonical).
This commit is contained in:
Alexey Dokuchaev 2022-04-11 10:08:54 +00:00
parent 923349e081
commit 75d1423251

View File

@ -24,7 +24,12 @@ USE_OCAML_CAMLP4= yes
USE_OCAMLFIND_PLIST= yes
USE_OCAML_LDCONFIG= yes
post-patch:
@${REINPLACE_CMD} -e '/^SETUP =/s,ocaml,& -unsafe-string,' \
${WRKSRC}/Makefile
do-configure:
cd ${WRKSRC}; ocaml setup.ml -configure ${CONFIGURE_ARGS}
cd ${CONFIGURE_WRKSRC} && ocaml -unsafe-string setup.ml \
-configure ${CONFIGURE_ARGS}
.include <bsd.port.mk>