8c905c905a
Added a note to DESCR: this package is obsolete and users should switch to camlp5 or use ppx.
33 lines
934 B
Makefile
33 lines
934 B
Makefile
# $NetBSD: Makefile,v 1.22 2020/01/17 09:44:32 jaapb Exp $
|
|
|
|
GITHUB_PROJECT= camlp4
|
|
DISTNAME= ${GITHUB_PROJECT}-4.08+1
|
|
CATEGORIES= lang
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=ocaml/}
|
|
|
|
MAINTAINER= jaapb@NetBSD.org
|
|
HOMEPAGE= https://github.com/ocaml/camlp4/
|
|
COMMENT= Preprocessor and pretty printer for OCaml
|
|
LICENSE= gnu-lgpl-v2
|
|
|
|
HAS_CONFIGURE= yes
|
|
WRKSRC= ${WRKDIR}/camlp4-4.08-1
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
BROKEN= "Obsolete package, no longer supported by OCaml 4.09"
|
|
|
|
.include "../../mk/ocaml.mk"
|
|
|
|
BUILD_TARGET= byte camlp4/META
|
|
.if ${OCAML_USE_OPT_COMPILER} == "yes"
|
|
BUILD_TARGET+= native
|
|
.endif
|
|
INSTALLATION_DIRS+= ${OCAML_SITELIBDIR}/camlp4
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && BINDIR="${DESTDIR}${PREFIX}/bin" \
|
|
LIBDIR="${DESTDIR}${PREFIX}/lib/ocaml" ${SH} build/install.sh
|
|
${INSTALL_DATA} ${WRKSRC}/camlp4/META ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/camlp4
|
|
|
|
.include "../../devel/ocamlbuild/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|