freebsd-ports/irc/bobot++/Makefile
Ying-Chieh Liao 761540f47a add bobot++
An IRC bot written in C++
2001-09-07 14:22:36 +00:00

48 lines
1.0 KiB
Makefile

# 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>