diff --git a/devel/ocaml-cfg/Makefile b/devel/ocaml-cfg/Makefile index 7d683d99f83c..804df9908700 100644 --- a/devel/ocaml-cfg/Makefile +++ b/devel/ocaml-cfg/Makefile @@ -1,35 +1,41 @@ PORTNAME= cfg PORTVERSION= 2.2.0 PORTREVISION= 3 CATEGORIES= devel PKGNAMEPREFIX= ocaml- MAINTAINER= ports@FreeBSD.org COMMENT= Library for manipulating context-free grammars WWW= https://mmottl.github.io/cfg/ LICENSE= LGPL21+ LICENSE_FILE= ${WRKSRC}/LICENSE.md BUILD_DEPENDS= dune:devel/ocaml-dune USES= ocaml USE_GITHUB= yes GH_ACCOUNT= mmottl DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME} EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME} OPTIONS_DEFINE= DOCS EXAMPLES +.include + +.if ${ARCH} == powerpc +USE_BINUTILS= yes +.endif + do-build: cd ${BUILD_WRKSRC} && dune build --verbose do-install: cd ${INSTALL_WRKSRC} && dune install --destdir=${STAGEDIR} \ --libdir=${PREFIX}/${OCAML_SITELIBDIR} post-install-EXAMPLES-on: @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) .include