svn commit: r344830 - head/cad/gspiceui
Pawel Pekala
pawel at FreeBSD.org
Mon Feb 17 23:10:40 UTC 2014
Author: pawel
Date: Mon Feb 17 23:10:39 2014
New Revision: 344830
URL: http://svnweb.freebsd.org/changeset/ports/344830
QAT: https://qat.redports.org/buildarchive/r344830/
Log:
- Support staging [1]
- Use option helpers and install docs and examples files implicitly
allowing to remove bsd.port.options.mk inclusion
PR: ports/186800 [1]
Submitted by: maintainer
Modified:
head/cad/gspiceui/Makefile
Modified: head/cad/gspiceui/Makefile
==============================================================================
--- head/cad/gspiceui/Makefile Mon Feb 17 23:02:06 2014 (r344829)
+++ head/cad/gspiceui/Makefile Mon Feb 17 23:10:39 2014 (r344830)
@@ -28,27 +28,19 @@ OPTIONS_DEFAULT= NGSPICE
USE_WX= 2.6+
WX_UNICODE= yes
USE_GCC= yes
-USE_GMAKE= yes
+USES= gmake
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
+PLIST_FILES= bin/gspiceui share/pixmaps/gspiceui-48x48.xpm \
+ man/man1/gspiceui.1.gz
-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
+GNUCAP_RUN_DEPENDS= gnucap:${PORTSDIR}/cad/gnucap
+NGSPICE_RUN_DEPENDS= ngspice:${PORTSDIR}/cad/ngspice_rework
post-patch:
@${REINPLACE_CMD} -e \
@@ -61,23 +53,17 @@ post-patch:
${WRKSRC}/src/main/HelpTasks.cpp
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/gspiceui ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/gspiceui ${STAGEDIR}${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} \
+ ${STAGEDIR}${PREFIX}/share/pixmaps
+ ${INSTALL_MAN} ${WRKSRC}/gspiceui.1 ${STAGEDIR}${MANPREFIX}/man/man1
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR} \
"! -name Makefile")
-.endfor
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
- @${MKDIR} ${EXAMPLESDIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for dir in lib sch
- @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${EXAMPLESDIR} \
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${EXAMPLESDIR} \
"! -name Makefile")
.endfor
-.endif
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list