aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ocaml-ounit/Makefile
blob: 1fb3eb3390b8586f30293093eb720e1ea64e73f4 (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
# Created by: Meikel Brandmeyer <ocaml-ounit-port@kotka.de>
# $FreeBSD$

PORTNAME=   ounit
PORTVERSION=    1.0.3
PORTREVISION=   1
CATEGORIES= devel
MASTER_SITES=   http://www.xs4all.nl/~mmzeeman/ocaml/
PKGNAMEPREFIX=  ocaml-

MAINTAINER= ocaml-ounit-port@kotka.de
COMMENT=    OCaml unit test framework

BUILD_DEPENDS=  ocamlc:${PORTSDIR}/lang/ocaml \
        ocamlfind:${PORTSDIR}/devel/ocaml-findlib

USE_GMAKE=  yes

DOCSDIR=    ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
PORTDOCS=   README style.css *.html

ALL_TARGET= all allopt testall doc

MAKE_ENV=   OCAMLFIND_DESTDIR=${PREFIX}/lib/ocaml/site-lib

NO_STAGE=   yes
post-install:
.if !defined(NOPORTDOCS)
    @${ECHO_MSG} "==>  Installing port documentation for ${PKGORIGIN}..."
    @${MKDIR} ${DOCSDIR}
    @( cd ${WRKSRC}; ${INSTALL_DATA} README ${DOCSDIR} )
    @( cd ${WRKSRC}/doc; \
       ${INSTALL_DATA} style.css ${DOCSDIR}; \
       for f in `${FIND} . -type f -name \\*.html -print`; do \
        ${INSTALL_DATA} $${f} ${DOCSDIR}; \
       done )
.endif

.include <bsd.port.mk>