# -*- 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

PortSystem              1.0
PortGroup               xcode 1.0
PortGroup               github 1.0

github.setup            robbiehanson KissXML 5.3.3
github.tarball_from     archive
categories              devel
platforms               darwin
license                 BSD
maintainers             nomaintainer
description             ${name} provides a drop-in replacement for Apple's NSXML class cluster in environments without NSXML (e.g. iOS).
long_description        ${name} provides a drop-in replacement for Apple's NSXML class cluster in environments without NSXML (e.g. iOS). \
                        It is implemented atop the defacto libxml2 C library, which comes pre-installed on Mac & iOS. \
                        But it shields you from all the nasty low-level C pointers and malloc's, and provides an easy-to-use Objective-C library.
homepage                https://github.com/robbiehanson/${name}

depends_lib             port:libxml2

xcode.scheme            {KissXML (macOS)}
xcode.target            {KissXML (macOS)}
xcode.configuration     Release
xcode.destroot.type     framework

xcode.destroot.settings     CODE_SIGN_STYLE=Manual \
                            CODE_SIGN_IDENTITY=- \
                            ENABLE_HARDENED_RUNTIME=NO \
                            SKIP_INSTALL=NO \
                            HEADER_SEARCH_PATHS=${prefix}/include/libxml2 \
                            INSTALL_DIR=${destroot}${frameworks_dir} \
                            LD_DYLIB_INSTALL_NAME=${prefix}/Library/Frameworks/${name}.framework/Versions/A/${name} \

# Building will be done in the destroot phase.
# See https://trac.macports.org/ticket/57137
build {}

# xcode PortGroup sets the DerivedData to /var/root/... which is not writeable. This fixes it.
destroot.pre_args-append -derivedDataPath ./DerivedData

checksums               rmd160  075228a1d608cfe8927e8f19cd6de974a474be7b \
                        sha256  fff3062f325609dcf941793f34d46df2181cc418457d33bd7116a83515ad29df \
                        size    66590
