PortGroup xcodePortGroup xcode allows for efficient porting of
Xcode-based opensource software. A minimum Portfile for PortGroup
xcode uses defaults for the configuration, build, and destroot
phases. It also defines some values for Xcode-based software.Using PortGroup xcode is a way to make your port able to
tolerate Xcode version updates because the PortGroup is tested against all
supported Mac OS X and Xcode versions.xcode PortGroup Specific KeywordsPortfiles using PortGroup xcode allow for port authors
to set the following keywords in addition to the general Portfile
keywords.xcode.projectThe path relative to ${build.dir} and
${destroot.dir} of the Xcode project. If unset,
Xcode Tools should be able to determine it automatically. It usually
succeeds if there is only a single project in the directory.Type: optionalDefault: noneExample:xcode.project ${name}.xcodexcode.configurationProject configuration/buildstyle to use.Type: optionalDefault: Example:xcode.configuration Mainxcode.targetIf present, it overrides build.target and
destroot.target.Type: optionalDefault: noneExample:xcode.target ${name}xcode.build.settingsAdditional settings passed to the xcode build tool during the
build phase. These settings should be in the X=Y form.Type: optionalDefault: noneExample:xcode.build.settings FRAMEWORK_SEARCH_PATHS=${prefix}/Library/Frameworksxcode.destroot.typeType of project that will be installed. This tells the xcode
PortGroup how to destroot the project. Correct values are
and .Type: optionalDefault: Example:xcode.destroot.type frameworkxcode.destroot.pathWhere to install the build product.Type: optionalDefault: ${frameworks_dir}
or ${applications_dir} depending on
xcode.destroot.type.xcode.destroot.settingsAdditional settings passed to the xcode build tool during the
destroot phase. These settings should be in the X=Y form.Type: optionalDefault: noneExample:xcode.destroot.settings SKIP_INSTALL=NOxcode.universal.settingsSettings passed to the xcode build tool when the +universal
variant is selected. These settings should be in the X=Y
form.Type: optionalDefault: ARCHS="${universal_archs}"
MACOSX_DEPLOYMENT_TARGET=${universal_target}xcode.universal.sdkSDK to use when the +universal variant is selected. The
argument may be an absolute path to an SDK, or the canonical name of
an SDK.Type: optionalDefault: ${universal_sysroot}xcode PortGroup SugarPortfiles using the xcode PortGroup do not need to define the
following variables:categoriesDefault: aquaplatformsDefault: macosxuse_configureDefault: noPortfile-Phase Keywords Affecting the xcode PortGroupThe following Portfile phase keywords affect the xcode PortGroup in
a unique way. In most cases, you will not need to set any of these
keywords in the Portfile. See portfile-phase7build.cmdDefault: ${xcodebuildcmd}.build.targetDefault: ""This variable will be ignored if
xcode.target is set.build.argsDefault: builddestroot.cmdDefault: ${xcodebuildcmd}destroot.targetDefault: ""This variable will be ignored if
xcode.target is set.