1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/devel/cscout/Makefile
Diomidis Spinellis 39b6e964c0 Update to release 1.16
Reformat and update pkg-descr

Release 1.16 is associated with the following changes:
-  Declarations can be intermixed with statements (C99).
-  __typeof can have as its argument an expression
   and not only an identifier.
-  Support for C99 variable number of arguments preprocessor macros.
-  Allow case expression ranges (gcc extension).
-  Recognise __atribute__(__unused__) for determining which
   identifiers should not be reported as unused (gcc extension).
-  Command-line option to generate a wrongly scoped identifier and unused
   include file and identifier warning report.
-  Separate identifier attribute for enumeration constants.
   This allows us stop incorrectly categorizing them as having global
   (compilation unit) visibility.
-  Error reporting format is now compatible with gcc.
-  Dereferencing a function yields a function (common extension).
-  Command-line option to process the file and exit.
-  Document processing of the FreeBSD kernel.
-  Correct typing of assembly-annotated declarators.
-  Fixed assertion failure that could be caused when parts of concatenated
   identifiers were no longer available (e.g. when processing files
   with the -m T option.)
-  Correct handling of macro parameters that match other macros and
   are followed by a concatenation operator (they were erroneously replaced).
-  Add workaround for gcc __builtin_va_copy in the provided
   definition files.
-  Corrected the handling of main() in the example definition
   files.

Approved by:	netchild
2003-08-27 21:41:18 +00:00

66 lines
2.0 KiB
Makefile

# New ports collection makefile for: cscout
# Date created: 07. Jul 2003
# Whom: netchild@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= cscout
PORTVERSION= 1.16
CATEGORIES= devel
MASTER_SITES= http://www.spinellis.gr/cscout/ \
http://www.dmst.aueb.gr/dds/cscout/
DISTFILES= ${PORTNAME}-${PORTVERSION}-neutral${EXTRACT_SUFX} \
${PORTNAME}-${PORTVERSION}-freebsd-${ARCH}${EXTRACT_SUFX}
MAINTAINER= dds@FreeBSD.org
COMMENT= Source code analyzer and refactoring browser for collections of C programs
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
USE_REINPLACE= yes
MAN1= cscout.1 cswc.1
CPIO= /usr/bin/cpio
SORT= /usr/bin/sort
post-patch:
.if exists(/usr/include/g++/)
${REINPLACE_CMD} -i "" -e 's:g++-3:g++:g' \
${WRKSRC}/etc/cscout_incs.FBSD_GCC
.endif
(${SED} -n '1,/Platform defines begin/p' \
${WRKSRC}/etc/cscout_defs.FBSD_GCC && \
${CPP} -O -dM /dev/null | ${SORT} && \
${SED} -n '/Platform defines end/,$$p' \
${WRKSRC}/etc/cscout_defs.FBSD_GCC ) \
> ${WRKDIR}/cscout_defs.h
${CP} ${WRKDIR}/cscout_defs.h ${WRKSRC}/etc/cscout_defs.FBSD_GCC
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/cscout ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/cswc ${PREFIX}/bin
cd ${WRKSRC}/etc && ${FIND} . -print | \
${CPIO} -pdu -R ${BINOWN}:${BINGRP} --quiet ${PREFIX}/etc/${PORTNAME}
# don't overwrite an existing config
.if !exists(${PREFIX}/etc/${PORTNAME}/cscout_incs.h)
${INSTALL_DATA} ${WRKSRC}/etc/cscout_incs.FBSD_GCC ${PREFIX}/etc/${PORTNAME}/cscout_incs.h
.endif
.if !exists(${PREFIX}/etc/${PORTNAME}/cscout_defs.h)
${INSTALL_DATA} ${WRKDIR}/cscout_defs.h ${PREFIX}/etc/${PORTNAME}/cscout_defs.h
.endif
.if !defined(NOPORTDOCS)
cd ${WRKSRC}/example && ${FIND} . -print | \
${CPIO} -pdu -R ${BINOWN}:${BINGRP} --quiet ${EXAMPLESDIR}
cd ${WRKSRC}/doc && ${FIND} . -print | \
${CPIO} -pdu -R ${BINOWN}:${BINGRP} --quiet ${DOCSDIR}
.endif
.if !defined(NO_INSTALL_MANPAGES)
.for i in ${MAN1}
${INSTALL_MAN} ${WRKSRC}/man/${i} ${PREFIX}/man/man1
.endfor
.endif
.include <bsd.port.mk>