freebsd-ports/ftp/ocaml-ocurl/Makefile
2015-10-26 19:14:57 +00:00

49 lines
1.2 KiB
Makefile

# Created by: Marwan BURELLE <marwan.burelle@lri.fr>
# $FreeBSD$
PORTNAME= ocurl
PORTVERSION= 0.7.6
CATEGORIES= ftp
MASTER_SITES= https://forge.ocamlcore.org/frs/download.php/1563/ \
http://ygrek.org.ua/p/release/ocurl/
PKGNAMEPREFIX= ocaml-
MAINTAINER= johans@FreeBSD.org
COMMENT= Interface for OCaml to the curl lib
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
ocamlfind:${PORTSDIR}/devel/ocaml-findlib
RUN_DEPENDS:= ${BUILD_DEPENDS}
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
USES= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS+="--with-findlib"
MAKE_JOBS_UNSAFE= yes
USE_OCAML= yes
USE_OCAML_CAMLP4= yes
USE_OCAML_FINDLIB= yes
USE_OCAML_LDCONFIG= yes
OCAML_PKGDIRS= curl
OPTIONS_DEFINE= LWT
OPTIONS_DEFAULT=LWT
OPTIONS_SUB= yes
LWT_DESC= Include threading support (ocaml-lwt)
LWT_RUN_DEPENDS=${LOCALBASE}/${OCAML_SITELIBDIR}/lwt/lwt.a:${PORTSDIR}/devel/ocaml-lwt
LWT_BUILD_DEPENDS=${LWT_RUN_DEPENDS}
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/curl/dllcurl-helper.so
.include <bsd.port.options.mk>
.if ! ${PORT_OPTIONS:MLWT}
# Override auto-detection
post-configure:
${REINPLACE_CMD} 's/(lwt,no)/(no,no)/' ${WRKSRC}/Makefile \
${WRKSRC}/examples/Makefile
.endif
.include <bsd.port.mk>