freebsd-ports/devel/astyle/Makefile
Cheng-Lung Sung baf967470a - Update to 1.20.1
PR:		ports/108717
Submitted by:	Li-Wen Hsu <lwhsu_AT_lwhsu dot org>
Approved by:	maintainer timeout
2007-03-02 01:28:53 +00:00

43 lines
1.1 KiB
Makefile

# New ports collection makefile for: astyle
# Date created: 31 Jan 1999
# Whom: Don Croyle <croyle@gelemna.org>
#
# $FreeBSD$
#
PORTNAME= astyle
PORTVERSION= 1.20.1
CATEGORIES= devel textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}_${PORTVERSION}_linux
MAINTAINER= andrew.nau.ua@gmail.com
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 astyle_release_notes.html develop.html install.html license.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>