mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
Support stage
This commit is contained in:
parent
20c3cb3a1f
commit
466b3cfe44
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=336115
@ -8,7 +8,7 @@ MASTER_SITES= ftp://invisible-island.net/bcpp/
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= A utility similar to indent for C++ code
|
||||
COMMENT= Utility similar to indent for C++ code
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
@ -17,24 +17,16 @@ MAKEFILE= makefile
|
||||
|
||||
CFLAGS+= -DBCPP_CONFIG_DIR=\\\"${PREFIX}/etc/${PORTNAME}\\\"
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/code/bcpp.cpp
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/code/${PORTNAME} ${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/code/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKSRC}/code/${PORTNAME}.cfg \
|
||||
${PREFIX}/etc/${PORTNAME}.cfg.sample
|
||||
.if !exists(${PREFIX}/etc/${PORTNAME}.cfg)
|
||||
cd ${PREFIX}/etc && ${CP} -p ${PORTNAME}.cfg.sample ${PORTNAME}.cfg
|
||||
.endif
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/txtdocs/hirachy.txt ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/txtdocs/manual.txt ${DOCSDIR}
|
||||
.endif
|
||||
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.cfg.sample
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/txtdocs/hirachy.txt ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/txtdocs/manual.txt ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user