1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/devel/astyle/Makefile
Adam Weinberger 44eaadcb75 Add OPTIONS_DEFINE=DOCS for ports with %%PORTDOCS%% in the plist.
Where possible, correct a few instances where PORTDOCS was being used
to flag stuff in EXAMPLESDIR. For some ports, mostly those owned by
ruby@, PORTDOCS is applied to pretty much everything whether it's
documentation or example.
2014-07-15 23:11:12 +00:00

38 lines
941 B
Makefile

# Created by: Don Croyle <croyle@gelemna.org>
# $FreeBSD$
PORTNAME= astyle
PORTVERSION= 2.04
PORTREVISION= 1
CATEGORIES= devel textproc
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION}
DISTNAME= ${PORTNAME}_${PORTVERSION}_linux
MAINTAINER= lme@FreeBSD.org
COMMENT= Source code indenter and formatter for C, C++, C\#, and Java
LICENSE= LGPL3
ALL_TARGET= astyle
CFLAGS+= -W -Wall -fno-rtti -fno-exceptions
LDFLAGS+= -s
MAKE_ARGS+= CFLAGS="${CFLAGS}"
USES= compiler gmake iconv
WRKSRC= ${WRKDIR}/astyle/build/gcc
OPTIONS_DEFINE= DOCS
pre-patch:
@${REINPLACE_CMD} -e 's,^CFLAGS,#CFLAGS,; s,g++,${CXX},; \
s,\(CFLAGSr.*=.*\),\1 -I${LOCALBASE}/include,' \
${WRKSRC}/Makefile
do-install:
${STRIP_CMD} ${WRKSRC}/bin/astyle
${INSTALL_PROGRAM} ${WRKSRC}/bin/astyle ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/astyle/doc/*.html ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>