Ignore:
Timestamp:
Feb 28, 2007, 10:34:45 AM (13 years ago)
Author:
pipping@…
Message:
  • fix variant universal
  • add testsuite
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/libpng/Portfile

    r22296 r22414  
    2929configure.env   CFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
    3030
     31if {[llength [info commands configure.universal_ldflags-append]] > 0} {
     32    configure.universal_ldflags-append  -L${prefix}/lib
     33    configure.universal_cflags-append   -I${prefix}/include
     34} else {
     35    variant universal {
     36        return -code error "You need to be running MacPorts 1.4.0 or higher to \
     37        use this variant (universal)."
     38    }
     39}
     40
     41test.run        yes
     42test.target     check
     43
    3144post-destroot   {
    3245        system "ranlib ${destroot}${prefix}/lib/libpng12.a"
     
    3649
    3750platform darwin 8 {
    38         configure.env-append CC=/usr/bin/gcc-4.0 CXX=/usr/bin/g++-4.0 CPP=/usr/bin/cpp-4.0
     51        configure.env-append    CC=/usr/bin/gcc-4.0 \
     52                            CXX=/usr/bin/g++-4.0 \
     53                            CPP=/usr/bin/cpp-4.0
    3954}
    40 
    41 variant universal {
    42         configure.args-append --disable-dependency-tracking
    43         configure.env-append CFLAGS="-I${prefix}/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" LDFLAGS="-L${prefix}/lib -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
    44 }
Note: See TracChangeset for help on using the changeset viewer.