Skip to content
Permalink
Browse files

calc: improve the way the SDK's include files are found

  • Loading branch information
pmetzger committed Sep 27, 2018
1 parent 9bf6ed7 commit 23340ee10bc7cb2c5e74558b14625581596d82ee
Showing with 3 additions and 2 deletions.
  1. +1 −0 math/calc/Portfile
  2. +2 −2 math/calc/files/patch-Makefile.diff
@@ -37,6 +37,7 @@ patchfiles patch-Makefile.diff

post-patch {
reinplace "s|___PREFIX___|${prefix}|" ${worksrcpath}/Makefile
reinplace "s|___SDK_PREFIX___|${configure.sdkroot}|" ${worksrcpath}/Makefile
}

use_configure no
@@ -1,11 +1,11 @@
--- Makefile.orig 2018-09-27 08:46:20.000000000 -0400
+++ Makefile 2018-09-27 09:38:57.000000000 -0400
+++ Makefile 2018-09-27 10:09:41.000000000 -0400
@@ -575,7 +575,7 @@
ifeq ($(target),Darwin)

# default INCDIR for macOS
-INCDIR= /usr/local/include
+INCDIR=$(shell xcrun --show-sdk-path)/usr/include
+INCDIR=___SDK_PREFIX___/usr/include

else
#endif /* end of skip for non-Gnu makefiles */

0 comments on commit 23340ee

Please sign in to comment.
You can’t perform that action at this time.