Ignore:
Timestamp:
May 16, 2010, 8:46:31 PM (10 years ago)
Author:
blb@…
Message:

lang/python26, its portgroup, and guide - push arch flags from the installed
python Makefile into the portgroup for better control by the py26 ports (and
document python.add_archflags in the guide)
Ticket #24802

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/python26-1.0.tcl

    r66529 r67722  
    4747depends_lib             port:python26
    4848
    49 use_configure   no
     49# we want the default universal variant to be added, so no 'use_configure no'
     50configure       {}
    5051
    5152build.cmd               ${python.bin} setup.py --no-user-cfg
    5253build.target    build
     54options python.add_archflags
     55default python.add_archflags yes
     56pre-build {
     57    if {${python.add_archflags}} {
     58        if {[variant_exists universal] && [variant_isset universal]} {
     59            build.env-append CFLAGS="${configure.universal_cflags}" \
     60                             OBJCFLAGS="${configure.universal_cflags}" \
     61                             CXXFLAGS="${configure.universal_cxxflags}" \
     62                             LDFLAGS="${configure.universal_ldflags}"
     63        } else {
     64            build.env-append CFLAGS="${configure.cc_archflags}" \
     65                             OBJCFLAGS="${configure.objc_archflags}" \
     66                             CXXFLAGS="${configure.cxx_archflags}" \
     67                             LDFLAGS="${configure.ld_archflags}" \
     68                             FFLAGS="${configure.f77_archflags}" \
     69                             F90FLAGS="${configure.f90_archflags}" \
     70                             FCFLAGS="${configure.fc_archflags}"
     71        }
     72    }
     73}
    5374
    5475destroot.cmd    ${python.bin} setup.py --no-user-cfg
Note: See TracChangeset for help on using the changeset viewer.