- Fix build on 9.x

This commit is contained in:
Dmitry Marakasov 2016-02-09 11:27:43 +00:00
parent 8a89226f2e
commit 13e037f070
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=408559

View file

@ -15,7 +15,7 @@ LICENSE_NAME= OCaml-SQLite3 unique permissive license
LICENSE_FILE= ${WRKSRC}/COPYING.txt
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USES= gmake pkgconfig sqlite
USES= compiler:features gmake pkgconfig sqlite
USE_OCAML= yes
USE_OCAML_FINDLIB= yes
USE_OCAML_LDCONFIG= yes
@ -29,9 +29,15 @@ GH_ACCOUNT= mmottl
GH_PROJECT= ${PORTNAME}-ocaml
USE_GITHUB= yes
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's,"install" :: findlib_name,"install" :: "-destdir ${STAGEDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /var/null" :: findlib_name,' \
${WRKSRC}/setup.ml
.if ${COMPILER_TYPE} == gcc & ${COMPILER_VERSION} <= 42
@${REINPLACE_CMD} -e 's|-Wno-keyword-macro||' ${WRKSRC}/_oasis \
${WRKSRC}/myocamlbuild.ml ${WRKSRC}/setup.ml
.endif
do-configure:
(cd ${WRKSRC} && ocaml setup.ml -configure ${CONFIGURE_ARGS})
@ -42,4 +48,4 @@ do-build:
do-install:
(cd ${WRKSRC} && ocaml setup.ml -install)
.include <bsd.port.mk>
.include <bsd.port.post.mk>