diff options
-rw-r--r-- | news/newscache/Makefile | 2 | ||||
-rw-r--r-- | news/newscache/files/patch-NewsCache.cc | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/news/newscache/Makefile b/news/newscache/Makefile index e5c964e57617..ffef10ece0e3 100644 --- a/news/newscache/Makefile +++ b/news/newscache/Makefile @@ -20,6 +20,7 @@ LIB_DEPENDS= socket[+][+].1:${PORTSDIR}/net/libsocket++ USE_AUTOHEADER= yes USE_AUTOMAKE_VER= 15 USE_GETOPT_LONG= yes +USE_REINPLACE= yes AUTOMAKE_ARGS= --add-missing CONFIGURE_ENV= CPPFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" @@ -29,6 +30,7 @@ MAN8= newscache.8 newscacheclean.8 updatenews.8 INFO= NewsCache post-patch: + ${REINPLACE_CMD} -e "s,-pedantic,," ${WRKSRC}/configure.in cd ${WRKSRC}; ${ACLOCAL} .include <bsd.port.mk> diff --git a/news/newscache/files/patch-NewsCache.cc b/news/newscache/files/patch-NewsCache.cc new file mode 100644 index 000000000000..71366e11c3a5 --- /dev/null +++ b/news/newscache/files/patch-NewsCache.cc @@ -0,0 +1,12 @@ +--- src/NewsCache.cc.orig Mon Jan 19 13:52:04 2004 ++++ src/NewsCache.cc Mon Jan 19 13:52:55 2004 +@@ -24,7 +24,9 @@ + */ + #include "config.h" + ++#ifndef __FreeBSD__ + #include <crypt.h> ++#endif + #include <ctype.h> + #include <unistd.h> + #include <string.h> |