Lines 2-15
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= ocurl |
4 |
PORTNAME= ocurl |
5 |
PORTVERSION= 0.7.9 |
5 |
PORTVERSION= 0.8.2 |
6 |
CATEGORIES= ftp |
6 |
CATEGORIES= ftp |
7 |
MASTER_SITES= http://ygrek.org.ua/p/release/ocurl/ |
|
|
8 |
PKGNAMEPREFIX= ocaml- |
7 |
PKGNAMEPREFIX= ocaml- |
9 |
|
8 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
9 |
MAINTAINER= ndowens@yahoo.com |
11 |
COMMENT= Interface for OCaml to the curl lib |
10 |
COMMENT= Interface for OCaml to the curl lib |
12 |
|
11 |
|
|
|
12 |
LICENSE= MIT |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
14 |
|
13 |
BUILD_DEPENDS= ocamlc:lang/ocaml \ |
15 |
BUILD_DEPENDS= ocamlc:lang/ocaml \ |
14 |
ocamlfind:devel/ocaml-findlib |
16 |
ocamlfind:devel/ocaml-findlib |
15 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
17 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
Lines 17-25
Link Here
|
17 |
|
19 |
|
18 |
USES= gmake |
20 |
USES= gmake |
19 |
GNU_CONFIGURE= yes |
21 |
GNU_CONFIGURE= yes |
20 |
CONFIGURE_ARGS+="--with-findlib" |
22 |
#CONFIGURE_ARGS+="--with-findlib" |
21 |
MAKE_JOBS_UNSAFE= yes |
|
|
22 |
|
23 |
|
|
|
24 |
USE_GITHUB= yes |
25 |
GH_ACCOUNT= ygrek |
26 |
|
23 |
USE_OCAML= yes |
27 |
USE_OCAML= yes |
24 |
USE_OCAML_CAMLP4= yes |
28 |
USE_OCAML_CAMLP4= yes |
25 |
USE_OCAML_FINDLIB= yes |
29 |
USE_OCAML_FINDLIB= yes |
Lines 26-48
Link Here
|
26 |
USE_OCAML_LDCONFIG= yes |
30 |
USE_OCAML_LDCONFIG= yes |
27 |
OCAML_PKGDIRS= curl |
31 |
OCAML_PKGDIRS= curl |
28 |
|
32 |
|
29 |
OPTIONS_DEFINE= LWT |
33 |
OPTIONS_DEFINE= LWT |
30 |
OPTIONS_DEFAULT=LWT |
34 |
OPTIONS_DEFAULT= LWT |
31 |
OPTIONS_SUB= yes |
35 |
OPTIONS_SUB= yes |
32 |
LWT_DESC= Include threading support (ocaml-lwt) |
36 |
LWT_DESC= Include threading support (ocaml-lwt) |
33 |
LWT_RUN_DEPENDS=${LOCALBASE}/${OCAML_SITELIBDIR}/lwt/lwt.a:devel/ocaml-lwt |
37 |
LWT_RUN_DEPENDS= ${LOCALBASE}/${OCAML_SITELIBDIR}/lwt/lwt.a:devel/ocaml-lwt |
34 |
LWT_BUILD_DEPENDS=${LWT_RUN_DEPENDS} |
38 |
LWT_BUILD_DEPENDS= ${LWT_RUN_DEPENDS} |
35 |
|
39 |
|
|
|
40 |
post-install-LWT-on: |
41 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/curl/curl_lwt.cmxs |
42 |
|
36 |
post-install: |
43 |
post-install: |
37 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/curl/dllcurl-helper.so |
44 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/curl/dllcurl-helper.so \ |
|
|
45 |
${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/curl/curl.cmxs \ |
38 |
|
46 |
|
39 |
.include <bsd.port.options.mk> |
47 |
post-configure-LWT-off: |
|
|
48 |
# Override auto-detection |
40 |
|
49 |
|
41 |
.if ! ${PORT_OPTIONS:MLWT} |
|
|
42 |
# Override auto-detection |
43 |
post-configure: |
44 |
${REINPLACE_CMD} 's/(lwt,no)/(no,no)/' ${WRKSRC}/Makefile \ |
50 |
${REINPLACE_CMD} 's/(lwt,no)/(no,no)/' ${WRKSRC}/Makefile \ |
45 |
${WRKSRC}/examples/Makefile |
51 |
${WRKSRC}/examples/Makefile |
46 |
.endif |
|
|
47 |
|
52 |
|
48 |
.include <bsd.port.mk> |
53 |
.include <bsd.port.mk> |