aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ocaml-camlp5/Makefile
blob: f91fa05aa7f504153bc0cc7220cc6e277e81b647 (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Created by: Hirohisa Yamaguchi <umq@ueo.co.jp>
# $FreeBSD$

PORTNAME=   camlp5
PORTVERSION=    6.16
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

ALL_TARGET= world.opt
MAKE_JOBS_UNSAFE=   yes
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

STRICT_CONFIGURE_ON=    --strict
TRANSITIONAL_CONFIGURE_ON=  --transitional

post-install:
    ${INSTALL_DATA} ${WRKSRC}/etc/META ${STAGEDIR}${PREFIX}/lib/ocaml/camlp5
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/camlp5*.opt ${STAGEDIR}${PREFIX}/${OCAML_LIBDIR}/camlp5/*.o

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>