2012-09-22 05:00:28 +02:00
|
|
|
# Created by: Mike Buchanon <buchanon@msu.edu>
|
2001-11-18 04:33:45 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= bcpp
|
2012-12-01 00:52:29 +01:00
|
|
|
PORTVERSION= 20120318
|
2001-11-18 04:33:45 +01:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ftp://invisible-island.net/bcpp/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2012-09-22 05:00:28 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 12:23:04 +01:00
|
|
|
COMMENT= A utility similar to indent for C++ code
|
2001-11-18 04:33:45 +01:00
|
|
|
|
2012-12-01 00:52:29 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2006-04-15 23:13:53 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2012-12-01 00:52:29 +01:00
|
|
|
MAKEFILE= makefile
|
|
|
|
|
|
|
|
CFLAGS+= -DBCPP_CONFIG_DIR=\\\"${PREFIX}/etc/${PORTNAME}\\\"
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2001-11-18 04:33:45 +01:00
|
|
|
|
2001-12-19 04:52:40 +01:00
|
|
|
post-patch:
|
2012-12-01 00:52:29 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/code/bcpp.cpp
|
2001-12-19 04:52:40 +01:00
|
|
|
|
2001-11-18 04:33:45 +01:00
|
|
|
do-install:
|
2006-04-15 23:13:53 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/code/${PORTNAME} ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/code/${PORTNAME}.cfg \
|
2001-11-18 04:33:45 +01:00
|
|
|
${PREFIX}/etc/${PORTNAME}.cfg.sample
|
2012-12-01 00:52:29 +01:00
|
|
|
.if !exists(${PREFIX}/etc/${PORTNAME}.cfg)
|
|
|
|
cd ${PREFIX}/etc && ${CP} -p ${PORTNAME}.cfg.sample ${PORTNAME}.cfg
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@@${MKDIR} ${DOCSDIR}
|
2006-04-15 23:13:53 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/txtdocs/hirachy.txt ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/txtdocs/manual.txt ${DOCSDIR}
|
2001-11-18 04:33:45 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|