aboutsummaryrefslogtreecommitdiff
path: root/irc/bobot++/Makefile
blob: be823e318162bfb60ebf0a9f47c6a17fd9b4869c (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
48
# 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
USE_REINPLACE=	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:
	@${REINPLACE_CMD} -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>