# -*- 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
PortGroup xcodeversion 1.0
github.setup ridiculousfish HexFiend 2.9.0 v
checksums rmd160 ba4276249a262c1b808baafe3aa580ecfa75f224 \
sha256 158d398c7f723a1b1e622cabac7dd80b5556a64c8b649ab88e9989f45d2a39cc \
maintainers {cal @neverpanic} openmaintainer
* Insert, delete, rearrange. Hex Fiend is not limited to in-place changes like some hex editors.\n\
* Work with huge files. Hex Fiend can handle as big a file as you're able to create. It's been tested on files as \
* Small footprint. Hex Fiend does not need to keep your files in memory. You won't dread launching or working with \
Hex Fiend even on low-RAM machines.\n\
* Fast. Open a huge file, scroll around, copy and paste, all instantly. Find what you're looking for with fast \
* Smart saving. Hex Fiend knows not to waste time overwriting the parts of your files that haven't changed.\n\
* Data inspector. Interpret data as integer or floating point, signed or unsigned, big or little endian...\n\
* Smooth scrolling. No separate pages - scroll like any text document.
macosx_deployment_target 10.8
# The project only works with Xcode >= 8
minimum_xcodeversions {11 8.0}
patchfiles 0001-xcode-Disable-Sparkle.patch
if {${subport} eq ${name}} {
description HexFiend is a fast and clever hex editor
xcode.target HexFiend_Framework HexFiend_2
xcode.configuration Release
copy "${worksrcpath}/build/Release/Hex Fiend.app" ${destroot}${applications_dir}
xinstall -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 ${worksrcpath}/License.txt ${destroot}${prefix}/share/doc/${name}
subport HexFiend-framework {
description The HexFiend Framework is an embeddable Cocoa hex editor component from the HexFiend editor
xcode.target HexFiend_Framework
xcode.configuration Release
copy "${worksrcpath}/build/Release/HexFiend.framework" ${destroot}${frameworks_dir}
set framework_lib ${frameworks_dir}/HexFiend.framework/Versions/A/HexFiend
system "install_name_tool -id ${framework_lib} ${destroot}${framework_lib}"