Ignore:
Timestamp:
Nov 18, 2012, 9:44:48 AM (7 years ago)
Author:
ryandesign@…
Message:

cmake-1.0.tcl: put the whole pre-configure block in a "platform darwin" block because everything it does is concerned with OSX variables

File:
1 edited

Legend:

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

    r96776 r99814  
    11# -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
    22# $Id$
    3 
     3#
    44# Copyright (c) 2009 Orville Bennett <illogical1 at gmail.com>
    5 # Copyright (c) 2010 The MacPorts Project
     5# Copyright (c) 2010-2012 The MacPorts Project
    66# All rights reserved.
    77#
     
    5656                    -Wno-dev
    5757
     58platform darwin {
    5859pre-configure {
    59     if {${os.platform} == "darwin" && (![variant_isset universal] || ![variant_exists universal])} {
     60        if {![variant_isset universal] || ![variant_exists universal]} {
    6061        configure.args-append \
    6162            -DCMAKE_OSX_ARCHITECTURES=\"${configure.build_arch}\"
     
    6768    } else {
    6869        configure.args-append -DCMAKE_OSX_SYSROOT=/
     70        }
    6971    }
    7072}
Note: See TracChangeset for help on using the changeset viewer.