2001-09-07 16:22:36 +02:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: bobot++
|
|
|
|
# Date created: Sep 7, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2005-07-03 15:33:50 +02:00
|
|
|
PORTNAME= bobotpp
|
2011-08-08 17:54:13 +02:00
|
|
|
PORTVERSION= 2.2.3
|
2001-09-07 16:22:36 +02:00
|
|
|
CATEGORIES= irc
|
2011-08-08 17:54:13 +02:00
|
|
|
MASTER_SITES= SAVANNAH
|
2001-09-07 16:22:36 +02:00
|
|
|
|
2010-11-22 19:17:39 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:17:25 +01:00
|
|
|
COMMENT= An IRC bot written in C++
|
2001-09-07 16:22:36 +02:00
|
|
|
|
2011-08-08 17:54:13 +02:00
|
|
|
LICENSE= GPLv2 GPLv3
|
|
|
|
LICENSE_COMB= dual
|
|
|
|
|
2012-06-13 07:13:04 +02:00
|
|
|
OPTIONS_DEFINE= GUILE
|
|
|
|
OPTIONS_DEFAULT= GUILE
|
|
|
|
GUILE_DESC= Use Guile scripts
|
2011-08-08 17:54:13 +02:00
|
|
|
|
2001-09-07 16:22:36 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-08-08 17:54:13 +02:00
|
|
|
|
|
|
|
INFO= bobot++
|
|
|
|
PORTDOCS= *
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2011-08-08 17:54:13 +02:00
|
|
|
|
2012-06-13 07:13:04 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2001-09-07 16:22:36 +02:00
|
|
|
|
2012-06-13 07:13:04 +02:00
|
|
|
.if ${PORT_OPTIONS:MGUILE}
|
2011-07-31 17:07:08 +02:00
|
|
|
LIB_DEPENDS+= guile.21:${PORTSDIR}/lang/guile
|
2007-07-27 17:18:47 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-scripting
|
2011-08-08 17:54:13 +02:00
|
|
|
PLIST_FILES+= share/guile/site/bobotpp/bot.scm \
|
|
|
|
%%DATADIR%%/scripts/bobot-utils.scm
|
|
|
|
PLIST_DIRS+= %%DATADIR%%/scripts \
|
|
|
|
%%DATADIR%% \
|
|
|
|
share/guile/site/bobotpp
|
|
|
|
PLIST_DIRSTRY+= share/guile/site
|
2012-06-13 07:13:04 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-scripting
|
2001-09-07 16:22:36 +02:00
|
|
|
.endif
|
|
|
|
|
2011-08-08 17:54:13 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/test/s|==|=|g' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|std::snprintf|snprintf|g' ${WRKSRC}/source/Bot.C
|
2001-09-07 16:22:36 +02:00
|
|
|
|
|
|
|
post-install:
|
2012-06-13 07:13:04 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2001-09-07 16:22:36 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2011-08-08 17:54:13 +02:00
|
|
|
@(cd ${WRKSRC}/documentation && ${INSTALL_DATA} *.html ${DOCSDIR})
|
|
|
|
.endif
|
2012-06-13 07:13:04 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2003-05-02 05:58:31 +02:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2011-08-08 17:54:13 +02:00
|
|
|
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
|
2001-09-07 16:22:36 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-13 07:13:04 +02:00
|
|
|
.include <bsd.port.mk>
|