freebsd-ports/devel/linux-understand_c/Makefile

155 lines
5 KiB
Makefile
Raw Normal View History

New port: Understand can parse a C/C++ project helping reverse engineer it [begin snip from the www site] Understand parses any sized C or C++ project to help you reverse engineer, document and understand it and thus maintain it better. It supports K&R C, ANSI C, or C++ source code. Projects can contain mixed C/C++ code as well. The parser is efficient, fast, and can handle very large projects. Very little is needed to get started - just aim it at your source tree. Optionally (and for more parsing accuracy) add any externally defined macro definitions and include paths. All of this is done from the GUI - you should be able to do an initial analysis of your project in a few minutes. Understand for C++ quickly documents Class inheritance hierarchies (Base Class and Derived Classes), Call and CallBy Trees, Include and Include By Trees, as well as where and how everything in your source code is used (cross reference). Understand for C++ creates detailed automatic documentation about your source code in HTML and text reports Using the PERL and C API you can write your own documentation generators. [end snip from the www site] You need a limited time period license to run the product in evaluation mode. One can be obtained in the www site. A permanent license can be purchased there too. - Instalation issues: This port has a hardcoded directory structure which is required to run it. Therefore, some measures are necessary to install it under FreeBSD following handbook rules' 1) All files but binaries are installed according to hier(7) 2) A fake structure is created under ${PREFIX}/lib/understand_c to please the program and soft links are made there to the correct locations under hier(7) 3) The binaries are installed under ${PREFIX}/lib/understand_c/bin and a wrapper is installed under ${PREFIX}/bin pointing to the fake structure 4) Since a license is required to run the program, warnings are issued when either it is installed or a package is added 5) Since the legal status is still being debated with the developers, it will be marked as RESTRICTED for the time being and LEGAL will be updated accordingly
2001-03-10 00:08:58 +01:00
# New ports collection makefile for: understand code browser for c/c++
# Date created: 01 Mar 2001
2001-03-19 19:20:10 +01:00
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
New port: Understand can parse a C/C++ project helping reverse engineer it [begin snip from the www site] Understand parses any sized C or C++ project to help you reverse engineer, document and understand it and thus maintain it better. It supports K&R C, ANSI C, or C++ source code. Projects can contain mixed C/C++ code as well. The parser is efficient, fast, and can handle very large projects. Very little is needed to get started - just aim it at your source tree. Optionally (and for more parsing accuracy) add any externally defined macro definitions and include paths. All of this is done from the GUI - you should be able to do an initial analysis of your project in a few minutes. Understand for C++ quickly documents Class inheritance hierarchies (Base Class and Derived Classes), Call and CallBy Trees, Include and Include By Trees, as well as where and how everything in your source code is used (cross reference). Understand for C++ creates detailed automatic documentation about your source code in HTML and text reports Using the PERL and C API you can write your own documentation generators. [end snip from the www site] You need a limited time period license to run the product in evaluation mode. One can be obtained in the www site. A permanent license can be purchased there too. - Instalation issues: This port has a hardcoded directory structure which is required to run it. Therefore, some measures are necessary to install it under FreeBSD following handbook rules' 1) All files but binaries are installed according to hier(7) 2) A fake structure is created under ${PREFIX}/lib/understand_c to please the program and soft links are made there to the correct locations under hier(7) 3) The binaries are installed under ${PREFIX}/lib/understand_c/bin and a wrapper is installed under ${PREFIX}/bin pointing to the fake structure 4) Since a license is required to run the program, warnings are issued when either it is installed or a package is added 5) Since the legal status is still being debated with the developers, it will be marked as RESTRICTED for the time being and LEGAL will be updated accordingly
2001-03-10 00:08:58 +01:00
#
# $FreeBSD$
#
PORTNAME= understand_c
2003-04-02 18:48:52 +02:00
PORTVERSION= 1.4.204
PORTEPOCH= 1
New port: Understand can parse a C/C++ project helping reverse engineer it [begin snip from the www site] Understand parses any sized C or C++ project to help you reverse engineer, document and understand it and thus maintain it better. It supports K&R C, ANSI C, or C++ source code. Projects can contain mixed C/C++ code as well. The parser is efficient, fast, and can handle very large projects. Very little is needed to get started - just aim it at your source tree. Optionally (and for more parsing accuracy) add any externally defined macro definitions and include paths. All of this is done from the GUI - you should be able to do an initial analysis of your project in a few minutes. Understand for C++ quickly documents Class inheritance hierarchies (Base Class and Derived Classes), Call and CallBy Trees, Include and Include By Trees, as well as where and how everything in your source code is used (cross reference). Understand for C++ creates detailed automatic documentation about your source code in HTML and text reports Using the PERL and C API you can write your own documentation generators. [end snip from the www site] You need a limited time period license to run the product in evaluation mode. One can be obtained in the www site. A permanent license can be purchased there too. - Instalation issues: This port has a hardcoded directory structure which is required to run it. Therefore, some measures are necessary to install it under FreeBSD following handbook rules' 1) All files but binaries are installed according to hier(7) 2) A fake structure is created under ${PREFIX}/lib/understand_c to please the program and soft links are made there to the correct locations under hier(7) 3) The binaries are installed under ${PREFIX}/lib/understand_c/bin and a wrapper is installed under ${PREFIX}/bin pointing to the fake structure 4) Since a license is required to run the program, warnings are issued when either it is installed or a package is added 5) Since the legal status is still being debated with the developers, it will be marked as RESTRICTED for the time being and LEGAL will be updated accordingly
2001-03-10 00:08:58 +01:00
CATEGORIES= devel linux
MASTER_SITES= http://www.scitools.com/ftp/pub/download/understand_c/%SUBDIR%/
MASTER_SITE_SUBDIR= latest pastbuilds
2001-04-29 18:48:44 +02:00
DISTNAME= und_c-14b${PORTVERSION:E}-linux
New port: Understand can parse a C/C++ project helping reverse engineer it [begin snip from the www site] Understand parses any sized C or C++ project to help you reverse engineer, document and understand it and thus maintain it better. It supports K&R C, ANSI C, or C++ source code. Projects can contain mixed C/C++ code as well. The parser is efficient, fast, and can handle very large projects. Very little is needed to get started - just aim it at your source tree. Optionally (and for more parsing accuracy) add any externally defined macro definitions and include paths. All of this is done from the GUI - you should be able to do an initial analysis of your project in a few minutes. Understand for C++ quickly documents Class inheritance hierarchies (Base Class and Derived Classes), Call and CallBy Trees, Include and Include By Trees, as well as where and how everything in your source code is used (cross reference). Understand for C++ creates detailed automatic documentation about your source code in HTML and text reports Using the PERL and C API you can write your own documentation generators. [end snip from the www site] You need a limited time period license to run the product in evaluation mode. One can be obtained in the www site. A permanent license can be purchased there too. - Instalation issues: This port has a hardcoded directory structure which is required to run it. Therefore, some measures are necessary to install it under FreeBSD following handbook rules' 1) All files but binaries are installed according to hier(7) 2) A fake structure is created under ${PREFIX}/lib/understand_c to please the program and soft links are made there to the correct locations under hier(7) 3) The binaries are installed under ${PREFIX}/lib/understand_c/bin and a wrapper is installed under ${PREFIX}/bin pointing to the fake structure 4) Since a license is required to run the program, warnings are issued when either it is installed or a package is added 5) Since the legal status is still being debated with the developers, it will be marked as RESTRICTED for the time being and LEGAL will be updated accordingly
2001-03-10 00:08:58 +01:00
2001-03-19 19:20:10 +01:00
MAINTAINER= lioux@FreeBSD.org
2003-02-23 20:58:35 +01:00
COMMENT= Understand can parse a C/C++ project helping reverse engineer it
New port: Understand can parse a C/C++ project helping reverse engineer it [begin snip from the www site] Understand parses any sized C or C++ project to help you reverse engineer, document and understand it and thus maintain it better. It supports K&R C, ANSI C, or C++ source code. Projects can contain mixed C/C++ code as well. The parser is efficient, fast, and can handle very large projects. Very little is needed to get started - just aim it at your source tree. Optionally (and for more parsing accuracy) add any externally defined macro definitions and include paths. All of this is done from the GUI - you should be able to do an initial analysis of your project in a few minutes. Understand for C++ quickly documents Class inheritance hierarchies (Base Class and Derived Classes), Call and CallBy Trees, Include and Include By Trees, as well as where and how everything in your source code is used (cross reference). Understand for C++ creates detailed automatic documentation about your source code in HTML and text reports Using the PERL and C API you can write your own documentation generators. [end snip from the www site] You need a limited time period license to run the product in evaluation mode. One can be obtained in the www site. A permanent license can be purchased there too. - Instalation issues: This port has a hardcoded directory structure which is required to run it. Therefore, some measures are necessary to install it under FreeBSD following handbook rules' 1) All files but binaries are installed according to hier(7) 2) A fake structure is created under ${PREFIX}/lib/understand_c to please the program and soft links are made there to the correct locations under hier(7) 3) The binaries are installed under ${PREFIX}/lib/understand_c/bin and a wrapper is installed under ${PREFIX}/bin pointing to the fake structure 4) Since a license is required to run the program, warnings are issued when either it is installed or a package is added 5) Since the legal status is still being debated with the developers, it will be marked as RESTRICTED for the time being and LEGAL will be updated accordingly
2001-03-10 00:08:58 +01:00
ONLY_FOR_ARCHS= i386
USE_LINUX= yes
NO_WRKSUBDIR= yes
NO_BUILD= yes
PREFIX_LINUX?= ${LINUXBASE}
STRIP= ${LINUXBASE}/usr/bin/strip
2001-09-18 06:04:55 +02:00
BRANDELF?= /usr/bin/brandelf
New port: Understand can parse a C/C++ project helping reverse engineer it [begin snip from the www site] Understand parses any sized C or C++ project to help you reverse engineer, document and understand it and thus maintain it better. It supports K&R C, ANSI C, or C++ source code. Projects can contain mixed C/C++ code as well. The parser is efficient, fast, and can handle very large projects. Very little is needed to get started - just aim it at your source tree. Optionally (and for more parsing accuracy) add any externally defined macro definitions and include paths. All of this is done from the GUI - you should be able to do an initial analysis of your project in a few minutes. Understand for C++ quickly documents Class inheritance hierarchies (Base Class and Derived Classes), Call and CallBy Trees, Include and Include By Trees, as well as where and how everything in your source code is used (cross reference). Understand for C++ creates detailed automatic documentation about your source code in HTML and text reports Using the PERL and C API you can write your own documentation generators. [end snip from the www site] You need a limited time period license to run the product in evaluation mode. One can be obtained in the www site. A permanent license can be purchased there too. - Instalation issues: This port has a hardcoded directory structure which is required to run it. Therefore, some measures are necessary to install it under FreeBSD following handbook rules' 1) All files but binaries are installed according to hier(7) 2) A fake structure is created under ${PREFIX}/lib/understand_c to please the program and soft links are made there to the correct locations under hier(7) 3) The binaries are installed under ${PREFIX}/lib/understand_c/bin and a wrapper is installed under ${PREFIX}/bin pointing to the fake structure 4) Since a license is required to run the program, warnings are issued when either it is installed or a package is added 5) Since the legal status is still being debated with the developers, it will be marked as RESTRICTED for the time being and LEGAL will be updated accordingly
2001-03-10 00:08:58 +01:00
FMT?= /usr/bin/fmt
CONF_DIRS= compilers configs fonts license
CONF_FILES= compilers/aix.cfg compilers/alpha.cfg \
2003-04-02 18:48:52 +02:00
compilers/arm.cfg \
New port: Understand can parse a C/C++ project helping reverse engineer it [begin snip from the www site] Understand parses any sized C or C++ project to help you reverse engineer, document and understand it and thus maintain it better. It supports K&R C, ANSI C, or C++ source code. Projects can contain mixed C/C++ code as well. The parser is efficient, fast, and can handle very large projects. Very little is needed to get started - just aim it at your source tree. Optionally (and for more parsing accuracy) add any externally defined macro definitions and include paths. All of this is done from the GUI - you should be able to do an initial analysis of your project in a few minutes. Understand for C++ quickly documents Class inheritance hierarchies (Base Class and Derived Classes), Call and CallBy Trees, Include and Include By Trees, as well as where and how everything in your source code is used (cross reference). Understand for C++ creates detailed automatic documentation about your source code in HTML and text reports Using the PERL and C API you can write your own documentation generators. [end snip from the www site] You need a limited time period license to run the product in evaluation mode. One can be obtained in the www site. A permanent license can be purchased there too. - Instalation issues: This port has a hardcoded directory structure which is required to run it. Therefore, some measures are necessary to install it under FreeBSD following handbook rules' 1) All files but binaries are installed according to hier(7) 2) A fake structure is created under ${PREFIX}/lib/understand_c to please the program and soft links are made there to the correct locations under hier(7) 3) The binaries are installed under ${PREFIX}/lib/understand_c/bin and a wrapper is installed under ${PREFIX}/bin pointing to the fake structure 4) Since a license is required to run the program, warnings are issued when either it is installed or a package is added 5) Since the legal status is still being debated with the developers, it will be marked as RESTRICTED for the time being and LEGAL will be updated accordingly
2001-03-10 00:08:58 +01:00
compilers/borlandc.cfg compilers/hpux.cfg \
2003-04-02 18:48:52 +02:00
compilers/codevision_avr.cfg \
compilers/franklin_8051.cfg compilers/iar_78k0.cfg \
compilers/iar_a90.cfg compilers/iar_avr.cfg \
compilers/keil166.cfg compilers/keil251.cfg \
compilers/keil51.cfg \
New port: Understand can parse a C/C++ project helping reverse engineer it [begin snip from the www site] Understand parses any sized C or C++ project to help you reverse engineer, document and understand it and thus maintain it better. It supports K&R C, ANSI C, or C++ source code. Projects can contain mixed C/C++ code as well. The parser is efficient, fast, and can handle very large projects. Very little is needed to get started - just aim it at your source tree. Optionally (and for more parsing accuracy) add any externally defined macro definitions and include paths. All of this is done from the GUI - you should be able to do an initial analysis of your project in a few minutes. Understand for C++ quickly documents Class inheritance hierarchies (Base Class and Derived Classes), Call and CallBy Trees, Include and Include By Trees, as well as where and how everything in your source code is used (cross reference). Understand for C++ creates detailed automatic documentation about your source code in HTML and text reports Using the PERL and C API you can write your own documentation generators. [end snip from the www site] You need a limited time period license to run the product in evaluation mode. One can be obtained in the www site. A permanent license can be purchased there too. - Instalation issues: This port has a hardcoded directory structure which is required to run it. Therefore, some measures are necessary to install it under FreeBSD following handbook rules' 1) All files but binaries are installed according to hier(7) 2) A fake structure is created under ${PREFIX}/lib/understand_c to please the program and soft links are made there to the correct locations under hier(7) 3) The binaries are installed under ${PREFIX}/lib/understand_c/bin and a wrapper is installed under ${PREFIX}/bin pointing to the fake structure 4) Since a license is required to run the program, warnings are issued when either it is installed or a package is added 5) Since the legal status is still being debated with the developers, it will be marked as RESTRICTED for the time being and LEGAL will be updated accordingly
2001-03-10 00:08:58 +01:00
compilers/linux.cfg compilers/msvc.cfg \
2003-04-02 18:48:52 +02:00
compilers/nec_78k0.cfg compilers/neuron.cfg \
New port: Understand can parse a C/C++ project helping reverse engineer it [begin snip from the www site] Understand parses any sized C or C++ project to help you reverse engineer, document and understand it and thus maintain it better. It supports K&R C, ANSI C, or C++ source code. Projects can contain mixed C/C++ code as well. The parser is efficient, fast, and can handle very large projects. Very little is needed to get started - just aim it at your source tree. Optionally (and for more parsing accuracy) add any externally defined macro definitions and include paths. All of this is done from the GUI - you should be able to do an initial analysis of your project in a few minutes. Understand for C++ quickly documents Class inheritance hierarchies (Base Class and Derived Classes), Call and CallBy Trees, Include and Include By Trees, as well as where and how everything in your source code is used (cross reference). Understand for C++ creates detailed automatic documentation about your source code in HTML and text reports Using the PERL and C API you can write your own documentation generators. [end snip from the www site] You need a limited time period license to run the product in evaluation mode. One can be obtained in the www site. A permanent license can be purchased there too. - Instalation issues: This port has a hardcoded directory structure which is required to run it. Therefore, some measures are necessary to install it under FreeBSD following handbook rules' 1) All files but binaries are installed according to hier(7) 2) A fake structure is created under ${PREFIX}/lib/understand_c to please the program and soft links are made there to the correct locations under hier(7) 3) The binaries are installed under ${PREFIX}/lib/understand_c/bin and a wrapper is installed under ${PREFIX}/bin pointing to the fake structure 4) Since a license is required to run the program, warnings are issued when either it is installed or a package is added 5) Since the legal status is still being debated with the developers, it will be marked as RESTRICTED for the time being and LEGAL will be updated accordingly
2001-03-10 00:08:58 +01:00
compilers/msvc16.cfg compilers/sgi.cfg \
2003-04-02 18:48:52 +02:00
compilers/raisonance_8051.cfg \
New port: Understand can parse a C/C++ project helping reverse engineer it [begin snip from the www site] Understand parses any sized C or C++ project to help you reverse engineer, document and understand it and thus maintain it better. It supports K&R C, ANSI C, or C++ source code. Projects can contain mixed C/C++ code as well. The parser is efficient, fast, and can handle very large projects. Very little is needed to get started - just aim it at your source tree. Optionally (and for more parsing accuracy) add any externally defined macro definitions and include paths. All of this is done from the GUI - you should be able to do an initial analysis of your project in a few minutes. Understand for C++ quickly documents Class inheritance hierarchies (Base Class and Derived Classes), Call and CallBy Trees, Include and Include By Trees, as well as where and how everything in your source code is used (cross reference). Understand for C++ creates detailed automatic documentation about your source code in HTML and text reports Using the PERL and C API you can write your own documentation generators. [end snip from the www site] You need a limited time period license to run the product in evaluation mode. One can be obtained in the www site. A permanent license can be purchased there too. - Instalation issues: This port has a hardcoded directory structure which is required to run it. Therefore, some measures are necessary to install it under FreeBSD following handbook rules' 1) All files but binaries are installed according to hier(7) 2) A fake structure is created under ${PREFIX}/lib/understand_c to please the program and soft links are made there to the correct locations under hier(7) 3) The binaries are installed under ${PREFIX}/lib/understand_c/bin and a wrapper is installed under ${PREFIX}/bin pointing to the fake structure 4) Since a license is required to run the program, warnings are issued when either it is installed or a package is added 5) Since the legal status is still being debated with the developers, it will be marked as RESTRICTED for the time being and LEGAL will be updated accordingly
2001-03-10 00:08:58 +01:00
compilers/solaris.cfg compilers/sunos.cfg \
configs/c.cfg fonts/cetus.ttf
2003-04-02 18:48:52 +02:00
DOCS_DIRS= understand_c/wwhelp/wwhimpl/js/scripts \
understand_c/wwhelp/wwhimpl/js/private \
understand_c/wwhelp/wwhimpl/js/images \
understand_c/wwhelp/wwhimpl/js/html \
understand_c/wwhelp/wwhimpl/js \
understand_c/wwhelp/wwhimpl/java/scripts \
understand_c/wwhelp/wwhimpl/java/private \
understand_c/wwhelp/wwhimpl/java/html \
understand_c/wwhelp/wwhimpl/java \
understand_c/wwhelp/wwhimpl/common/scripts \
understand_c/wwhelp/wwhimpl/common/private \
understand_c/wwhelp/wwhimpl/common/images \
understand_c/wwhelp/wwhimpl/common/html \
understand_c/wwhelp/wwhimpl/common \
understand_c/wwhelp/wwhimpl \
understand_c/wwhelp/images \
understand_c/wwhelp \
understand_c/wwhdata/js/search \
understand_c/wwhdata/js \
understand_c/wwhdata/java \
understand_c/wwhdata/common \
understand_c/wwhdata \
understand_c/images \
New port: Understand can parse a C/C++ project helping reverse engineer it [begin snip from the www site] Understand parses any sized C or C++ project to help you reverse engineer, document and understand it and thus maintain it better. It supports K&R C, ANSI C, or C++ source code. Projects can contain mixed C/C++ code as well. The parser is efficient, fast, and can handle very large projects. Very little is needed to get started - just aim it at your source tree. Optionally (and for more parsing accuracy) add any externally defined macro definitions and include paths. All of this is done from the GUI - you should be able to do an initial analysis of your project in a few minutes. Understand for C++ quickly documents Class inheritance hierarchies (Base Class and Derived Classes), Call and CallBy Trees, Include and Include By Trees, as well as where and how everything in your source code is used (cross reference). Understand for C++ creates detailed automatic documentation about your source code in HTML and text reports Using the PERL and C API you can write your own documentation generators. [end snip from the www site] You need a limited time period license to run the product in evaluation mode. One can be obtained in the www site. A permanent license can be purchased there too. - Instalation issues: This port has a hardcoded directory structure which is required to run it. Therefore, some measures are necessary to install it under FreeBSD following handbook rules' 1) All files but binaries are installed according to hier(7) 2) A fake structure is created under ${PREFIX}/lib/understand_c to please the program and soft links are made there to the correct locations under hier(7) 3) The binaries are installed under ${PREFIX}/lib/understand_c/bin and a wrapper is installed under ${PREFIX}/bin pointing to the fake structure 4) Since a license is required to run the program, warnings are issued when either it is installed or a package is added 5) Since the legal status is still being debated with the developers, it will be marked as RESTRICTED for the time being and LEGAL will be updated accordingly
2001-03-10 00:08:58 +01:00
understand_c understand_api/wwhgifs \
understand_api
BIN_FILES= almd almhostid almstatus almtest \
repc understand_c undc
LIB_FILES= libudb_api.a libudb_api.so
pre-fetch:
@${ECHO_MSG} "===> You can select a linux base other than the default (${LINUXBASE})"
@${ECHO_MSG} "===> Just set PREFIX_LINUX=path_desired if you need AND know what you are doing"
@${ECHO_MSG} "===> Don't set this unless you have to. The default is usually a good idea"
do-patch:
@${SED} 's!%%PREFIX%%!${PREFIX}/lib/understand_c/bin/pc-linux_elf!' \
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
.include <bsd.port.pre.mk>
PLIST_SUB= PREFIX_LINUX=${PREFIX_LINUX} \
LINUXBASE="${LINUXBASE}" \
ECHO="${ECHO}" FMT="${FMT}" \
MKDIR="${MKDIR}" LN="${LN} -sf" \
RM="${RM} -f" RMDIR="${RMDIR}" \
TRUE="${TRUE}"
New port: Understand can parse a C/C++ project helping reverse engineer it [begin snip from the www site] Understand parses any sized C or C++ project to help you reverse engineer, document and understand it and thus maintain it better. It supports K&R C, ANSI C, or C++ source code. Projects can contain mixed C/C++ code as well. The parser is efficient, fast, and can handle very large projects. Very little is needed to get started - just aim it at your source tree. Optionally (and for more parsing accuracy) add any externally defined macro definitions and include paths. All of this is done from the GUI - you should be able to do an initial analysis of your project in a few minutes. Understand for C++ quickly documents Class inheritance hierarchies (Base Class and Derived Classes), Call and CallBy Trees, Include and Include By Trees, as well as where and how everything in your source code is used (cross reference). Understand for C++ creates detailed automatic documentation about your source code in HTML and text reports Using the PERL and C API you can write your own documentation generators. [end snip from the www site] You need a limited time period license to run the product in evaluation mode. One can be obtained in the www site. A permanent license can be purchased there too. - Instalation issues: This port has a hardcoded directory structure which is required to run it. Therefore, some measures are necessary to install it under FreeBSD following handbook rules' 1) All files but binaries are installed according to hier(7) 2) A fake structure is created under ${PREFIX}/lib/understand_c to please the program and soft links are made there to the correct locations under hier(7) 3) The binaries are installed under ${PREFIX}/lib/understand_c/bin and a wrapper is installed under ${PREFIX}/bin pointing to the fake structure 4) Since a license is required to run the program, warnings are issued when either it is installed or a package is added 5) Since the legal status is still being debated with the developers, it will be marked as RESTRICTED for the time being and LEGAL will be updated accordingly
2001-03-10 00:08:58 +01:00
# Create hidden structure, the program is hardcoded.
# Therefore, we will install it according to hier
# but will create a symlink structure under PREFIX/lib/understand_c
# to keep the binary happy. The exception are binaries which
# will be done vice-versa.
do-install:
@${MKDIR} ${PREFIX}/lib/understand_c
# Configuration install
.for dir in ${CONF_DIRS}
@${MKDIR} ${PREFIX}/share/understand_c/${dir}
.endfor
.for file in ${CONF_FILES}
@${INSTALL_DATA} ${WRKSRC}/conf/understand/${file} \
${PREFIX}/share/understand_c/${file}
.endfor
@${MKDIR} ${PREFIX}/lib/understand_c/conf
@${LN} -sf ${PREFIX}/share/understand_c \
${PREFIX}/lib/understand_c/conf/understand
@${LN} -sf ${PREFIX}/share/understand_c/license \
${PREFIX}/lib/understand_c/conf
# Documentation installation
.ifndef (NOPORTDOCS)
.for dir in ${DOCS_DIRS}
@${MKDIR} ${PREFIX}/share/doc/understand_c/html/${dir}
@for file in ${WRKSRC}/doc/manuals/html/${dir}/* ; \
do \
if [ -f $${file} ]; \
then \
${INSTALL_DATA} $${file} \
${PREFIX}/share/doc/understand_c/html/${dir} ; \
fi ; \
done
.endfor
@${MKDIR} ${PREFIX}/lib/understand_c/doc/manuals
@${LN} -sf ${PREFIX}/share/doc/understand_c/html \
${PREFIX}/lib/understand_c/doc/manuals/html
.endif /* NOPORTDOCS */
# Binary installation
@${MKDIR} ${PREFIX}/lib/understand_c/bin/pc-linux_elf
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/understand_c
.for file in ${BIN_FILES}
@${INSTALL_SCRIPT} ${WRKSRC}/bin/pc-linux_elf/${file} \
${PREFIX}/lib/understand_c/bin/pc-linux_elf
.if exists(${STRIP})
New port: Understand can parse a C/C++ project helping reverse engineer it [begin snip from the www site] Understand parses any sized C or C++ project to help you reverse engineer, document and understand it and thus maintain it better. It supports K&R C, ANSI C, or C++ source code. Projects can contain mixed C/C++ code as well. The parser is efficient, fast, and can handle very large projects. Very little is needed to get started - just aim it at your source tree. Optionally (and for more parsing accuracy) add any externally defined macro definitions and include paths. All of this is done from the GUI - you should be able to do an initial analysis of your project in a few minutes. Understand for C++ quickly documents Class inheritance hierarchies (Base Class and Derived Classes), Call and CallBy Trees, Include and Include By Trees, as well as where and how everything in your source code is used (cross reference). Understand for C++ creates detailed automatic documentation about your source code in HTML and text reports Using the PERL and C API you can write your own documentation generators. [end snip from the www site] You need a limited time period license to run the product in evaluation mode. One can be obtained in the www site. A permanent license can be purchased there too. - Instalation issues: This port has a hardcoded directory structure which is required to run it. Therefore, some measures are necessary to install it under FreeBSD following handbook rules' 1) All files but binaries are installed according to hier(7) 2) A fake structure is created under ${PREFIX}/lib/understand_c to please the program and soft links are made there to the correct locations under hier(7) 3) The binaries are installed under ${PREFIX}/lib/understand_c/bin and a wrapper is installed under ${PREFIX}/bin pointing to the fake structure 4) Since a license is required to run the program, warnings are issued when either it is installed or a package is added 5) Since the legal status is still being debated with the developers, it will be marked as RESTRICTED for the time being and LEGAL will be updated accordingly
2001-03-10 00:08:58 +01:00
@${STRIP} ${PREFIX}/lib/understand_c/bin/pc-linux_elf/${file}
.endif
2001-09-18 06:04:55 +02:00
@${BRANDELF} -t Linux ${PREFIX}/lib/understand_c/bin/pc-linux_elf/${file}
New port: Understand can parse a C/C++ project helping reverse engineer it [begin snip from the www site] Understand parses any sized C or C++ project to help you reverse engineer, document and understand it and thus maintain it better. It supports K&R C, ANSI C, or C++ source code. Projects can contain mixed C/C++ code as well. The parser is efficient, fast, and can handle very large projects. Very little is needed to get started - just aim it at your source tree. Optionally (and for more parsing accuracy) add any externally defined macro definitions and include paths. All of this is done from the GUI - you should be able to do an initial analysis of your project in a few minutes. Understand for C++ quickly documents Class inheritance hierarchies (Base Class and Derived Classes), Call and CallBy Trees, Include and Include By Trees, as well as where and how everything in your source code is used (cross reference). Understand for C++ creates detailed automatic documentation about your source code in HTML and text reports Using the PERL and C API you can write your own documentation generators. [end snip from the www site] You need a limited time period license to run the product in evaluation mode. One can be obtained in the www site. A permanent license can be purchased there too. - Instalation issues: This port has a hardcoded directory structure which is required to run it. Therefore, some measures are necessary to install it under FreeBSD following handbook rules' 1) All files but binaries are installed according to hier(7) 2) A fake structure is created under ${PREFIX}/lib/understand_c to please the program and soft links are made there to the correct locations under hier(7) 3) The binaries are installed under ${PREFIX}/lib/understand_c/bin and a wrapper is installed under ${PREFIX}/bin pointing to the fake structure 4) Since a license is required to run the program, warnings are issued when either it is installed or a package is added 5) Since the legal status is still being debated with the developers, it will be marked as RESTRICTED for the time being and LEGAL will be updated accordingly
2001-03-10 00:08:58 +01:00
@if [ ! -f ${PREFIX}/bin/${file} ]; \
then \
${LN} -sf understand_c ${PREFIX}/bin/${file} ; \
fi
.endfor
# Library installation
.for file in ${LIB_FILES}
@${INSTALL_DATA} ${WRKSRC}/bin/pc-linux_elf/${file} \
${PREFIX_LINUX}/usr/lib
.endfor
@${LINUXBASE}/sbin/ldconfig
post-install:
# Advertise the PKGMESSAGE
@${SED} 's!/usr/local!${PREFIX}!' ${PKGMESSAGE} | ${FMT}
.include <bsd.port.post.mk>