Lines 6-38
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= astyle |
8 |
PORTNAME= astyle |
9 |
PORTVERSION= 1.15.3 |
9 |
PORTVERSION= 1.19 |
10 |
PORTREVISION= 1 |
|
|
11 |
CATEGORIES= devel textproc |
10 |
CATEGORIES= devel textproc |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
13 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
14 |
DISTNAME= ${PORTNAME}_${PORTVERSION} |
13 |
DISTNAME= ${PORTNAME}_${PORTVERSION}_linux |
15 |
|
14 |
|
16 |
MAINTAINER= andrew.nau.ua@gmail.com |
15 |
MAINTAINER= andrew.nau.ua@gmail.com |
17 |
COMMENT= A reindenter and reformatter of C++, C and Java source code |
16 |
COMMENT= A reindenter and reformatter of C, C++, C\# and Java source code |
18 |
|
17 |
|
19 |
USE_ZIP= yes |
|
|
20 |
EXTRACT_BEFORE_ARGS= -q -aa |
21 |
EXTRACT_AFTER_ARGS= -d ${DISTNAME} |
22 |
CFLAGS+= "-fpermissive" |
23 |
ALL_TARGET= astyle |
18 |
ALL_TARGET= astyle |
24 |
MAKE_ARGS= CPPFLAGS="${CXXFLAGS}" |
19 |
CXXFLAGS+= -fno-rtti -fno-exceptions |
|
|
20 |
LDFLAGS+= -s |
21 |
MAKE_ARGS= CPPFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" |
22 |
|
23 |
WRKSRC= ${WRKDIR}/astyle/src |
24 |
|
25 |
pre-patch: |
26 |
${REINPLACE_CMD} -e \ |
27 |
's,^ifdef,#ifdef,; \ |
28 |
s,^else,#else,; \ |
29 |
s,^endif,#endif,; \ |
30 |
s,^CPPFLAGS,#CPPFLAGS,; \ |
31 |
s,^LDFLAGS,#LDFLAGS,;' \ |
32 |
${WRKSRC}/Makefile |
33 |
${REINPLACE_CMD} -e 's,g++,$$(CXX),' ${WRKSRC}/Makefile |
25 |
|
34 |
|
26 |
PLIST_FILES= bin/astyle |
35 |
PLIST_FILES= bin/astyle |
27 |
.if !defined(NOPORTDOCS) |
36 |
.if !defined(NOPORTDOCS) |
28 |
PORTDOCS= astyle.html astyle_release_notes.html license.html |
37 |
PORTDOCS= astyle.html astyleX.html astyle_news.html astyle_release_notes.html install.txt license.html |
29 |
.endif |
38 |
.endif |
30 |
|
39 |
|
31 |
do-install: |
40 |
do-install: |
32 |
${INSTALL_PROGRAM} ${WRKSRC}/astyle ${PREFIX}/bin |
41 |
${INSTALL_PROGRAM} ${WRKSRC}/astyle ${PREFIX}/bin |
33 |
.if !defined(NOPORTDOCS) |
42 |
.if !defined(NOPORTDOCS) |
34 |
${MKDIR} ${DOCSDIR} |
43 |
${MKDIR} ${DOCSDIR} |
35 |
${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR} |
44 |
${INSTALL_DATA} ${WRKDIR}/astyle/doc/*.html ${DOCSDIR} |
|
|
45 |
${INSTALL_DATA} ${WRKDIR}/astyle/doc/*.txt ${DOCSDIR} |
36 |
.endif |
46 |
.endif |
37 |
|
47 |
|
38 |
.include <bsd.port.mk> |
48 |
.include <bsd.port.mk> |