Skip to content

Commit

Permalink
vim: fix build on powerpc
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Sep 30, 2024
1 parent e9d8ac8 commit 522e34a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion editors/vim/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ variant cscope description {Enable source code browsing with cscope} {
configure.args-append --enable-cscope
}

platform puredarwin {
# Disable Cocoa on PureDarwin, as well as on < 10.6
# or when building for powerpc, since it fails to build there:
# os_macosx.m:74: error: ‘NSPasteboardTypeString’ undeclared (first use in this function)
# os_macosx.m:264: error: ‘DISPATCH_TIME_FOREVER’ undeclared (first use in this function)
if {${os.platform} eq "puredarwin" || ${configure.build_arch} eq "ppc" \
|| (${os.platform} eq "darwin" && ${os.major} < 10)} {
configure.args-append --disable-darwin
}

0 comments on commit 522e34a

Please sign in to comment.