freebsd-ports/devel/ocaml-camlp5/Makefile
2014-09-03 13:55:14 +00:00

59 lines
1.4 KiB
Makefile

# Created by: Hirohisa Yamaguchi <umq@ueo.co.jp>
# $FreeBSD$
PORTNAME= camlp5
PORTVERSION= 6.11
CATEGORIES= devel
MASTER_SITES= http://cristal.inria.fr/~ddr/camlp5/distrib/src/ \
http://pauillac.inria.fr/~ddr/camlp5/distrib/src/
PKGNAMEPREFIX= ocaml-
DIST_SUBDIR= ${UNIQUENAME}
PATCH_SITES= ${MASTER_SITES}
MAINTAINER= umq@ueo.co.jp
COMMENT= Preprocessor-pretty-printer of OCaml
LICENSE= INRIA
LICENSE_NAME= INRIA permissive license with copyright notice requirements
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USES= tar:tgz
USE_OCAML= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix ${PREFIX}
OPTIONS_SINGLE= MODE
OPTIONS_SINGLE_MODE= TRANSITIONAL STRICT
OPTIONS_DEFAULT= STRICT
TRANSITIONAL_DESC= Compatible syntax tree with old versions
STRICT_DESC= New syntax tree quotations kit
OPTIONS_DEFINE= DOCS
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
PORTDOCS= CHANGES DEVEL ICHANGES INSTALL MODE README UPGRADING
MAKE_JOBS_UNSAFE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MTRANSITIONAL}
CONFIGURE_ARGS+= --transitional
.elif ${PORT_OPTIONS:MSTRICT}
CONFIGURE_ARGS+= --strict
.endif
ALL_TARGET= world.opt
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
${INSTALL_DATA} ${WRKSRC}/etc/META \
${STAGEDIR}${PREFIX}/lib/ocaml/camlp5
.include <bsd.port.mk>