Ticket #31795: Portfile

File Portfile, 1.6 KB (added by lrenaud (Luke), 13 years ago)

Example Portfile update using the +xspice variant

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 73756 2010-11-24 09:06:38Z and.damore@macports.org $
3
4PortSystem      1.0
5
6name            ng-spice
7version         21
8categories      science cad
9maintainers     nomaintainer
10platforms       darwin
11description     Circuit simulator based on Spice 3f5
12long_description \
13                Ngspice is a mixed-level/mixed-signal circuit simulator. Its \
14                code is based on three open source software packages: Spice3f5, \
15                Cider1b1 and Xspice. Ngspice is part of gEDA project, a full \
16                GPL'd suite of Electronic Design Automation tools. \
17                Note: this port does not compile the Cider and Xspice modules.
18
19homepage        http://ngspice.sourceforge.net/
20master_sites    sourceforge:ngspice
21
22distname        ${name}-rework-${version}
23
24checksums       md5     68ae18d4c1f7312a1b8e7a5c0858b146 \
25                sha1    4a66885b0de2333c0d07cefc6af41b557c46ffde \
26                rmd160  f48bc6549a08cc9c3e0886fd4e09ff46debf86dc
27
28worksrcdir      ngspice-${version}
29
30depends_lib     port:xorg-libXaw
31
32configure.args  --x-includes=${prefix}/include \
33                --x-libraries=${prefix}/lib \
34                --with-editline=yes \
35                --enable-x \
36
37livecheck.type  regex
38livecheck.url   http://sourceforge.net/projects/ngspice/files/
39livecheck.regex "${name}-rework-(\\d+)${extract.suffix}"
40
41variant xspice description {Adds Xspice code model support, including spice2poly} {
42    configure.args-append \
43        --enable-xspice
44}