aboutsummaryrefslogtreecommitdiff
path: root/security/srp
diff options
context:
space:
mode:
authorFrank J. Laszlo <laszlof@FreeBSD.org>2007-07-15 15:20:02 +0000
committerFrank J. Laszlo <laszlof@FreeBSD.org>2007-07-15 15:20:02 +0000
commitc04e2cd86aa771a8c0449e00f1960c022cf37ddf (patch)
tree781e71c137adfd0707f8c9e410980c5206eae852 /security/srp
parente42c4099446c1777455e17049db2955d3df2173a (diff)
downloadports-c04e2cd86aa771a8c0449e00f1960c022cf37ddf.tar.gz
ports-c04e2cd86aa771a8c0449e00f1960c022cf37ddf.zip
- Fix build on -CURRENT (gcc 4.2.0 import)
Reported By: pav
Notes
Notes: svn path=/head/; revision=195661
Diffstat (limited to 'security/srp')
-rw-r--r--security/srp/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/security/srp/Makefile b/security/srp/Makefile
index f3531e906256..5d63042accdc 100644
--- a/security/srp/Makefile
+++ b/security/srp/Makefile
@@ -22,9 +22,14 @@ CONFIGURE_ARGS= --with-openssl=/usr \
--with-zlib \
--enable-loginf
+.include <bsd.port.pre.mk>
+
post-patch:
@${GREP} -slR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|malloc\.h|stdlib\.h|g'
+.if ${OSVERSION} >= 700042
+ @${REINPLACE_CMD} -e 's/^struct.*\*sgetspent.*(const.*//' ${WRKSRC}/base/lib/shadow_.h
+.endif
post-install:
.if !defined(NOPORTDOCS)
@@ -33,4 +38,4 @@ post-install:
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>