Ticket #23836: Portfile

File Portfile, 1.8 KB (added by someuser12, 14 years ago)

Portfile proposal

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2
3PortSystem 1.0
4
5name            electric-fence
6version         2.1.13
7revision        0.1
8categories      devel
9maintainers     nomaintainer
10description     a library to detect memory buffers over- and \
11                underruns
12
13long_description    Electric Fence (efence) stops your program on \
14                    the exact instruction that overruns (or \
15                    underruns) a malloc() memory buffer. GDB will \
16                    then display the source-code line that causes \
17                    the bug. It works by using the virtual-memory \
18                    hardware to create a red-zone at the border of \
19                    each buffer - touch that, and your program \
20                    stops. Catch all of those formerly \
21                    impossible-to-catch overrun bugs that have \
22                    been bothering you for years.
23homepage        http://perens.com/FreeSoftware/
24platforms       darwin
25master_sites    http://perens.com/FreeSoftware/ElectricFence/
26distname        ${name}_${version}-${revision}
27worksrcdir      ${name}-${version}
28checksums       md5 59e4e7817a30aff52d8971ce00e1ad35 \
29                sha1 e6765bcb1543272040b806eea706fc7ae9b60524 \
30                rmd160 75e41de7bef263007f24a1053528959f9f7fe1fa
31patchfiles      patch-page.c.diff
32
33use_configure   no
34
35build.target    libefence.a
36build.args      CFLAGS="-g -DPAGE_PROTECTION_VIOLATED_SIGNAL=SIGBUS"
37
38test.run        yes
39test.target     all
40test.args       CFLAGS="-g -DPAGE_PROTECTION_VIOLATED_SIGNAL=SIGBUS"
41
42destroot.destdir LIB_INSTALL_DIR=${destroot}${prefix}/lib MAN_INSTALL_DIR=${destroot}${prefix}/share/man/man3
43
44livecheck.version   ${name}_${version}