Ticket #15215: Portfile

File Portfile, 1.8 KB (added by xunil@…, 16 years ago)

Updated Portfile, includes updated checksums and version number.

Line 
1# $Id: Portfile 29434 2007-09-23 17:58:38Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            dynamips
6version         0.2.8-RC2
7revision        1
8categories      net
9maintainers     jstrine@vexate.net
10description     Cisco router emulator
11homepage        http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator
12platforms       darwin
13
14long_description \
15                Dynamips emulates a variety of Cisco routers on a \
16                traditional PC.  It supports the emulation of select 7200, \
17                3600, 3700, and 2600 series routers.  It uses real Cisco \
18                IOS images (which are not part of this package).  Of \
19                course, this emulator cannot replace a real router. It is \
20                simply a complementary tool to real labs for administrators \
21                of Cisco networks or people wanting to pass their \
22                CCNA/CCNP/CCIE exams.
23
24master_sites    http://www.ipflow.utc.fr/dynamips
25distname        dynamips-${version}
26checksums       md5 8d12d28684d164fe3312a3fe43c84d2e \
27                sha1 349270690996a1e260b3eceb51ea90f94c25a59e \
28                rmd160 0447a4c0cf516bd2b63259881c7625e26d0d838f
29
30depends_lib     port:libelf \
31                port:libpcap
32
33patchfiles      Makefile.diff
34configure {}
35
36# patch.pre_args set to allow use of unmodified idle_pcs patch from developer
37patch.pre_args  -p1
38
39build.pre_args-append           PREFIX=${prefix}
40destroot.pre_args-append        PREFIX=${prefix}
41
42# compile using nojit if on PowerPC platform
43if {${os.arch} == "powerpc"} {
44        build.pre_args-append           DYNAMIPS_ARCH=nojit
45        destroot.pre_args-append        DYNAMIPS_ARCH=nojit
46}
47
48default_variants        +idle_pcs
49
50variant no_pcap \
51        description {Without support to send/receive external traffic} {
52
53        depends_lib-delete              port:libpcap
54        build.pre_args-append           HAS_PCAP=0
55        destroot.pre_args-append        HAS_PCAP=0
56}
57
58variant idle_pcs \
59        description {With support for multiple idle-pcs. Uses patch \
60                     written by Yannick Le Teigner available at \
61                     http://dynagui.sourceforge.net.} {
62       
63        patchfiles-append       idle_pcs.diff
64}