blob: b3868319c4aa541ba7df33455d498743e00ac913 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# $NetBSD: Makefile,v 1.7 2014/10/09 20:39:27 jaapb Exp $
DISTNAME= 4.02.0+1
PKGNAME= camlp4-${DISTNAME}
CATEGORIES= lang
MASTER_SITES= https://github.com/ocaml/camlp4/archive/
DIST_SUBDIR= ocaml-camlp4
MAINTAINER= jaapb@NetBSD.org
HOMEPAGE= http://github.com/ocaml/camlp4/
COMMENT= Preprocessor and pretty printer for OCaml
LICENSE= gnu-lgpl-v2
HAS_CONFIGURE= yes
WRKSRC= ${WRKDIR}/camlp4-4.02.0-1
MAKE_JOBS_SAFE= no
.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 "../../mk/bsd.pkg.mk"
|