Ticket #12737: Portfile

File Portfile, 1.7 KB (added by jstrine@…, 17 years ago)

Updated Portfile

Line 
1# $Id:
2PortSystem 1.0
3name            dynamips
4version         0.2.7
5revision        1
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        destroot.pre_args-append        DYNAMIPS_ARCH=nojit
43}
44
45default_variants        +idle_pcs
46
47variant no_pcap \
48        description {Without support to send/receive external traffic} {
49
50        depends_lib-delete              port:libpcap
51        build.pre_args-append           HAS_PCAP=0
52        destroot.pre_args-append        HAS_PCAP=0
53}
54
55variant idle_pcs \
56        description {With support for multiple idle-pcs. Uses patch
57                     written by Yannick Le Teigner available at
58                     http://dynagui.sourceforge.net.} {
59       
60        patchfiles-append       idle_pcs.diff
61}