Ticket #12606: Portfile

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