1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/net/socat/Makefile
Emanuel Haupt f091a2b471 This patch will make the socat rc script more reliable. [1]
While here, use 'compiler' USES macro to determine compiler type.

PR:		185946 [1]
Submitted by:	feld
2014-01-27 11:50:59 +00:00

55 lines
1.1 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= socat
PORTVERSION= 1.7.2.2
PORTREVISION= 2
CATEGORIES= net ipv6
MASTER_SITES= http://www.dest-unreach.org/socat/download/ \
CRITICAL
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Multipurpose relay and more
LICENSE= GPLv2
USES= compiler
GNU_CONFIGURE= yes
USE_BZIP2= yes
USE_RC_SUBR= socat
USE_OPENSSL= yes
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 defined(WITH_OPENSSL_PORT)
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
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
.if ${ARCH} == "arm"
BROKEN= Does not configure on arm
.endif
.include <bsd.port.post.mk>