You've already forked macports-base
mirror of
https://github.com/macports/macports-base.git
synced 2026-07-12 18:18:43 -07:00
add configure.macosx_deployment_target option
git-svn-id: https://svn.macports.org/repository/macports/trunk/base@28550 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
|
||||
Unreleased:
|
||||
|
||||
- add configure.macosx_deployment_target for configure flags
|
||||
|
||||
- add configure.javac/classpath for Java flags
|
||||
|
||||
- add configure.fflags/fcflags/f90flags for Fortran flags
|
||||
|
||||
@@ -846,6 +846,14 @@ Flags to put in the CLASSPATH environment variable when invoking the configure s
|
||||
.br
|
||||
.Sy Type:
|
||||
.Em optional
|
||||
.It Ic configure.macosx_deployment_target
|
||||
Flags to put in the MACOSX_DEPLOYMENT_TARGET environment variable when invoking the configure script.
|
||||
.br
|
||||
.Sy Type:
|
||||
.Em optional
|
||||
.br
|
||||
.Sy Example:
|
||||
.Dl configure.macosx_deployment_target 10.4
|
||||
.It Ic configure.cc
|
||||
C-compiler to put in the CC environment variable when invoking the configure script.
|
||||
.br
|
||||
|
||||
@@ -53,7 +53,7 @@ default xmkmf.dir {${worksrcpath}}
|
||||
default use_configure yes
|
||||
|
||||
# Configure special environment variables.
|
||||
options configure.cflags configure.cppflags configure.cxxflags configure.ldflags configure.fflags configure.f90flags configure.fcflags configure.classpath
|
||||
options configure.cflags configure.cppflags configure.cxxflags configure.ldflags configure.fflags configure.f90flags configure.fcflags configure.classpath configure.macosx_deployment_target
|
||||
# We could have default debug/optimization flags at some point.
|
||||
default configure.cflags {-O2}
|
||||
default configure.cppflags {"-I${prefix}/include"}
|
||||
@@ -63,6 +63,7 @@ default configure.fflags {-O2}
|
||||
default configure.f90flags {-O2}
|
||||
default configure.fcflags {-O2}
|
||||
default configure.classpath {}
|
||||
default configure.macosx_deployment_target {}
|
||||
|
||||
# Universal options & default values.
|
||||
options configure.universal_args configure.universal_cflags configure.universal_cppflags configure.universal_cxxflags configure.universal_ldflags configure.universal_env
|
||||
@@ -118,7 +119,7 @@ proc select_compiler {info args} {
|
||||
proc configure_main {args} {
|
||||
global [info globals]
|
||||
global worksrcpath use_configure use_autoconf use_automake use_xmkmf
|
||||
global configure.env configure.cflags configure.cppflags configure.cxxflags configure.ldflags configure.fflags configure.f90flags configure.fcflags configure.classpath
|
||||
global configure.env configure.cflags configure.cppflags configure.cxxflags configure.ldflags configure.fflags configure.f90flags configure.fcflags configure.classpath configure.macosx_deployment_target
|
||||
global configure.cc configure.cxx configure.cpp configure.f77 configure.f90 configure.fc configure.javac configure.compiler prefix
|
||||
global os.platform os.major
|
||||
|
||||
@@ -240,6 +241,7 @@ proc configure_main {args} {
|
||||
append_list_to_environment_value configure "F90FLAGS" ${configure.f90flags}
|
||||
append_list_to_environment_value configure "FCFLAGS" ${configure.fcflags}
|
||||
append_list_to_environment_value configure "CLASSPATH" ${configure.classpath}
|
||||
append_list_to_environment_value configure "MACOSX_DEPLOYMENT_TARGET" ${configure.macosx_deployment_target}
|
||||
|
||||
# Execute the command (with the new environment).
|
||||
if {[catch {command_exec configure} result]} {
|
||||
|
||||
Reference in New Issue
Block a user