summaryrefslogtreecommitdiffstats
path: root/net/socat/Makefile
blob: e9d89a9c8e6142afd9602ab246a0046ac3064cfb (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
51
52
53
# Created by: ijliao
# $FreeBSD$

PORTNAME=	socat
PORTVERSION=	1.7.3.1
PORTREVISION=	0
CATEGORIES=	net ipv6
MASTER_SITES=	http://www.dest-unreach.org/socat/download/ \
		LOCAL/ehaupt

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	Multipurpose relay and more

LICENSE=	GPLv2

USES=		compiler cpe tar:bzip2
GNU_CONFIGURE=	yes
USE_RC_SUBR=	socat
USE_OPENSSL=	yes

CPE_VENDOR=	dest-unreach

PORTSCOUT=	skipv:2.0.0-b2

PLIST_FILES=	bin/filan bin/procan bin/socat man/man1/socat.1.gz
PORTDOCS=	EXAMPLES README SECURITY FAQ

OPTIONS_DEFINE=	DOCS

.include <bsd.port.pre.mk>

.if ${SSL_DEFAULT} != base
CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
.endif

.if ${COMPILER_TYPE} == "clang"
CFLAGS+=	-Wno-unused-comparison
.endif

do-install:
.for f in filan procan socat
	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
.endfor
	${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.if ${ARCH} == "arm"
BROKEN=		Does not configure on arm
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud