Lines 2-33
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= gspiceui |
4 |
PORTNAME= gspiceui |
5 |
PORTVERSION= 1.0.00 |
5 |
PORTVERSION= 1.1.00 |
6 |
PORTREVISION= 8 |
|
|
7 |
CATEGORIES= cad |
6 |
CATEGORIES= cad |
8 |
MASTER_SITES= SF/${PORTNAME}/gSpiceUI/${PORTNAME}-v${PORTVERSION} |
7 |
MASTER_SITES= SF/${PORTNAME}/gSpiceUI/${PORTNAME}-v${PORTVERSION} |
9 |
DISTNAME= ${PORTNAME}-v${PORTVERSION} |
8 |
DISTNAME= ${PORTNAME}-v${PORTVERSION} |
10 |
|
9 |
|
11 |
MAINTAINER= kevinz5000@gmail.com |
10 |
MAINTAINER= kevinz5000@gmail.com |
12 |
COMMENT= GUI frontend to gnucap and ngspice circuit simulators |
11 |
COMMENT= GUI for ngspice and gnucap circuit simulators |
13 |
|
12 |
|
14 |
LICENSE= GPLv2 |
13 |
LICENSE= GPLv3 |
15 |
|
|
|
16 |
RUN_DEPENDS= # none if no options are set |
17 |
|
14 |
|
18 |
OPTIONS_DEFINE= DOCS EXAMPLES |
15 |
OPTIONS_DEFINE= DOCS EXAMPLES |
19 |
OPTIONS_GROUP= BACKEND |
|
|
20 |
|
21 |
OPTIONS_GROUP_BACKEND= GNUCAP NGSPICE |
22 |
|
23 |
GNUCAP_DESC= Depend on gnucap as a simulation backend |
24 |
NGSPICE_DESC= Depend on ngspice as a simulation backend |
25 |
|
16 |
|
26 |
OPTIONS_DEFAULT= NGSPICE |
17 |
USE_WX= 2.8 3.0 |
27 |
|
|
|
28 |
USE_WX= 2.8+ |
29 |
WX_UNICODE= yes |
18 |
WX_UNICODE= yes |
30 |
USES= gmake compiler:c++11-lib |
19 |
USES= compiler:c++11-lib gmake pkgconfig |
|
|
20 |
|
21 |
CXXFLAGS+= -std=c++11 |
31 |
|
22 |
|
32 |
DESKTOP_ENTRIES= "GSpiceUI" "Circuit Simulator GUI" \ |
23 |
DESKTOP_ENTRIES= "GSpiceUI" "Circuit Simulator GUI" \ |
33 |
"${PREFIX}/share/pixmaps/gspiceui-48x48.xpm" \ |
24 |
"${PREFIX}/share/pixmaps/gspiceui-48x48.xpm" \ |
Lines 38-55
PORTEXAMPLES= *
Link Here
|
38 |
PLIST_FILES= bin/gspiceui share/pixmaps/gspiceui-48x48.xpm \ |
29 |
PLIST_FILES= bin/gspiceui share/pixmaps/gspiceui-48x48.xpm \ |
39 |
man/man1/gspiceui.1.gz |
30 |
man/man1/gspiceui.1.gz |
40 |
|
31 |
|
41 |
GNUCAP_RUN_DEPENDS= gnucap:${PORTSDIR}/cad/gnucap |
|
|
42 |
NGSPICE_RUN_DEPENDS= ngspice:${PORTSDIR}/cad/ngspice_rework |
43 |
|
44 |
post-patch: |
32 |
post-patch: |
45 |
@${REINPLACE_CMD} -e \ |
33 |
@${REINPLACE_CMD} -e 's|share/gspiceui|${DOCSDIR}|g' \ |
46 |
's|:= -Ofast -pipe|+= -I.|g ; \ |
34 |
${WRKSRC}/src/main/HelpTasks.cpp |
47 |
s|^INCLUDES |#INCLUDES |g ; \ |
|
|
48 |
s|$$(WXCFG)|$$(WX_CONFIG)|g ; \ |
49 |
s|$$(CC)|$$(CXX)|g' ${WRKSRC}/src/Makefile |
50 |
@${REINPLACE_CMD} -e \ |
51 |
's|share/gspiceui|${DOCSDIR}|g' \ |
52 |
${WRKSRC}/src/main/HelpTasks.cpp |
53 |
|
35 |
|
54 |
do-install: |
36 |
do-install: |
55 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/gspiceui ${STAGEDIR}${PREFIX}/bin |
37 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/gspiceui ${STAGEDIR}${PREFIX}/bin |