summaryrefslogtreecommitdiffstats
path: root/irc/bobot++/Makefile
blob: d75bc59925c8ab7eaa4b6307c6c9805f4bf47948 (plain)
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.99.2
CATEGORIES=	irc
MASTER_SITES=	http://savannah.nongnu.org/download/bobotpp/stable.pkg/${PORTVERSION}/
DISTNAME=	Bobot++-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	An IRC bot written in C++

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
		LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"

.if defined(WITHOUT_GUILE)
CONFIGURE_ARGS+=	--disable-script
.else
LIB_DEPENDS+=	guile.15:${PORTSDIR}/lang/guile
CONFIGURE_ARGS+=	--enable-script
.endif

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

post-extract:
	@${FIND} ${WRKSRC}/scripts -name "*~" -delete

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

.include <bsd.port.mk>
OpenPOWER on IntegriCloud