Ignore:
Timestamp:
Jan 27, 2014, 3:05:09 PM (6 years ago)
Author:
dluke@…
Message:

libmilter: version bump, build with os.major-specific site.config.m4 if available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/mail/libmilter/Portfile

    r105475 r116512  
    44name                    libmilter
    55set major_version       8.14
    6 version                 ${major_version}.7
     6version                 ${major_version}.8
    77categories              mail
    88maintainers             geeklair.net:dluke
     
    2525distname                sendmail.${version}
    2626
    27 checksums       md5     348eedfab0ed00931f2df94e78f22c43 \
    28                 sha1    7a16bfd3f14e877b30e6dff4952ab6ae49951314 \
    29                 rmd160  6bef8342f9b5e207a7e5e34ece470becf08ef332
     27checksums       md5     73bfc621c75dbdd3d719e54685d92577 \
     28                sha1    dabe370ff9c6a95039e4e58e4e2a67ab48f8b9b5 \
     29                rmd160  cd6a3c9a9cd154dcbff186c9391f038c72cc56c9
    3030
    3131worksrcdir      sendmail-${version}
     
    3333set arch_flags "${configure.cc_archflags}"
    3434post-patch {
    35         file copy ${worksrcpath}/devtools/OS/Darwin.10.x \
    36                 ${worksrcpath}/devtools/Site/site.config.m4
    37         reinplace "s|-DDARWIN=100000|-DDARWIN=${os.major}0000|" \
    38                 ${worksrcpath}/devtools/Site/site.config.m4
     35        if [file exists ${worksrcpath}/devtools/OS/Darwin.${os.major}.x] {
     36                file copy ${worksrcpath}/devtools/OS/Darwin.${os.major}.x \
     37                        ${worksrcpath}/devtools/Site/site.config.m4
     38        } else {
     39                file copy ${worksrcpath}/devtools/OS/Darwin.10.x \
     40                        ${worksrcpath}/devtools/Site/site.config.m4
     41                reinplace "s|-DDARWIN=100000|-DDARWIN=${os.major}0000|" \
     42                        ${worksrcpath}/devtools/Site/site.config.m4
     43        }
    3944        if [variant_isset universal] {
    4045                reinplace "s|\${Extra_CC_Flags}|${arch_flags}|" \
Note: See TracChangeset for help on using the changeset viewer.