aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ocaml-equeue/Makefile
blob: 330203bd5919179d4e1828621d5db9ebe9d7163a (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
# New ports collection makefile for:   ocaml-equeue
# Date created:        21 July 2004
# Whom:                David JULIEN
#
# $FreeBSD$
#

PORTNAME=   equeue
PORTVERSION=    2.0.1
CATEGORIES= devel
MASTER_SITES=   http://www.ocaml-programming.de/packages/
PKGNAMEPREFIX=  ocaml-
DISTNAME=   ${PORTNAME}-${PORTVERSION}

MAINTAINER= david.julien@gmail.com
COMMENT=    The Equeue library for OCaml

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

WRKSRC=     ${WRKDIR}/${DISTNAME}

USE_GMAKE=  yes
MAKE_FLAGS= PACKAGES=   # If defined, would be used by ocamlfind
HAS_CONFIGURE=  yes

ALL_TARGET= all opt

PKGDEINSTALL=   ${PKGINSTALL}

.if defined(WITH_EQUEUE_TCL)
BUILD_DEPENDS+=     ${LOCALBASE}/include/tcl8.4:${PORTSDIR}/lang/tcl84
CONFIGURE_ARGS+=    -with-equeue-tcl -equeue-tcl-defs "-I${LOCALBASE}/include/tcl8.4" -equeue-tcl-libs "-L${LOCALBASE}/lib -ltcl84"
PLIST_SUB+=     TCL=""
.else
PLIST_SUB+=     TCL="@comment "
.endif

post-install:
    PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
    @${MKDIR} ${EXAMPLESDIR}
    ${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>