mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
41 lines
931 B
Makefile
41 lines
931 B
Makefile
# New ports collection makefile for: astyle
|
|
# Date created: 31 Jan 1999
|
|
# Whom: Don Croyle <croyle@gelemna.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= astyle
|
|
PORTVERSION= 1.23
|
|
CATEGORIES= devel textproc
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION}
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}_linux
|
|
|
|
MAINTAINER= lme@FreeBSD.org
|
|
COMMENT= A reindenter and reformatter of C, C++, C\# and Java source code
|
|
|
|
ALL_TARGET= astyle
|
|
CFLAGS+= -W -Wall -fno-rtti -fno-exceptions
|
|
LDFLAGS+= -s
|
|
MAKE_ARGS+= CFLAGS="${CFLAGS}"
|
|
USE_GMAKE= yes
|
|
|
|
WRKSRC= ${WRKDIR}/astyle/buildgcc
|
|
|
|
pre-patch:
|
|
${REINPLACE_CMD} -e 's,^CFLAGS,#CFLAGS,; s,g++,${CXX},;' ${WRKSRC}/Makefile
|
|
|
|
PLIST_FILES= bin/astyle
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= *
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/../bin/astyle ${PREFIX}/bin
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKDIR}/astyle/doc/*.html ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|