openbsd-ports/lang/ocaml-camlp4/Makefile
chrisz 2dd0fda6b6 Update OCaml to 4.09
reviewed ports wise and help with @pkgpath, ok by sthen@
reviewed and help with bytecode-only plists, minor nits and ok by jca@
tested on sparc 64 by @jca
tested on aarch64 by Kurt Miller
tested on amd64 by me

Thanks for reviews and testing!
2019-09-26 09:46:09 +00:00

52 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.12 2019/09/26 09:46:11 chrisz Exp $
COMMENT = OCaml Preprocessor and Pretty-Printer
CATEGORIES = lang
V = 4.08+1
REVISION = 0
GH_ACCOUNT = ocaml
GH_PROJECT = camlp4
GH_TAGNAME = ${V}
WRKDIST = ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME:S/+/-/}
PKGNAME = ocaml-${DISTNAME}
# 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 = Yes
MODULES = lang/ocaml
WANTLIB += c m pthread
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>