1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/devel/astyle/Makefile
Lars Engels 01af071179 With an up-to-date INDEX I even find the rest of the ports I maintain,
so change my e-mail address also in those ports.

Approved by:	miwi (mentor)
2007-07-12 19:48:45 +00:00

44 lines
1.0 KiB
Makefile

# New ports collection makefile for: astyle
# Date created: 31 Jan 1999
# Whom: Don Croyle <croyle@gelemna.org>
#
# $FreeBSD$
#
PORTNAME= astyle
PORTVERSION= 1.21
CATEGORIES= devel textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
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_GCC= 3.3+
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/astyle/build
ALL_TARGET= release
pre-patch:
${REINPLACE_CMD} -e 's,^CFLAGS,#CFLAGS,; s,g++,${CXX},;' ${WRKSRC}/Makefile
PLIST_FILES= bin/astyle
.if !defined(NOPORTDOCS)
PORTDOCS= astyle.html astyleX.html astyle_news.html install.html license.html astyle_notes.html index.html
.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>