source: trunk/dports/net/dynamips/Portfile

Last change on this file was 114328, checked in by ryandesign@…, 4 years ago

use eq and ne instead of == and != when comparing ${os.arch}, ${configure.build_arch}, ${build_arch}, and some port-specific variables for referring to architectures

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 114328 2013-12-05 10:21:52Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            dynamips
6version         0.2.7
7revision        2
8categories      net
9maintainers     vexate.net:jstrine
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 0fe1875bb4e7e3624ca420dd75c85279 \
27                sha1 6f65a2e92f5d27aca9d8608369cb20c9539a8121
28
29depends_lib     port:libelf \
30                port:libpcap
31
32patchfiles      Makefile.diff
33use_configure no
34
35# patch.pre_args set to allow use of unmodified idle_pcs patch from developer
36patch.pre_args  -p1
37
38build.pre_args-append           PREFIX=${prefix} CC=${configure.cc}
39build.env-append            CFLAGS="${configure.cc_archflags}"
40use_parallel_build          no
41
42destroot.pre_args-append        PREFIX=${prefix} CC=${configure.cc}
43destroot.env-append         CFLAGS="${configure.cc_archflags}"
44
45if {${build_arch} eq "x86_64"} {
46        set dynamips_arch amd64
47} elseif {${build_arch} eq "i386"} {
48    set dynamips_arch x86
49} else {
50    set dynamips_arch nojit
51}
52build.pre_args-append           DYNAMIPS_ARCH=${dynamips_arch}
53destroot.pre_args-append        DYNAMIPS_ARCH=${dynamips_arch}
54
55default_variants        +idle_pcs
56
57variant no_pcap \
58        description {Without support to send/receive external traffic} {
59
60        depends_lib-delete              port:libpcap
61        build.pre_args-append           HAS_PCAP=0
62        destroot.pre_args-append        HAS_PCAP=0
63}
64
65variant idle_pcs \
66        description {With support for multiple idle-pcs. Uses patch \
67                     written by Yannick Le Teigner available at \
68                     http://dynagui.sourceforge.net.} {
69       
70        patchfiles-append       idle_pcs.diff
71}
Note: See TracBrowser for help on using the repository browser.