# -*- 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
github.setup VirusTotal yara 3.11.0 v
description Malware identification and classification tool
YARA is a tool aimed at helping malware researchers to identify and \
classify malware samples.
checksums rmd160 ebdc9981ee08bf1866e7e2000cebc0c99e74cf0b \
sha256 2ee3b38a0df9a28aac82cd343dd4e6e20886dce6cc40d45d0b3bb689fd02168c \
if {${subport} eq ${name}} {
depends_build port:autoconf \
depends_lib port:libmagic \
path:lib/libssl.dylib:openssl \
system -W ${worksrcpath} "./bootstrap.sh"
# If previous yara is installed, this build will fail since
# /opt/local/include is before ./libyara/include
# so swap CPPFLAGS and CFLAGS
# Remove this upon the next release after verifying it is not needed.
reinplace "s|\$(CPPFLAGS) \$(AM_CFLAGS) \$(CFLAGS)|\$(CFLAGS) \$(AM_CFLAGS) \$(CPPFLAGS)|" ${worksrcpath}/Makefile
reinplace "s|\$(DEFAULT_INCLUDES) \$(INCLUDES) \$(AM_CPPFLAGS) \$(CPPFLAGS)|\$(DEFAULT_INCLUDES) \$(INCLUDES) \$(AM_CPPFLAGS) \$(CFLAGS)|" ${worksrcpath}/Makefile
reinplace "s|\t\$(AM_CFLAGS) \$(CFLAGS)|\t\$(AM_CFLAGS) \$(CPPFLAGS)|" ${worksrcpath}/Makefile
configure.cflags-append -std=gnu89
configure.args-append --with-crypto \
set python.versions {27 35 36 37 38}
foreach v ${python.versions} {
set python.branch [string range ${python.version} 0 end-1].[string index ${python.version} end]
set python.bin ${prefix}/bin/python${python.branch}
set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch}