3be3e90f93
- Switched to automake 1.11.6, see CVE-2012-3386. - #14669: Fixed extraction of CC from gmp.h. - Fixed case of intermediate zero real or imaginary part in mpc_fma, found by hydra with GMP_CHECK_RANDOMIZE=1346362345. This is on top of the following changes from version 1.0 - Licence change towards LGPLv3+ for the code and GFDLv1.3+ (with no invariant sections) for the documentation. - 100% of all lines are covered by tests - Renamed functions . mpc_mul_2exp to mpc_mul_2ui . mpc_div_2exp to mpc_div_2ui - 0^0, which returned (NaN,NaN) previously, now returns (1,+0). - Removed compatibility with K&R compilers, which was untestable due to lack of such compilers. - New functions . mpc_log10 . mpc_mul_2si, mpc_div_2si - Speed-ups . mpc_fma - Bug fixes . mpc_div and mpc_norm now return a value indicating the effective rounding direction, as the other functions. . mpc_mul, mpc_sqr and mpc_norm now return correct results even if there are over- or underflows during the computation. . mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has infinite part and equals output variable is corrected. . mpc_fr_sub: Wrong return value for imaginary part is corrected. Convert to the new LIB_DEPENDS standard and remove hard-coded .so versions from a couple of dependent ports. Bump PORTREVISIONS of all dependent ports. PR: 183141 Approved by: portmgr (bdrewery)
84 lines
2.0 KiB
Makefile
84 lines
2.0 KiB
Makefile
# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gspiceui
|
|
PORTVERSION= 1.0.00
|
|
PORTREVISION= 4
|
|
CATEGORIES= cad
|
|
MASTER_SITES= SF/${PORTNAME}/gSpiceUI/${PORTNAME}-v${PORTVERSION}
|
|
DISTNAME= ${PORTNAME}-v${PORTVERSION}
|
|
|
|
MAINTAINER= kevinz5000@gmail.com
|
|
COMMENT= GUI frontend to gnucap and ngspice circuit simulators
|
|
|
|
LICENSE= GPLv2
|
|
|
|
RUN_DEPENDS= # none if no options are set
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
OPTIONS_GROUP= BACKEND
|
|
|
|
OPTIONS_GROUP_BACKEND= GNUCAP NGSPICE
|
|
|
|
GNUCAP_DESC= Depend on gnucap as a simulation backend
|
|
NGSPICE_DESC= Depend on ngspice as a simulation backend
|
|
|
|
OPTIONS_DEFAULT= NGSPICE
|
|
|
|
USE_WX= 2.6+
|
|
WX_UNICODE= yes
|
|
USE_GCC= yes
|
|
USE_GMAKE= yes
|
|
|
|
DESKTOP_ENTRIES= "GSpiceUI" "Circuit Simulator GUI" \
|
|
"${PREFIX}/share/pixmaps/gspiceui-48x48.xpm" \
|
|
"gspiceui" "Science;Electronics;" false
|
|
|
|
MAN1= gspiceui.1
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
PLIST_FILES= bin/gspiceui share/pixmaps/gspiceui-48x48.xpm
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MGNUCAP}
|
|
RUN_DEPENDS+= gnucap:${PORTSDIR}/cad/gnucap
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNGSPICE}
|
|
RUN_DEPENDS+= ngspice:${PORTSDIR}/cad/ngspice_rework
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|:= -Ofast -pipe|+= -I.|g ; \
|
|
s|^INCLUDES |#INCLUDES |g ; \
|
|
s|$$(WXCFG)|$$(WX_CONFIG)|g ; \
|
|
s|$$(CC)|$$(CXX)|g' ${WRKSRC}/src/Makefile
|
|
@${REINPLACE_CMD} -e \
|
|
's|share/gspiceui|${DOCSDIR}|g' \
|
|
${WRKSRC}/src/main/HelpTasks.cpp
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/gspiceui ${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/src/icons/gspiceui-48x48.xpm \
|
|
${PREFIX}/share/pixmaps
|
|
${INSTALL_MAN} ${WRKSRC}/gspiceui.1 ${MANPREFIX}/man/man1
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for dir in html
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${DOCSDIR} \
|
|
"! -name Makefile")
|
|
.endfor
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
.for dir in lib sch
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${EXAMPLESDIR} \
|
|
"! -name Makefile")
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|