freebsd-ports/devel/cscout/Makefile

63 lines
2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: cscout
# Date created: 07. Jul 2003
# Whom: netchild@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= cscout
Update for CScout version 2.2 Version 2.2 includes numerous fixes and the following enahncements. - All query results are presented through a page selection interface. - Identical files in different locations are identified and presented in the file information page and through the file metrics. - Identifiers occuring at the same place in identical files are considered to be the same. - Facility to display the call path from one function to another. - New option to display call graphs as GIF images avoiding the need for an SVG plugin for medium-sized graphs. - The SQL backend supports four additional tables: STRINGS, COMMENTS, FILEPOS, FILECOPIES. - Allow attribute declarations to follow labels (gcc extension). - Support indirect goto labels (gcc extension). - Support (ANSI-style) nested function definitions (gcc extension). - The macro expansion algorithm follows more closely the C standard specification. - Allow braces around scalar initializers (common extension). - Macro calls in function arguments now get recorded as calls from the enclosing function, rather than the function being called. - Significantly faster file post-processing for the web and the SQL interface in large projects. - Array designators can be denoted through a range (gcc extension). - Support for symbolic operands in gcc asm constructs. - Allow __typeof__ declarations to be preceded by type qualifiers. - Correctly handle __typeof__ of objects with a storage class within typedef declarations. - The order of include file searching now matches more closely that of other compilers: absolute file names are never searched in the include file path, and non-system files are first searched relative to the directory of the including file. - Allow empty initializers and compound literals. (gcc extension) - Support for the alignof operator (gcc extension) - The equals sign following an initializer designator is optional (gcc extension). - A declaration expression can be used as the first expression of a for statement. (C99) - __typeof can also have as its argument a type name - Support for designators in compound literals. (C99)
2006-10-02 11:56:09 +02:00
PORTVERSION= 2.2
CATEGORIES= devel
MASTER_SITES= http://www.spinellis.gr/cscout/ \
http://www.dmst.aueb.gr/dds/cscout/
DISTFILES= ${PORTNAME}-${PORTVERSION}-neutral${EXTRACT_SUFX} \
Update for CScout version 2.2 Version 2.2 includes numerous fixes and the following enahncements. - All query results are presented through a page selection interface. - Identical files in different locations are identified and presented in the file information page and through the file metrics. - Identifiers occuring at the same place in identical files are considered to be the same. - Facility to display the call path from one function to another. - New option to display call graphs as GIF images avoiding the need for an SVG plugin for medium-sized graphs. - The SQL backend supports four additional tables: STRINGS, COMMENTS, FILEPOS, FILECOPIES. - Allow attribute declarations to follow labels (gcc extension). - Support indirect goto labels (gcc extension). - Support (ANSI-style) nested function definitions (gcc extension). - The macro expansion algorithm follows more closely the C standard specification. - Allow braces around scalar initializers (common extension). - Macro calls in function arguments now get recorded as calls from the enclosing function, rather than the function being called. - Significantly faster file post-processing for the web and the SQL interface in large projects. - Array designators can be denoted through a range (gcc extension). - Support for symbolic operands in gcc asm constructs. - Allow __typeof__ declarations to be preceded by type qualifiers. - Correctly handle __typeof__ of objects with a storage class within typedef declarations. - The order of include file searching now matches more closely that of other compilers: absolute file names are never searched in the include file path, and non-system files are first searched relative to the directory of the including file. - Allow empty initializers and compound literals. (gcc extension) - Support for the alignof operator (gcc extension) - The equals sign following an initializer designator is optional (gcc extension). - A declaration expression can be used as the first expression of a for statement. (C99) - __typeof can also have as its argument a type name - Support for designators in compound literals. (C99)
2006-10-02 11:56:09 +02:00
${PORTNAME}-${PORTVERSION}-fbsd-${ARCH}${EXTRACT_SUFX}
MAINTAINER= dds@FreeBSD.org
Update for CScout version 2.2 Version 2.2 includes numerous fixes and the following enahncements. - All query results are presented through a page selection interface. - Identical files in different locations are identified and presented in the file information page and through the file metrics. - Identifiers occuring at the same place in identical files are considered to be the same. - Facility to display the call path from one function to another. - New option to display call graphs as GIF images avoiding the need for an SVG plugin for medium-sized graphs. - The SQL backend supports four additional tables: STRINGS, COMMENTS, FILEPOS, FILECOPIES. - Allow attribute declarations to follow labels (gcc extension). - Support indirect goto labels (gcc extension). - Support (ANSI-style) nested function definitions (gcc extension). - The macro expansion algorithm follows more closely the C standard specification. - Allow braces around scalar initializers (common extension). - Macro calls in function arguments now get recorded as calls from the enclosing function, rather than the function being called. - Significantly faster file post-processing for the web and the SQL interface in large projects. - Array designators can be denoted through a range (gcc extension). - Support for symbolic operands in gcc asm constructs. - Allow __typeof__ declarations to be preceded by type qualifiers. - Correctly handle __typeof__ of objects with a storage class within typedef declarations. - The order of include file searching now matches more closely that of other compilers: absolute file names are never searched in the include file path, and non-system files are first searched relative to the directory of the including file. - Allow empty initializers and compound literals. (gcc extension) - Support for the alignof operator (gcc extension) - The equals sign following an initializer designator is optional (gcc extension). - A declaration expression can be used as the first expression of a for statement. (C99) - __typeof can also have as its argument a type name - Support for designators in compound literals. (C99)
2006-10-02 11:56:09 +02:00
COMMENT= Source code analyzer and refactoring browser for C program collections
Update for CScout version 2.2 Version 2.2 includes numerous fixes and the following enahncements. - All query results are presented through a page selection interface. - Identical files in different locations are identified and presented in the file information page and through the file metrics. - Identifiers occuring at the same place in identical files are considered to be the same. - Facility to display the call path from one function to another. - New option to display call graphs as GIF images avoiding the need for an SVG plugin for medium-sized graphs. - The SQL backend supports four additional tables: STRINGS, COMMENTS, FILEPOS, FILECOPIES. - Allow attribute declarations to follow labels (gcc extension). - Support indirect goto labels (gcc extension). - Support (ANSI-style) nested function definitions (gcc extension). - The macro expansion algorithm follows more closely the C standard specification. - Allow braces around scalar initializers (common extension). - Macro calls in function arguments now get recorded as calls from the enclosing function, rather than the function being called. - Significantly faster file post-processing for the web and the SQL interface in large projects. - Array designators can be denoted through a range (gcc extension). - Support for symbolic operands in gcc asm constructs. - Allow __typeof__ declarations to be preceded by type qualifiers. - Correctly handle __typeof__ of objects with a storage class within typedef declarations. - The order of include file searching now matches more closely that of other compilers: absolute file names are never searched in the include file path, and non-system files are first searched relative to the directory of the including file. - Allow empty initializers and compound literals. (gcc extension) - Support for the alignof operator (gcc extension) - The equals sign following an initializer designator is optional (gcc extension). - A declaration expression can be used as the first expression of a for statement. (C99) - __typeof can also have as its argument a type name - Support for designators in compound literals. (C99)
2006-10-02 11:56:09 +02:00
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD= yes
MAN1= cscout.1 cswc.1
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
Update for CScout version 2.2 Version 2.2 includes numerous fixes and the following enahncements. - All query results are presented through a page selection interface. - Identical files in different locations are identified and presented in the file information page and through the file metrics. - Identifiers occuring at the same place in identical files are considered to be the same. - Facility to display the call path from one function to another. - New option to display call graphs as GIF images avoiding the need for an SVG plugin for medium-sized graphs. - The SQL backend supports four additional tables: STRINGS, COMMENTS, FILEPOS, FILECOPIES. - Allow attribute declarations to follow labels (gcc extension). - Support indirect goto labels (gcc extension). - Support (ANSI-style) nested function definitions (gcc extension). - The macro expansion algorithm follows more closely the C standard specification. - Allow braces around scalar initializers (common extension). - Macro calls in function arguments now get recorded as calls from the enclosing function, rather than the function being called. - Significantly faster file post-processing for the web and the SQL interface in large projects. - Array designators can be denoted through a range (gcc extension). - Support for symbolic operands in gcc asm constructs. - Allow __typeof__ declarations to be preceded by type qualifiers. - Correctly handle __typeof__ of objects with a storage class within typedef declarations. - The order of include file searching now matches more closely that of other compilers: absolute file names are never searched in the include file path, and non-system files are first searched relative to the directory of the including file. - Allow empty initializers and compound literals. (gcc extension) - Support for the alignof operator (gcc extension) - The equals sign following an initializer designator is optional (gcc extension). - A declaration expression can be used as the first expression of a for statement. (C99) - __typeof can also have as its argument a type name - Support for designators in compound literals. (C99)
2006-10-02 11:56:09 +02:00
${INSTALL_SCRIPT} ${WRKSRC}/bin/csmake ${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>