Ticket #19624: Portfile

File Portfile, 1.2 KB (added by jwbacon@…, 16 years ago)

Portfile

Line 
1# $Id: $
2PortSystem      1.0
3name            roboctl
4version         0.3.5
5categories      devel
6maintainers     jwbacon@tds.net
7description     Communication tools for Lego and VEX robots
8long_description        Tools for communicating with and controlling Lego \
9                        Mindstorms and VEX robotics controllers.
10homepage        http://personalpages.tds.net/~jwbacon/Ports
11master_sites    http://personalpages.tds.net/~jwbacon/Ports/distfiles/ \
12                http://jbacon.dyndns.org/~bacon/Ports/distfiles/
13use_configure   no
14platforms       darwin
15
16depends_lib     port:libusb
17
18destroot.destdir        PREFIX=${destroot}${prefix}
19build.cmd       "make depend && make"
20build.args      "LOCALBASE=/opt/local PREFIX=/opt/local MANPREFIX=/opt/local/share"
21destroot.args   "MANPREFIX=/opt/local/share"
22post-patch {
23        reinplace "s|-lbluetooth||g" "${worksrcpath}/Commands/Legoctl/Makefile"   
24        if {${os.major} == 9} {
25                reinplace "s|echo -e|echo|g" "${worksrcpath}/Commands/Legoctl/Makefile"
26                reinplace "s|echo -e|echo|g" "${worksrcpath}/Commands/Vexctl/Makefile"
27                reinplace "s|echo -e|echo|g" "${worksrcpath}/Libs/C/Makefile"
28        }
29}
30checksums        roboctl-0.3.5.tar.gz md5 60dcbaea81d06a632493ff0ddb2e0cdc
31checksums        roboctl-0.3.5.tar.gz sha1 7c6c84a6bc7328ca95c07f12702387d404d44db1
32checksums        roboctl-0.3.5.tar.gz rmd160 a188c924bf4ba01049cb2e0eadc91aeb31f47741