freebsd-ports/devel/astyle/Makefile
Mark Linimon 13fb0b92a2 Fix port builds for architectures which remain on gcc as the default compiler.
This will primarily help powerpc64.

For archs where clang is the default compiler, these changes will have no
effect, as the base compiler already has these capabilities (primarily, but
not exclusively, c++-11).

Tested for no-harm on amd64.

While here, pet portlint.

Approved by:	portmgr (tier-2 blanket)
2018-06-11 01:44:15 +00:00

31 lines
852 B
Makefile

# Created by: Don Croyle <croyle@gelemna.org>
# $FreeBSD$
PORTNAME= astyle
PORTVERSION= 3.1
CATEGORIES= devel textproc
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION}
DISTNAME= ${PORTNAME}_${PORTVERSION}_linux
MAINTAINER= lme@FreeBSD.org
COMMENT= Source code indenter and formatter for C, C++, C\#, and Java
LICENSE= MIT
LICENSE_FILE= ${WRKDIR}/astyle/LICENSE.md
USES= compiler:c++11-lang dos2unix gmake
ALL_TARGET= astyle
DOS2UNIX_GLOB= *.ini
WRKSRC= ${WRKDIR}/astyle/build/${COMPILER_TYPE}
OPTIONS_DEFINE= DOCS EXAMPLES
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/astyle ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/astyle/doc/* ${STAGEDIR}${DOCSDIR}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKDIR}/astyle/file/* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>