freebsd-ports/net/socat/Makefile
Emanuel Haupt 794b49d028 Rework previous commit. The problem is not clang 3.3 but rather the fact that
with 1000024 CC became 'cc' rather than 'clang'.
2013-05-28 09:27:19 +00:00

53 lines
1 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= socat
PORTVERSION= 1.7.2.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
GNU_CONFIGURE= yes
USE_BZIP2= yes
USE_RC_SUBR= socat
USE_OPENSSL= yes
MAKE_JOBS_SAFE= 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(${OSVERSION} >= 1000024)
CCISCLANG!= ${CC} --version | ${HEAD} -1 | ${GREP} 'clang'
.endif
.if ${CC} == clang || defined(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>