summaryrefslogtreecommitdiff
path: root/net/socat/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/socat/Makefile')
-rw-r--r--net/socat/Makefile27
1 files changed, 16 insertions, 11 deletions
diff --git a/net/socat/Makefile b/net/socat/Makefile
index b6a7236dcb1f..afd1138ed25a 100644
--- a/net/socat/Makefile
+++ b/net/socat/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= socat
-PORTVERSION= 1.4.0.3
+PORTVERSION= 1.4.2.0
CATEGORIES= net
MASTER_SITES= http://www.dest-unreach.org/socat/download/
@@ -18,23 +18,28 @@ 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
+.if !defined(NOPORTDOCS)
PORTDOCS= EXAMPLES README SECURITY FAQ
+.endif
PLIST_FILES= bin/filan bin/procan bin/socat
+OPTIONS= SSL "OpenSSL support" on
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_SSL)
+# we can't use USE_OPENSSL=yes after including bsd.port.pre.mk
+.include "${PORTSDIR}/Mk/bsd.openssl.mk"
+.else
+CONFIGURE_ARGS+= --disable-openssl
+.endif
+
.if !defined(NOPORTDOCS)
post-install:
- @${MKDIR} ${DOCSDIR}
+ ${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>