summaryrefslogtreecommitdiff
path: root/net/ocamlnet/Makefile
blob: b84fa14f30b5befc31568dc93bd8c9a580a7fde9 (plain)
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
# $NetBSD: Makefile,v 1.13 2013/06/24 15:11:38 jperkin Exp $
#

DISTNAME=		ocamlnet-3.6.5
CATEGORIES=		net
MASTER_SITES=		http://download.camlcity.org/download/

MAINTAINER=		jaapb@kerguelen.org
HOMEPAGE=		http://projects.camlcity.org/projects/ocamlnet.html
COMMENT=		Library focusing on application-level network protocols (OCaml)
LICENSE=		zlib AND gnu-gpl-v2

MAKE_JOBS_SAFE=		no

DEPENDS+=		ocaml-findlib-[0-9]*:../../devel/ocaml-findlib

HAS_CONFIGURE=		yes
CONFIGURE_ARGS+=	-without-nethttpd -without-rpc-auth-dh -disable-gtk2 \
			-disable-tcl -disable-apache -enable-pcre
USE_TOOLS+=		gmake
BUILD_TARGET=		all

.include "../../mk/bsd.prefs.mk"

PLIST_VARS=		opt ssl xti
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
    (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
BUILD_TARGET+=		opt
PLIST.opt=		yes
.endif
.if ${OPSYS} == "SunOS"
PLIST.xti=		yes
.endif

SUBPKGDIRS=		equeue netcgi2-plex netplex pop rpc-ssl equeue-ssl \
			netclient netshm rpc shell netcamlbox netgssapi \
			netstring rpc-auth-local smtp netcgi2 netmulticore \
			netsys rpc-generator rpc-xti

INSTALLATION_DIRS=	lib/ocaml/site-lib

pre-install:
.for i in ${SUBPKGDIRS};
	${RM} -rf ${DESTDIR}/${PREFIX}/lib/ocaml/site-lib/${i}
.endfor

.include "options.mk"
.include "../../devel/pcre-ocaml/buildlink3.mk"
.include "../../lang/ocaml/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"