aboutsummaryrefslogtreecommitdiff
path: root/devel/cgit/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/cgit/Makefile')
-rw-r--r--devel/cgit/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/devel/cgit/Makefile b/devel/cgit/Makefile
index 423cd4bc0977..ad8a1755191e 100644
--- a/devel/cgit/Makefile
+++ b/devel/cgit/Makefile
@@ -33,6 +33,7 @@ SUB_LIST+= PORTNAME=${PORTNAME}
PLIST_SUB+= PORTNAME=${PORTNAME} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
post-extract:
@${RMDIR} ${WRKSRC}/git
@@ -44,6 +45,11 @@ post-patch:
${WRKSRC}/git/Makefile
@${REINPLACE_CMD} -e 's,/usr,${PREFIX},g' \
-e 's,-Igit,-I.,g' ${WRKSRC}/Makefile
+.if empty(ICONV_LIB)
+ @${REINPLACE_CMD} -e '/NEEDS_LIBICONV = YesPlease/d' \
+ -e '/OLD_ICONV = YesPlease/d' \
+ ${WRKSRC}/git/config.mak.uname
+.endif
post-install:
@${MKDIR} /var/cache/${PORTNAME}
@@ -54,4 +60,4 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}rc.5.txt ${DOCSDIR}/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>