diff options
Diffstat (limited to 'irc/ninja/Makefile')
-rw-r--r-- | irc/ninja/Makefile | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/irc/ninja/Makefile b/irc/ninja/Makefile index 5e6950118b85..f486f25c89d9 100644 --- a/irc/ninja/Makefile +++ b/irc/ninja/Makefile @@ -6,21 +6,30 @@ # PORTNAME= ninja -PORTVERSION= 1.2 +PORTVERSION= 1.5.1 CATEGORIES= irc -MASTER_SITES= ftp://ninja.qoop.org/ninja/unstable/ -DISTFILES= ${DISTNAME}-src.tar.gz +MASTER_SITES= ftp://ninja.qoop.org/ninja/sources/ +DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= ports@FreeBSD.org +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + GNU_CONFIGURE= yes -PLIST_SUB= VERSION="${PORTVERSION}" +CONFIGURE_ENV= IRCLIB="${IRCLIB}" + +IRCLIB= ${PREFIX}/share/ninja pre-patch: @${CP} ${WRKSRC}/config/configure ${WRKSRC} post-patch: - @${SED} -e s#__PREFIX__#$(PREFIX)#g $(WRKSRC)/include/config.h.dist > $(WRKSRC)/include/config.h.dist.new - @${MV} $(WRKSRC)/include/config.h.dist.new $(WRKSRC)/include/config.h.dist + @${PERL} -e "s|%%IRCLIB%%|${IRCLIB}|g" ${WRKSRC}/include/config.h.dist + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/source/ninja ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/source/wserv ${PREFIX}/bin + @${MKDIR} ${IRCLIB}/translation + ${INSTALL_DATA} ${WRKSRC}/translation/* ${IRCLIB}/translation .include <bsd.port.mk> |