aboutsummaryrefslogtreecommitdiffstats
path: root/net/socat/Makefile
blob: 81cc7f7f9d51cb466a41c26351b5913ed71aecfe (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   socat
PORTVERSION=    1.7.2.2
PORTREVISION=   1
CATEGORIES= net ipv6
MASTER_SITES=   http://www.dest-unreach.org/socat/download/ \
        CRITICAL

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

LICENSE=    GPLv2

GNU_CONFIGURE=  yes
USE_BZIP2=  yes
USE_RC_SUBR=    socat
USE_OPENSSL=    yes

PORTSCOUT=  skipv:2.0.0-b2

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

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

.if defined(WITH_OPENSSL_PORT)
CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
.endif

.if(${OSVERSION} >= 1000024)
CCISCLANG!= ${CC} --version | ${HEAD} -1 | ${GREP} 'clang'
.endif

.if ${CC} == clang || !empty(CCISCLANG)
CFLAGS+=    -Wno-unused-comparison
.endif

do-install:
.for f in filan procan socat
    ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
.endfor
    ${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${MAN1PREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

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

.include <bsd.port.mk>