aboutsummaryrefslogtreecommitdiffstats
path: root/net/socat/Makefile
blob: bce20a7e18ff30ab5c7f9db1f1e487f9025f4361 (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
# ex:ts=8
# Ports collection makefile for:    socat
# Date created:         May 14, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   socat
PORTVERSION=    1.5.0.0
CATEGORIES= net
MASTER_SITES=   http://www.dest-unreach.org/socat/download/

MAINTAINER= nivo+kw+ports.bfa274@is-root.com
COMMENT=    Multipurpose relay and more

#WRKSRC=        ${WRKDIR}/${PORTNAME}-${PORTVERSION:R:R}
USE_BZIP2=  yes

GNU_CONFIGURE=  yes

MAN1=       socat.1

.if !defined(NOPORTDOCS)
PORTDOCS=   EXAMPLES README SECURITY FAQ
.endif

PLIST_FILES=    bin/filan bin/procan bin/socat

OPTIONS=    SSL "OpenSSL support" on

.include <bsd.port.pre.mk>

.if defined(WITH_SSL)
# we can't use USE_OPENSSL=yes after including bsd.port.pre.mk
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
.else
CONFIGURE_ARGS+=    --disable-openssl
.endif

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.post.mk>