Changes between Initial Version and Version 1 of Ticket #55577, comment 5


Ignore:
Timestamp:
Jan 25, 2018, 2:49:44 PM (7 years ago)
Author:
RJVB (René Bertin)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55577, comment 5

    initial v1  
    44
    55{{{
    6 if {[variant_isset pcre] && ${prefix} ne ""} {
     6if {[variant_isset pcre]} {
    77    depends_build-append \
    88                    port:pkgconfig
    9     # fetch the flags required for building with the local pcre2 install
    10     set CFLAGS      "${CFLAGS} [exec ${prefix}/bin/pkg-config --cflags libpcre2-8]"
     9    if {[file exists ${prefix}/bin/pkg-config]} {
     10        # fetch the flags required for building with the local pcre2 install
     11        set CFLAGS  "${CFLAGS} [exec ${prefix}/bin/pkg-config --cflags libpcre2-8]"
     12    }
    1113}
    1214}}}
    13 
    14 (checking $prefix against "" is for portindex but probably redundant, I just make it a habit nowadays.)