Skip to content

Commit

Permalink
Fix compilation of openni2 on OS X 10.9.
Browse files Browse the repository at this point in the history
See issue ros#10

Upstream openni apparently addresses this, so it should be ok to
remove the patch after the next openni release.
  • Loading branch information
NikolausDemmel committed Dec 11, 2013
1 parent 8483ec3 commit b52320d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openni2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ class Openni2 < Formula
url 'https://launchpad.net/~v-launchpad-jochen-sprickerhof-de/+archive/pcl/+files/openni2_2.1.0.4.orig.tar.gz'
sha1 '8d423621f7c0c3a72b64fedf8ec5193f8e1341b5'

def patches
# fixes compilation on OS X with clang (e.g. 10.9)
# See https://github.com/ros/homebrew-hydro/issues/10
# This patch was introduced when openni2_2.1.0.4 was being built with this formula.
# Apparently the issue is addressed upstream. So when updating to the next release, consider removing the patch.
"https://gist.github.com/NikolausDemmel/7901983/raw/3746869662473860cd5f57e6bc685e76cdb831c2/equiv-is-a-thing-for-clang-apparently.patch"
end

def install
# Change the default location of drive libraries to a sane default
inreplace 'Source/Core/OniContext.cpp',
Expand Down

0 comments on commit b52320d

Please sign in to comment.