diff options
author | oliver <oliver@FreeBSD.org> | 2003-08-01 19:39:50 +0000 |
---|---|---|
committer | oliver <oliver@FreeBSD.org> | 2003-08-01 19:39:50 +0000 |
commit | 8f81b608759c7f91462a42a68c99dd3b4bc08c6e (patch) | |
tree | 60d5470634c904c67d05227c5adbff29b7f9815d /devel/gccxml | |
parent | cf93d4031723b1d7ff0fc1eac14076300477ed8e (diff) | |
download | FreeBSD-ports-8f81b608759c7f91462a42a68c99dd3b4bc08c6e.zip FreeBSD-ports-8f81b608759c7f91462a42a68c99dd3b4bc08c6e.tar.gz |
Add gccxml 0.4.2, xML output extension to GCC.
PR: 54555
Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Diffstat (limited to 'devel/gccxml')
-rw-r--r-- | devel/gccxml/Makefile | 53 | ||||
-rw-r--r-- | devel/gccxml/distinfo | 2 | ||||
-rw-r--r-- | devel/gccxml/files/patch-CMakeLists.txt | 16 | ||||
-rw-r--r-- | devel/gccxml/pkg-descr | 10 | ||||
-rw-r--r-- | devel/gccxml/pkg-plist | 24 |
5 files changed, 105 insertions, 0 deletions
diff --git a/devel/gccxml/Makefile b/devel/gccxml/Makefile new file mode 100644 index 0000000..1336d19 --- /dev/null +++ b/devel/gccxml/Makefile @@ -0,0 +1,53 @@ +# New ports collection makefile for: gccxml +# Date created: 2003-07-16 +# Whom: Volker Stolz <stolz@i2.informatik.rwth-aachen.de> +# +# $FreeBSD$ +# + +PORTNAME= gccxml +PORTVERSION= 0.4.2 +CATEGORIES= devel +MASTER_SITES= http://www.gccxml.org/files/ +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}-cc1plus-304${EXTRACT_SUFX} + +MAINTAINER= stolz@i2.informatik.rwth-aachen.de +COMMENT= XML output extension to GCC + +BUILD_DEPENDS= cmake:${PORTSDIR}/devel/cmake + +# This one's neat: We have to build things in two subdirectories, +# but only need to invoke configure in one of them. This means we +# only have to override the build-stage entirely but can keep the +# other stages: + +CONFIGURE_WRKSRC= ${WRKDIR}/${DISTNAME}-cc1plus-304-build +CONFIGURE_SCRIPT= ../${DISTNAME}-cc1plus-304/configure +INSTALL_WRKSRC= ${WRKDIR}/${DISTNAME}-build + +GNU_CONFIGURE= YES +CONFIGURE_ARGS= --enable-languages=c++ --without-libstdcxx -disable-nls --without-libstdc + +MAN1= gccxml.1 + +PLIST_SUB= PORTVERSION=${PORTVERSION} + +pre-configure: + ${MKDIR} ${CONFIGURE_WRKSRC} + ${MKDIR} ${WRKDIR}/${DISTNAME}-build + cd ${WRKDIR}/${DISTNAME}-build && \ + ${LOCALBASE}/bin/cmake ../${DISTNAME} -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} + +do-build: + cd ${CONFIGURE_WRKSRC}/libiberty && ${MAKE} libiberty.a + cd ${CONFIGURE_WRKSRC}/gcc && ${MAKE} tm.h tm_p.h cc1plus + cd ${WRKDIR}/${DISTNAME}-build && ${MAKE} + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/Copyright.txt ${DOCSDIR} +.endif + ${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}-cc1plus-304-build/gcc/cc1plus ${PREFIX}/bin/gccxml_cc1plus + +.include <bsd.port.mk> diff --git a/devel/gccxml/distinfo b/devel/gccxml/distinfo new file mode 100644 index 0000000..c3cb85d --- /dev/null +++ b/devel/gccxml/distinfo @@ -0,0 +1,2 @@ +MD5 (gccxml-0.4.2.tar.gz) = 8b1a05c23cb0ed728bcbd1816198a3ed +MD5 (gccxml-0.4.2-cc1plus-304.tar.gz) = bb73cf5bc7a895c47c59e2c8bdd90887 diff --git a/devel/gccxml/files/patch-CMakeLists.txt b/devel/gccxml/files/patch-CMakeLists.txt new file mode 100644 index 0000000..cf0563c --- /dev/null +++ b/devel/gccxml/files/patch-CMakeLists.txt @@ -0,0 +1,16 @@ +--- CMakeLists.txt.orig Wed Mar 5 14:52:19 2003 ++++ CMakeLists.txt Fri Aug 1 21:36:40 2003 +@@ -51,11 +51,11 @@ + # Installation rules for UNIX. + SET(GCCXML_ROOT ${GCCXML_SOURCE_DIR}) + SET(GCCXML_SHARE "/share/gccxml-${GCCXML_VERSION_STRING}") +- SET(GCCXML_DOC "/share/doc/gccxml-${GCCXML_VERSION_STRING}") ++# SET(GCCXML_DOC "/share/doc/gccxml-${GCCXML_VERSION_STRING}") + INSTALL_TARGETS(/bin gccxml) + INSTALL_PROGRAMS(${GCCXML_SHARE} gccxml_find_flags) + INSTALL_FILES(/man/man1 .1 gccxml) +- INSTALL_FILES(${GCCXML_DOC} .txt Copyright) ++# INSTALL_FILES(${GCCXML_DOC} .txt Copyright) + SUBDIRS (GccInclude MproInclude) + ELSE(UNIX) + # Include file patch program for Windows. diff --git a/devel/gccxml/pkg-descr b/devel/gccxml/pkg-descr new file mode 100644 index 0000000..a97c0bf --- /dev/null +++ b/devel/gccxml/pkg-descr @@ -0,0 +1,10 @@ +The purpose of the GCC-XML extension is to generate an XML description +of a C++ program from GCC's internal representation. Since XML is easy +to parse, other development tools will be able to work with C++ programs +without the burden of a complicated C++ parser. + +GCC-XML was developed by Brad King at Kitware to be used by CABLE, which +was developed as part of the NLM Insight Segmentation and Registration +Toolkit project. + +WWW: http://www.gccxml.org/ diff --git a/devel/gccxml/pkg-plist b/devel/gccxml/pkg-plist new file mode 100644 index 0000000..6f54865 --- /dev/null +++ b/devel/gccxml/pkg-plist @@ -0,0 +1,24 @@ +bin/gccxml_cc1plus +bin/gccxml +share/gccxml-%%PORTVERSION%%/GccInclude/2_95/std/complext.h +@dirrm share/gccxml-%%PORTVERSION%%/GccInclude/2_95/std +@dirrm share/gccxml-%%PORTVERSION%%/GccInclude/2_95 +share/gccxml-%%PORTVERSION%%/GccInclude/find_gcc_options +@dirrm share/gccxml-%%PORTVERSION%%/GccInclude +share/gccxml-%%PORTVERSION%%/MproInclude/7_3/stl_config.h +share/gccxml-%%PORTVERSION%%/MproInclude/7_3/stl_numeric_facets.h +share/gccxml-%%PORTVERSION%%/MproInclude/7_3/exception +share/gccxml-%%PORTVERSION%%/MproInclude/7_3/stl_monetary.h +share/gccxml-%%PORTVERSION%%/MproInclude/7_3/stl_locale.h +share/gccxml-%%PORTVERSION%%/MproInclude/7_3/stl_threads.h +share/gccxml-%%PORTVERSION%%/MproInclude/7_3/gccxml_mpro_internals.h +share/gccxml-%%PORTVERSION%%/MproInclude/7_3/string +share/gccxml-%%PORTVERSION%%/MproInclude/7_3/stddef.h +share/gccxml-%%PORTVERSION%%/MproInclude/7_3/ostream +share/gccxml-%%PORTVERSION%%/MproInclude/find_mpro_options +share/gccxml-%%PORTVERSION%%/gccxml_find_flags +%%NOPORTSDOCS%%%%DOCSDIR%%Copyright.txt +%%NOPORTSDOCS%%@dirrm %%DOCSDIR%% +@dirrm share/gccxml-%%PORTVERSION%%/MproInclude/7_3 +@dirrm share/gccxml-%%PORTVERSION%%/MproInclude +@dirrm share/gccxml-%%PORTVERSION%%/ |