them all compiling. Tweaks include updating ocaml-batteries 2.3.1 -> 2.5.0 ocaml-lwt 2.4.8 -> 2.5.2 ocaml-ppx-tools 0.99.2 -> 4.03.0 ocaml-camlp4 4.02+6 -> 4.03+1 utop 1.15 -> 1.19.2 and fixes to coccinelle and wyrd to let them build on bytecode archs. Other necessary tweaks from the various homes of the projects. Everything still builds on amd64 (native and bytecode) and sparc64 (bytecode). ok anil@ sthen@ so final 4.3.0 tweaks can be done in-tree.
52 lines
1.0 KiB
Makefile
52 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.7 2016/06/24 15:59:12 krw Exp $
|
|
|
|
COMMENT = OCaml Preprocessor and Pretty-Printer
|
|
CATEGORIES = lang
|
|
|
|
V = 4.03+1
|
|
GH_ACCOUNT = ocaml
|
|
GH_PROJECT = camlp4
|
|
GH_TAGNAME = ${V}
|
|
WRKDIST = ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME:S/+/-/}
|
|
PKGNAME = ocaml-${DISTNAME}
|
|
REVISION = 0
|
|
# No dynlink compatibility between releases
|
|
PKGSPEC = ocaml-camlp4-=${V}
|
|
|
|
HOMEPAGE = https://github.com/ocaml/camlp4/
|
|
|
|
MAINTAINER = Christopher Zimmermann <chrisz@openbsd.org>
|
|
|
|
# LGPL >=2.1
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
MODULES = lang/ocaml
|
|
|
|
WANTLIB += c m
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
CONFIGURE_STYLE = simple
|
|
|
|
BUILD_DEPENDS = devel/ocaml-ocamlbuild
|
|
|
|
MAKE_ENV = DESTDIR=${WRKINST}
|
|
|
|
ALL_TARGET = byte
|
|
|
|
.include <bsd.port.arch.mk>
|
|
.if ${PROPERTIES:Mocaml_native}
|
|
ALL_TARGET += native
|
|
.endif
|
|
|
|
INSTALL_TARGET = install install-META
|
|
|
|
|
|
pre-install:
|
|
echo PKGDIR=${LOCALBASE}/lib/ocaml >>${WRKSRC}/config.sh
|
|
echo LIBDIR=${LOCALBASE}/lib/ocaml >>${WRKSRC}/config.sh
|
|
echo BINDIR=${LOCALBASE}/bin >>${WRKSRC}/config.sh
|
|
|
|
|
|
.include <bsd.port.mk>
|