summaryrefslogtreecommitdiff
path: root/irc/ninja/Makefile
blob: 69f95129895a03b9512370b8013248a42a270cdb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# New ports collection makefile for: 	Ninja-irc
# Date created:	 	10 April 1999
# Whom:			Chris Piazza <cpiazza@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	ninja
PORTVERSION=	1.5.5
CATEGORIES=	irc
MASTER_SITES=	ftp://ninja.qoop.org/ninja/sources/

MAINTAINER=	anders@hack.org

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	IRCLIB="${IRCLIB}"

IRCLIB=		${PREFIX}/share/ninja

post-patch:
	@${PERL} -e "s|%%IRCLIB%%|${IRCLIB}|g" ${WRKSRC}/include/config.h.dist

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/ninja ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/ninjawserv ${PREFIX}/bin
	@${MKDIR} ${IRCLIB}/translation
	${INSTALL_DATA} ${WRKSRC}/translation/* ${IRCLIB}/translation

.include <bsd.port.mk>