mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
8025aa10ce
The 'force-safe-string; setting is NOT enabled, as opposed to the new upstream default. OCaml users are encouraged to migrate to safe strings as soon as possible. - The X11 library isn't part of lang/ocaml anymore, users should install x11-toolkits/ocaml-graphics. - Add new 'ocaml' USES - Bump PORTREVISION on dependent ports, due to ABI Change. The update includes the following updates to existing ports (needed to keep them working): - devel/ocaml-camlp4: Updated to 4.14+1 - devel/ocaml-camlp5: Updated to 8.02.01, homepage updated - devel/ocaml-dune: Patch to allow overriding the stublibs directory, strip binary and shared libraries - devel/ocaml-findlib: Improve port - devel/ocaml-lwt: Fix build with OCaml 4.14 - deve/ocaml-re: Update to 1.11.0, use new dune USES - devel/ocaml-sdl: Fix build with new ocaml - games/freetennis: Fix build, tidy Makefile - graphics/ocaml-images: Updated to 5.0.4, new homepage, use new dune USES, undeprecate - graphics/ocaml-lablgl: Moved into site-lib, dynamic objects stripped, add missing GL dependencies - math/coq: Updated to 8.19.0 - math/ocaml-zarith: strip shared libraries, fixed usage of USE_OCAML_LDCONFIG, use new dune USES - math/teyjus: Fix build - net/unison240: Fix build with new compiler - net/unison248: Fix build with new compiler, add MAKE_JOBS_UNSAFE - net-p2p/mldonkey: Fix build with new compiler, fix build on i386 - sysutils/ledit: Updated to 2.06, install native binary, Use github, fix man page installation - www/geneweb: Build fix for OCaml and Camlp5 updates - x11-toolkits/ocaml-lablgtk2: Fix build with new compiler - x11-toolkits/ocaml-lablgtk3: Updated to 3.1.4, added ocaml-camlp-stream dependency, build fix patch - x11-toolkits/ocaml-labltk: Updated to 8.06.12, Improve Makefile Added the following ports: - devel/ocaml-astring - devel/ocaml-base - devel/ocaml-bos - devel/ocaml-camlp-streams - devel/ocaml-csexp - devel/ocaml-fmt - devel/ocaml-fpath - devel/ocaml-logs - devel/ocaml-mtime - devel/ocaml-pcre2 - devel/ocaml-rresult - devel/ocaml-seq - devel/ocaml-stdio - x11-toolkits/ocaml-graphics PR: 250408 [1], 262781 [1], 262788 [3], 262789 [1], 262792 [1], 263006 [1], 263162 [3], 263206 [2], 276893 [1], 276945 [4], 276953 [1], 277026 [5], 277241 [1], 277242 [1], 277243 [1], 277244 [1], 277245 [1], 277246 [1], 277247 [1], 277248 [1], 277249 [1], 277250 [1], 277251 [1], 277252 [1], 277253 [1], 277254 [1], 277255 [1], 277256 [4], 277257 [1], 277258 [1] Approved by: maintainer timeout [1], yuri (maintainer) [2], overcome by events, fixit [3], madpilot (maintainer) [4] Reviewed by: madpilot Exp-run by: antoine [5] Differential Revision: https://reviews.freebsd.org/D43861
73 lines
2.0 KiB
Makefile
73 lines
2.0 KiB
Makefile
PORTNAME= lwt
|
|
PORTVERSION= 2.5.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel
|
|
PKGNAMEPREFIX= ocaml-
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Cooperative threading library for OCaml
|
|
|
|
LICENSE= LGPL21
|
|
|
|
BUILD_DEPENDS= ${SA_DIR}/react/react.a:devel/ocaml-react \
|
|
${SA_DIR}/ssl/ssl.a:security/ocaml-ssl
|
|
BUILD_DEPENDS+= ocamlbuild:devel/ocaml-ocamlbuild
|
|
RUN_DEPENDS= ${SA_DIR}/react/react.a:devel/ocaml-react \
|
|
${SA_DIR}/ssl/ssl.a:security/ocaml-ssl
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= ocsigen
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
USES= gmake
|
|
USE_OCAML= yes
|
|
OCAMLC_DEPEND= ocaml>=4.14:${OCAMLC_PORT}
|
|
USE_OCAML_FINDLIB= yes
|
|
USE_OCAML_CAMLP4= yes
|
|
USE_OCAMLFIND_PLIST= yes
|
|
USE_OCAML_LDCONFIG= yes
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --destdir "${STAGEDIR}" \
|
|
--prefix "${PREFIX}" \
|
|
--enable-camlp4 \
|
|
--enable-ssl \
|
|
--enable-react \
|
|
--disable-libev \
|
|
--disable-glib
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME}
|
|
SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
DOCS_CONFIGURE_ENABLE= docs
|
|
DOCS_CONFIGURE_ON= --docdir ${STAGEDIR}${DOCSDIR}
|
|
# For some reason, ocaml-text is needed when building documentation
|
|
DOCS_BUILD_DEPENDS= ${SA_DIR}/text/text.a:textproc/ocaml-text
|
|
DOCS_RUN_DEPENDS= ${SA_DIR}/text/text.a:textproc/ocaml-text
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,"install" :: findlib_name,"install" :: "-destdir ${STAGEDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,' \
|
|
${WRKSRC}/setup.ml
|
|
@${REINPLACE_CMD} -e 's,| O_CLOEXEC,& | O_KEEPEXEC, \
|
|
; s,else Unix\.socketpair ,&?cloexec:None,' \
|
|
${WRKSRC}/src/unix/lwt_unix.ml \
|
|
${WRKSRC}/src/unix/lwt_unix.mli
|
|
@${REINPLACE_CMD} -e 's,socket -> string,socket -> bytes,' \
|
|
${WRKSRC}/src/ssl/lwt_ssl.mli
|
|
|
|
do-configure:
|
|
cd ${WRKSRC}; ocaml setup.ml -configure ${CONFIGURE_ARGS}
|
|
@${REINPLACE_CMD} -e 's%"-lev"%"-lev -L${PREFIX}/lib/ev -Wl,-R${PREFIX}/lib/ev"%' \
|
|
${WRKSRC}/setup.data
|
|
|
|
do-build:
|
|
cd ${WRKSRC}; ocaml setup.ml -build
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}
|
|
cd ${WRKSRC}; ocaml setup.ml -install
|
|
|
|
.include <bsd.port.mk>
|