# ex:ts=8 # Ports collection makefile for: gnucap # Date created: Feb 7, 2002 # Whom: ijliao # # $FreeBSD$ # PORTNAME= gnucap PORTVERSION= 0.34 CATEGORIES= cad MASTER_SITES= http://www.gnucap.org/ \ http://www.geda.seul.org/dist/ \ http://www.kettering.edu/~adavis/gnucap/ MAINTAINER= ports@FreeBSD.org COMMENT= The Gnu Circuit Analysis Package USE_REINPLACE= yes USE_GMAKE= yes HAS_CONFIGURE= yes MAKE_ARGS= CCC="${CXX}" CCFLAGS="${CXXFLAGS}" CFLAGS+= -DUNIX -DNDEBUG -DNEEDS_IS_INF -DNEEDS_IS_NAN -I.. MAN1= gnucap-ibis.1 gnucap.1 .include .if ${OSVERSION} >= 502126 BROKEN= "Does not compile with gcc 3.4.2" .endif post-patch: @${REINPLACE_CMD} -e 's|echo|true|g' ${WRKSRC}/src/configure do-install: ${INSTALL_PROGRAM} ${WRKSRC}/ibis/O/gnucap-ibis ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/modelgen/O/gnucap-modelgen ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/src/O/gnucap ${PREFIX}/bin .for file in *.1 ${INSTALL_MAN} ${WRKSRC}/doc/${file} ${MANPREFIX}/man/man1 .endfor .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for file in acs-tutorial history relnotes.* whatisit ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR} .endfor @${MKDIR} ${DOCSDIR}/man .for file in *.pdf ${INSTALL_DATA} ${WRKSRC}/man/${file} ${DOCSDIR}/man .endfor @${MKDIR} ${DOCSDIR}/man/html .for file in *.html ${INSTALL_DATA} ${WRKSRC}/man/html/${file} ${DOCSDIR}/man/html .endfor @${MKDIR} ${EXAMPLESDIR} .for file in README runall *.ckt *.doc ${INSTALL_DATA} ${WRKSRC}/examples/${file} ${EXAMPLESDIR} .endfor .endif .include