aboutsummaryrefslogtreecommitdiffstats
path: root/irc/ninja/Makefile
blob: 8103d369572b9179aa88d10e37c1b422dadb52c0 (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
# Created by: Chris Piazza <cpiazza@FreeBSD.org>
# $FreeBSD$

PORTNAME=   ninja
PORTVERSION=    1.5.8.1
CATEGORIES= irc
MASTER_SITES=   http://www.bayofrum.net/dist/${PORTNAME}/

MAINTAINER= c.petrik.sosa@gmail.com
COMMENT=    Another ircII based irc client

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

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

LATEST_LINK=    irc-ninja

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

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

.include <bsd.port.mk>