1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/textproc/ocaml-text/Makefile
Alexey Dokuchaev b51d447684 Update OCaml to version 4.05.0 (this is the last version where strings
are unsafe by default, which is the main motivation why it was picked,
but not the very latest one) and synchronize the rest of the stack and
dependent ports with it, particularly:

  - Update `devel/ocaml-ocamlbuild' to version 0.14.0 and unbreak,
    register build dependency on all ports that require it (should
    be part of USE_OCAML, but we do not want to make any Mk-related
    changes the for time being)
  - Update `devel/ocaml-camlp4' to version 4.05+2
  - Update `devel/ocaml-camlp5' to version 7.07 (the project had
    moved to GitHub)
  - Mark `devel/ocaml-deriving-ocsigen' as BROKEN for now, it is
    very outdated and requires quite a lot of work
  - Update `x11-toolkits/ocaml-labltk' to version 8.06.3

PR:		218333
Exp-run by:	antoine
2019-06-24 10:14:57 +00:00

54 lines
1.2 KiB
Makefile

# Created by: Jaap Boender <jaapb@kerguelen.org>
# $FreeBSD$
PORTNAME= text
PORTVERSION= 0.8
CATEGORIES= textproc
PKGNAMEPREFIX= ocaml-
MAINTAINER= ports@FreeBSD.org
COMMENT= OCaml library for dealing with text
BUILD_DEPENDS= ocamlbuild:devel/ocaml-ocamlbuild
USE_GITHUB= yes
GH_ACCOUNT= vbmithr
GH_PROJECT= ${PKGNAMEPREFIX}${PORTNAME}
USES= gmake
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix ${PREFIX} \
--destdir ${STAGEDIR}
USE_OCAML= yes
USE_OCAML_FINDLIB= yes
USE_OCAML_CAMLP4= yes
USE_OCAML_LDCONFIG= yes
USE_OCAMLFIND_PLIST= yes
SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR}
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
OPTIONS_DEFINE= PCRE
OPTIONS_DEFAULT= PCRE
PCRE_CONFIGURE_ENABLE= pcre
PCRE_BUILD_DEPENDS= ${SA_DIR}/pcre/pcre.a:devel/ocaml-pcre
PCRE_RUN_DEPENDS= ${SA_DIR}/pcre/pcre.a:devel/ocaml-pcre
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
do-configure:
cd ${WRKSRC}; ocaml setup.ml -configure ${CONFIGURE_ARGS}
do-build:
cd ${WRKSRC}; ocaml setup.ml -build
do-install:
${MKDIR} ${STAGEDIR}${OCAMLFIND_DESTDIR}
cd ${WRKSRC}; ocaml setup.ml -install
.include <bsd.port.mk>