aboutsummaryrefslogtreecommitdiffstats
path: root/www/ocaml-net/Makefile
blob: f2147dd10e16228642aca7ab4acc9288477a50cc (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
53
54
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:   ocaml-net
# Date created:        01 March 2003
# Whom:                Stephane Legrand <stephane@freebsd.org>
#
# $FreeBSD$
#

PORTNAME=   net
PORTVERSION=    2.2.9
PORTREVISION=   1
CATEGORIES= www
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ocamlnet
PKGNAMEPREFIX=  ocaml-
DISTNAME=   ocaml${PORTNAME}-${PORTVERSION}

MAINTAINER= manfred.lotz@yahoo.de
COMMENT=    OCaml modules for Internet applications

BUILD_DEPENDS=  ${SA_DIR}/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre
RUN_DEPENDS=    ${SA_DIR}/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre

CONFLICTS=  ocaml-equeue-2* ocaml-netclient-0*

USE_GMAKE=  yes
USE_OCAML=  yes
USE_OCAML_FINDLIB=  yes
HAS_CONFIGURE=  yes

ALL_TARGET= all opt

PLIST_FILES=    bin/netplex-admin \
        bin/ocamlrpcgen

DOCSDIR=    ${PREFIX}/share/doc/ocaml/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR=    ${PREFIX}/share/examples/ocaml/${PKGNAMEPREFIX}${PORTNAME}
SA_DIR=     ${LOCALBASE}/${OCAML_SITELIBDIR}

.if !defined(NOPORTDOCS)
PORTDOCS=   *
PORTEXAMPLES=   *
.endif

OCAML_PKGDIRS=  netsys netshm equeue shell netstring rpc-generator \
        rpc pop smtp netclient netcgi1 netcgi2 cgi netplex \
        netcgi2-plex

post-install:

.for pkg in ${OCAML_PKGDIRS}
    @${FIND} ${PREFIX}/lib/ocaml/site-lib/${pkg} -type f | \
        ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
.endfor

.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}/
    @(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} \* ${DOCSDIR}/)

    @${MKDIR} ${EXAMPLESDIR}/
    @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/)
.endif

.include <bsd.port.mk>