Ticket #42537: Portfile

File Portfile, 2.7 KB (added by jul_bsd@…, 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# $Id: Portfile 111353 2013-09-19 07:21:56Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                xplico
7version             1.1.0
8categories          security
9platforms           darwin
10maintainers         nomaintainer
11license             GPL-2+CC_BY-NC-SA
12
13description         Network Forensic Analysis Tool (NFAT)
14
15homepage            http://www.xplico.org/
16master_sites        sourceforge
17extract.suffix      .tgz
18
19checksums           rmd160  6eaa5591fe3e5ca0b33e05a53899ef01241db476 \
20                    sha256  3e0854ca7338efe0a0688525ac09c015a0cf8cc16db0840fa5c65351038594ac
21
22depends_lib         port:recode
23depends_build       port:libpcap \
24                    port:sqlite3 \
25                    port:json-c
26## geo-ip? ndpi? ghostpcl(not in ghoscripts port)
27
28use_configure       no
29
30## clang: error: argument unused during compilation: '-rdynamic'
31## gcc-mp-4.9: error: unrecognized command line option '-rdynamic'
32## gcc-mp-4.8: error: unrecognized command line option '-rdynamic'
33## ld: unknown option: -soname
34configure.compiler  macports-gcc-4.9
35## istypes.h: error: two or more data types in declaration specifiers
36
37## xplico Makefile has its own tree and clean it before install...
38build.env           DEFAULT_DIR=${prefix}/var/xplico
39
40pre-build {
41        reinplace "s|^INCLUDE_DIR = |INCLUDE_DIR = -I${prefix}/include |" ${worksrcpath}/Makefile
42## Makefile:48: *** Recursive variable `LDFLAGS' references itself (eventually).  Stop.
43#       reinplace "s|^LDFLAGS = |LDFLAGS = \$(LDFLAGS) |" ${worksrcpath}/Makefile
44        reinplace "s|^LDFLAGS = |LDFLAGS = -L${prefix}/lib |" ${worksrcpath}/Makefile
45## Makefile:103: *** Recursive variable `CFLAGS' references itself (eventually).  Stop.
46#       reinplace "s|^CFLAGS = |CFLAGS = \$(CFLAGS) |" ${worksrcpath}/Makefile
47        reinplace "s|^CFLAGS = -rdynamic |CFLAGS = |" ${worksrcpath}/Makefile
48        reinplace "s|^STRIP = strip|CC = ${configure.cc}\\\nSTRIP = strip|" ${worksrcpath}/Makefile
49        reinplace "s|^all: thirdparty subdir xplico mdl check_version|all: subdir xplico mdl check_version|" ${worksrcpath}/Makefile
50}
51
52livecheck.type      regex
53livecheck.url       ${homepage}/download
54livecheck.regex     "Xplico (\\d+\\.\\d+\\.\\d+\\), "
55
56default_variants +geoip +voip
57
58variant voip {
59        depends_run       port:sox port:lame
60        ## + videosnarf +patch (no port)
61}
62
63variant geoip {
64        depends_build-append port:libgeoip
65        reinplace "s|^GEOIP_LIB =\$(GEOIP_V)/libGeoIP/.libs/libGeoIP.a|GEOIP_LIB =${prefix}/lib/libGeoIP.a|" ${worksrcpath}/Makefile
66        reinplace "s|^INCLUDE_DIR += -I\$(GEOIP_V)/libGeoIP/|INCLUDE_DIR += -I${prefix}/include|" ${worksrcpath}/Makefile
67}
68