Lines 6-26
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= ninja |
8 |
PORTNAME= ninja |
9 |
PORTVERSION= 1.2 |
9 |
PORTVERSION= 1.5.1 |
10 |
CATEGORIES= irc |
10 |
CATEGORIES= irc |
11 |
MASTER_SITES= ftp://ninja.qoop.org/ninja/unstable/ |
11 |
MASTER_SITES= ftp://ninja.qoop.org/ninja/sources/ |
12 |
DISTFILES= ${DISTNAME}-src.tar.gz |
12 |
DISTNAME= ${PORTNAME}-${PORTVERSION}-src |
13 |
|
13 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
14 |
MAINTAINER= ports@FreeBSD.org |
15 |
|
15 |
|
|
|
16 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
17 |
|
16 |
GNU_CONFIGURE= yes |
18 |
GNU_CONFIGURE= yes |
17 |
PLIST_SUB= VERSION="${PORTVERSION}" |
19 |
CONFIGURE_ENV= IRCLIB="${IRCLIB}" |
|
|
20 |
|
21 |
IRCLIB= ${PREFIX}/share/ninja |
18 |
|
22 |
|
19 |
pre-patch: |
23 |
pre-patch: |
20 |
@${CP} ${WRKSRC}/config/configure ${WRKSRC} |
24 |
@${CP} ${WRKSRC}/config/configure ${WRKSRC} |
21 |
|
25 |
|
22 |
post-patch: |
26 |
post-patch: |
23 |
@${SED} -e s#__PREFIX__#$(PREFIX)#g $(WRKSRC)/include/config.h.dist > $(WRKSRC)/include/config.h.dist.new |
27 |
@${PERL} -e "s|%%IRCLIB%%|${IRCLIB}|g" ${WRKSRC}/include/config.h.dist |
24 |
@${MV} $(WRKSRC)/include/config.h.dist.new $(WRKSRC)/include/config.h.dist |
28 |
|
|
|
29 |
do-install: |
30 |
${INSTALL_PROGRAM} ${WRKSRC}/source/ninja ${PREFIX}/bin |
31 |
${INSTALL_PROGRAM} ${WRKSRC}/source/wserv ${PREFIX}/bin |
32 |
@${MKDIR} ${IRCLIB}/translation |
33 |
${INSTALL_DATA} ${WRKSRC}/translation/* ${IRCLIB}/translation |
25 |
|
34 |
|
26 |
.include <bsd.port.mk> |
35 |
.include <bsd.port.mk> |