Ticket #38616: Portfile

File Portfile, 1.4 KB (added by a.schuster@…, 11 years ago)
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                    yara
6version                 1.7
7revision                1
8categories              security
9license                 GPL-2+
10platforms               darwin
11maintainers             yendor.net:a.schuster \
12                        openmaintainer
13                       
14description             Malware identification and classification tool
15long_description \
16    YARA is a tool aimed at helping malware researchers to identify and \
17    classify malware samples.
18
19homepage                http://code.google.com/p/yara-project/
20master_sites            googlecode:yara-project
21
22checksums               rmd160  12ca8b2eb7a8b7de3fae8d97e728d4847299d99a \
23                        sha256  fcee06a2f43ab65c88597de54d630a3beee925e7e84c890a8303f08a3fc85c91
24
25post-patch {
26    # fix use of inline for clang compatibility
27    reinplace "s|inline|static inline|g" ${worksrcpath}/libyara/scan.c
28}
29
30
31variant pcre conflicts re2 description "uses pcre library for regular expression parsing" {
32    depends_lib-append      port:pcre
33}
34
35variant re2 conflicts pcre description "uses re2 library for regular expression parsing" {
36    configure.args-append   --with-re2
37    depends_lib-append      port:re2
38}
39
40default_variants        +pcre
41universal_variant       yes