aboutsummaryrefslogtreecommitdiffstats
path: root/devel/astyle/Makefile
blob: 7d3ea257416e9eb5b68d6e1b10ca880ace1d6b12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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>