summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/iscsi-target/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/iscsi-target/Makefile b/net/iscsi-target/Makefile
index 77bffaf5cfbc..41e8a870ed8e 100644
--- a/net/iscsi-target/Makefile
+++ b/net/iscsi-target/Makefile
@@ -24,6 +24,12 @@ MAN8= iscsi-target.8
USE_RC_SUBR= iscsi_target
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+IGNORE= needs PRIu64 definition in <inttypes.h>
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|_LDFLAGS= -pthread|_LDFLAGS= ${PTHREAD_CFLAGS}|' ${WRKSRC}/Makefile.in
@@ -51,4 +57,4 @@ post-install:
fi
.endfor
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>