1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/devel/ocaml-camlp5/Makefile
Mathieu Arnold 21a283f3be Remove UNIQUENAME and LATEST_LINK.
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now,
we won't have conflicts there.

Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer
is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel
has the correct PKGNAME anyway.

Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called
OPTIONS_FILE now.)

Reviewed by:	antoine, bapt
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3336
2015-08-17 14:20:40 +00:00

62 lines
1.5 KiB
Makefile

# Created by: Hirohisa Yamaguchi <umq@ueo.co.jp>
# $FreeBSD$
PORTNAME= camlp5
PORTVERSION= 6.13
CATEGORIES= devel
MASTER_SITES= http://camlp5.gforge.inria.fr/distrib/src/ \
http://cristal.inria.fr/~ddr/camlp5/distrib/src/ \
http://pauillac.inria.fr/~ddr/camlp5/distrib/src/
PKGNAMEPREFIX= ocaml-
DIST_SUBDIR= ${PKGBASE}
PATCH_SITES= ${MASTER_SITES}
MAINTAINER= ports@FreeBSD.org
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
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/camlp5*.opt
.include <bsd.port.mk>