1415aa2a24
a new patch to include a -pkgsrc-runtime compilation option. This option is needed to compile devel/pcre-ocaml due to buildlink shenanigans (see http://mail-index.netbsd.org/pkgsrc-users/2014/12/18/msg020800.html ) Changes: (Changes that can break existing programs are marked with a "*") Standard library: * Add optional argument ?limit to Arg.align. - Bug in Makefile.nt: won't stop on error - Improve MSVC build - Configure doesn't detect features correctly on Haiku - Non-exhaustive matching warning message for open types is confusing - fix quadratic-time algorithm in Consistbl.extract. - Add stack overflow handling for native code (OpenBSD i386 and amd64) - broken semantics of %(%) when substitued by a box - legacy support for %.10s - better documentation of flag # in format strings - Bytes and CamlinternalFormat missing from threads stdlib.cma - -dsource omits parens for `List ((`String "A")::[]) in patterns - __MODULE__ aborts the compiler if the module name cannot be inferred - Debug section is sometimes not readable when using -pack - Missing command line options for ocamldoc - fix race condition when retrieving backtraces - String.sub throws Invalid_argument("Bytes.sub") - Fix ocamldebug module source lookup - Inclusion of packs failing to run module initializers - infinite loop in Mtype.remove_aliases - compilation fails with Env.Error(_) - -short-paths and signature inclusion errors - Fatal error with recursive modules - Recursive module containing alias causes Segmentation fault - Some bugs in generative functors - ocamldep support for "-open M" - Code generation errors for ARM - Improve Windows (MSVC and mingw) build - ocamlbuild: add -bin-annot when using -pack - Fatal error when tracing a function with abstract type - ocamlbuild: add an -ocamlmklib option to change the ocamlmklib command
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
# $NetBSD: buildlink3.mk,v 1.31 2015/01/20 14:12:25 jaapb Exp $
|
|
|
|
BUILDLINK_TREE+= ocaml
|
|
|
|
.if !defined(OCAML_BUILDLINK3_MK)
|
|
OCAML_BUILDLINK3_MK:=
|
|
|
|
BUILDLINK_API_DEPENDS.ocaml+= ocaml>=3.08.2
|
|
BUILDLINK_ABI_DEPENDS.ocaml+= ocaml>=4.02.1
|
|
BUILDLINK_PKGSRCDIR.ocaml?= ../../lang/ocaml
|
|
#BUILDLINK_DEPMETHOD.ocaml?= build
|
|
|
|
BUILDLINK_PASSTHRU_DIRS+= ${BUILDLINK_PREFIX.ocaml}/lib/ocaml
|
|
|
|
.include "../../mk/bsd.fast.prefs.mk"
|
|
.if ${OPSYS} == "Darwin"
|
|
INSTALL_UNSTRIPPED= yes
|
|
.endif
|
|
|
|
BUILDLINK_TARGETS+= ocaml-wrappers
|
|
OCAML_WRAPPERS= ocamlc ocamlc.opt ocamlcp ocamlmklib ocamlmktop \
|
|
ocamlopt ocamlopt.opt
|
|
OCAMLBIN_WRAPPERS= ocaml
|
|
|
|
.PHONY: ocaml-wrappers
|
|
ocaml-wrappers:
|
|
${RUN} \
|
|
for w in ${OCAML_WRAPPERS}; do \
|
|
${SED} -e 's|@SH@|'${SH:Q}'|g' \
|
|
-e 's|@OCAML_PREFIX@|${BUILDLINK_PREFIX.ocaml}|g' \
|
|
-e 's|@CFLAGS@|'${CFLAGS:Q}'|g' \
|
|
-e 's|@LDFLAGS@|'${LDFLAGS:Q}'|g' \
|
|
< ${.CURDIR}/../../lang/ocaml/files/wrapper.sh \
|
|
> ${BUILDLINK_DIR}/bin/"$$w"; \
|
|
${CHMOD} +x ${BUILDLINK_DIR}/bin/"$$w"; \
|
|
done
|
|
${RUN} \
|
|
for w in ${OCAMLBIN_WRAPPERS}; do \
|
|
${LN} -s ${BUILDLINK_PREFIX.ocaml}/bin/"$$w" \
|
|
${BUILDLINK_DIR}/bin/"$$w"; \
|
|
done
|
|
|
|
.include "../../mk/termcap.buildlink3.mk"
|
|
|
|
.endif # OCAML_BUILDLINK3_MK
|
|
|
|
BUILDLINK_TREE+= -ocaml
|