freebsd-ports/irc/bobot++/Makefile

64 lines
1.4 KiB
Makefile
Raw Normal View History

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$
#
PORTNAME= bobotpp
PORTVERSION= 2.2.3
2001-09-07 16:22:36 +02:00
CATEGORIES= irc
MASTER_SITES= SAVANNAH
2001-09-07 16:22:36 +02: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
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
2001-09-07 16:22:36 +02:00
GNU_CONFIGURE= yes
INFO= bobot++
PORTDOCS= *
PORTEXAMPLES= *
PLIST_FILES= bin/${PORTNAME}
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
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}
LIB_DEPENDS+= guile.21:${PORTSDIR}/lang/guile
CONFIGURE_ARGS+= --enable-scripting
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
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}
@(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}
@(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>