Ignore:
Timestamp:
Feb 10, 2010, 5:06:59 PM (9 years ago)
Author:
dluke@…
Message:

clamav - use muniversal port group (fixes #22702)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/clamav/Portfile

    r63624 r63626  
    22
    33PortSystem 1.0
     4PortGroup muniversal 1.0
    45
    56name                    clamav
     
    2930depends_lib             port:libiconv port:zlib port:bzip2 port:ncurses
    3031
     32set merger_dont_diff    ${prefix}/bin/clamav-config
     33
    3134platform darwin 7 {
    3235                        patchfiles patch-clamdtop.c.diff
     
    4245                        file rename "${destroot}${prefix}/etc/freshclam.conf" "${destroot}${prefix}/etc/example-freshclam.conf"
    4346                        file rename "${destroot}${prefix}/etc/clamd.conf" "${destroot}${prefix}/etc/example-clamd.conf"
     47                       
     48                        #muniversal should allow this to be hooked in some way that's less gross
     49                        #this code copied from nspr's portfile
     50                        if {[variant_isset universal]} {
     51                                copy ${destroot}${prefix}/bin/${build_arch}-clamav-config ${destroot}${prefix}/bin/bak-config
     52                                foreach file [glob ${destroot}${prefix}/bin/*clamav-config] {
     53                                        delete $file
     54                                        }
     55                                move ${destroot}${prefix}/bin/bak-config ${destroot}${prefix}/bin/clamav-config
     56                                reinplace "s|-arch ${build_arch}||g" ${destroot}${prefix}/bin/clamav-config
     57                                reinplace "s|-L\$\{exec_prefix\}/lib/${build_arch}||g" ${destroot}${prefix}/bin/clamav-config
     58                                }
    4459                        }
    4560
Note: See TracChangeset for help on using the changeset viewer.