1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/textproc/uncrustify/Makefile
Tobias C. Berner 707c6bf295 Change cmake default behaviour to outsource.
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".

I tried to only set insource where explictely needed.

PR:		232038
Exp-run by:	antoine
2018-12-25 20:25:39 +00:00

44 lines
1.2 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= uncrustify
PORTVERSION= 0.68.1
DISTVERSIONPREFIX= ${PORTNAME}-
CATEGORIES= textproc
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Highly configurable source code beautifier
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
#BROKEN_mips= fails to compile: cc1plus: error: unrecognized command line option "-std=gnu++0x"
#BROKEN_mips64= fails to compile: cc1plus: error: unrecognized command line option "-std=gnu++0x"
#BROKEN_powerpc64= fails to compile: cc1plus: error: unrecognized command line option "-std=gnu++0x"
USE_GITHUB= yes
GH_TAGNAME= dbe32c0
USES= cmake
CMAKE_ARGS= -DNoGitVersionString:BOOL=TRUE
TEST_TARGET= test
PORTDOCS= *
OPTIONS_DEFINE= DOCS
# fixes BROKENs above, but may introduce different errors
post-patch:
@${REINPLACE_CMD} -e '/gnu++0x/ d' ${WRKSRC}/CMakeLists.txt
post-install:
@${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/etc/*.cfg ${STAGEDIR}${ETCDIR}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/documentation && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>