aboutsummaryrefslogtreecommitdiffstats
path: root/irc/bobot++/Makefile
blob: 5a555fe80493a98ad55eb19ed101ad460d8dd6ca (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
38
39
40
41
42
43
44
45
46
47
# ex:ts=8
# New ports collection makefile for:    bobot++
# Date created:         Sep 7, 2001
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   bobot++
PORTVERSION=    1.97
CATEGORIES= irc
MASTER_SITES=   http://pltplp.net/bobot++/archive/
DISTNAME=   ${PORTNAME}.${PORTVERSION}
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org

GNU_CONFIGURE=  yes

.if defined(WITH_GUILE)
LIB_DEPENDS+=   guile:${PORTSDIR}/lang/guile
GUILE_CONFIG=   ${LOCALBASE}/bin/guile-config
CONFIGURE_ARGS+=    --enable-script
.endif

.if defined(WITH_TELNET)
CONFIGURE_ARGS+=    --enable-telnetserver
.endif

post-patch:
    @${PERL} -pi -e "s,%%GUILE_CONFIG%%,${GUILE_CONFIG},g ; \
        s,%%PTHREAD_CFLAGS%%,${PTHREAD_CFLAGS},g ; \
        s,%%PTHREAD_LIBS%%,${PTHREAD_LIBS},g" ${WRKSRC}/configure

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bobot++ ${PREFIX}/bin

.if !defined(NOPORTDOCS)
post-install:
    @${MKDIR} ${DOCSDIR}
    ${CP} ${WRKSRC}/doc/* ${DOCSDIR}
    @${MKDIR} ${DATADIR}
    ${CP} -R ${WRKSRC}/examples ${DATADIR}
    ${CP} -R ${WRKSRC}/scripts ${DATADIR}
.endif

.include <bsd.port.mk>