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

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

MAINTAINER= freebsd-ports@rikrose.net
COMMENT=    Multipurpose relay and more

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

GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAKE_ARGS=  CCOPT="${CFLAGS}"

.if defined(WITHOUT_SSL)
CONFIGURE_ARGS+=    --disable-openssl
.else
USE_OPENSSL=    yes
.endif

MAN1=       socat.1
PORTDOCS=   EXAMPLES README SECURITY FAQ
PLIST_FILES=    bin/filan bin/procan bin/socat

post-patch:
    @${CP} ${FILESDIR}/xio-socks.c ${WRKSRC}/xio-socks.c

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

.include <bsd.port.mk>