PortSystem 1.0
PortGroup xcode 1.0

name                    MacPorts_Framework
version                 1.2.1
revision                1
categories              devel macports framework
license                 BSD
maintainers             nomaintainer
description             Cocoa framework for MacPorts.
long_description    \
    MacPorts.framework is a framework for linking Cocoa applications to the \
    MacPorts infrastructure.
homepage                https://www.macports.org
#master_sites
#distname               ${name}
#checksums              md5 c586fd603d9978b306aee428ea39e329

fetch.type              svn
svn.url                 https://svn.macports.org/repository/macports/contrib/MacPorts_Framework
svn.revision            86927

worksrcdir              MacPorts_Framework

xcode.target            MacPorts

xcode.configuration     Release

platform darwin 8 {
    pre-fetch {
        ui_error "${name} requires Mac OS X 10.5 or greater."
    }
}

platform darwin 14 {
    # see https://trac.macports.org/ticket/45835

    build.pre_args         GCC_ENABLE_OBJC_GC=NO
    destroot.pre_args      GCC_ENABLE_OBJC_GC=NO
}

# this port does not build with the new xcode build system at present
if {[vercmp ${xcodeversion} 10.0] >= 0} {
    build.pre_args      -UseNewBuildSystem=NO
    destroot.pre_args   -UseNewBuildSystem=NO
}

xcode.destroot.type     framework

#Clean up MPHelperInstallTool and MPHelperTool from directory
post-destroot {
  file delete ${destroot}${frameworks_dir}/MPHelperTool \
    ${destroot}${frameworks_dir}/MPHelperInstallTool
}
