aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/bnbt/Makefile
blob: e16364f264823485ea3c67ea66cdaf4730864f0b (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
32
33
34
35
36
37
# New ports collection makefile for:    bnbt
# Date created:             Jan 31 2004
# Whom:                 Florent Thoumie <flz@xbsd.org>
#
# $FreeBSD$
#

PORTNAME=   bnbt
PORTVERSION=    7.5b
CATEGORIES= net
MASTER_SITES=   http://bnbt.go-dedicated.com/
DISTNAME=   ${PORTNAME}${PORTVERSION:S/.//}

MAINTAINER= flz@xbsd.org
COMMENT=    A C++ BitTorrent Tracker

USE_ZIP=    yes
WRKSRC=     ${WRKDIR}/${PORTNAME}/src

USE_GMAKE=  yes
USE_REINPLACE=  yes

post-patch:
    @${REINPLACE_CMD} -e 's|-O2 -w|${CFLAGS}| ; \
        s|LFLAGS = -pthread|LFLAGS = ${PTHREAD_LIBS}| ; \
        s|CFLAGS = -pthread|CFLAGS = ${PTHREAD_CFLAGS}|' ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bnbt ${PREFIX}/bin
    ${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/footer.html ${DATADIR}
    ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/header.html ${DATADIR}
    ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/lesser.txt ${DATADIR}
    ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/readme.txt ${DATADIR}
    ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/users.txt ${DATADIR}

.include <bsd.port.mk>