aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--news/suck/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/news/suck/Makefile b/news/suck/Makefile
index b64c04d5b70f..23870b5929f6 100644
--- a/news/suck/Makefile
+++ b/news/suck/Makefile
@@ -7,6 +7,7 @@
PORTNAME= suck
PORTVERSION= 4.3.2
+PORTREVISION= 1
CATEGORIES= news
MASTER_SITES= http://www.sucknews.org/
@@ -53,9 +54,15 @@ post-patch:
${SED} -e "s=/usr/local/=${LOCALBASE}/=" \
${WRKSRC}/Makefile.in.sed > ${WRKSRC}/Makefile.in
@${MV} ${WRKSRC}/suck_config.h ${WRKSRC}/suck_config.h.sed
+.if defined(NEWSBIN) && !defined(SUCK_WITH_INN)
+ ${SED} -e "s=/usr/local/lib/suck=${PREFIX}/lib/suck=" \
+ -e "s=/usr/local/news/lib=${NEWSCTL}=" \
+ ${WRKSRC}/suck_config.h.sed > ${WRKSRC}/suck_config.h
+.else
${SED} -e "s=/usr/local/lib/suck=${PREFIX}/lib/suck=" \
-e "s=/usr/local/news/lib=${LOCALBASE}/news/lib=" \
${WRKSRC}/suck_config.h.sed > ${WRKSRC}/suck_config.h
+.endif
.if !defined(NOPORTDOCS)
post-install: