Ticket #34271: python-1.0.tcl.diff

File python-1.0.tcl.diff, 1.2 KB (added by ryandesign (Ryan Carsten Schmidt), 10 years ago)

proposed patch

  • python-1.0.tcl

     
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    22# $Id$
    33#
    4 # Copyright (c) 2011 The MacPorts Project
     4# Copyright (c) 2011-2014 The MacPorts Project
    55#
    66# Redistribution and use in source and binary forms, with or without
    77# modification, are permitted provided that the following conditions are
     
    8686    if {$action ne "set"} {
    8787        return
    8888    }
    89     global name subport python._addedcode
     89    global configure.pkg_config_path name python.prefix python._addedcode subport
    9090    if {[string match py-* $name]} {
    9191        foreach v [option $option] {
    9292            subport py${v}[string trimleft $name py] { depends_lib port:python${v} }
     
    112112        set addcode 1
    113113    }
    114114    if {[info exists addcode] && ![info exists python._addedcode]} {
     115        configure.pkg_config_path ${python.prefix}/lib/pkgconfig:${configure.pkg_config_path}
    115116        pre-build {
    116117            if {${python.add_archflags}} {
    117118                if {[variant_exists universal] && [variant_isset universal]} {