Skip to content

Commit

Permalink
liboglappth: Fix macOS 11+ libtool bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandesign committed Jul 21, 2023
1 parent 2184bf8 commit c5a860a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
3 changes: 2 additions & 1 deletion science/liboglappth/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ name liboglappth
version 1.0.0
categories science
license GPL-2+
platforms darwin
maintainers nomaintainer
description Library for the ghemical port.
long_description $description
Expand All @@ -20,6 +19,8 @@ checksums rmd160 6cb835c13801fc8aac6a1fd458a64b7b880e705f \

depends_lib port:mesa port:libGLU

patchfiles dynamic_lookup-11.patch

minimum_xcodeversions {9 3.1}

livecheck.type regex
Expand Down
25 changes: 25 additions & 0 deletions science/liboglappth/files/dynamic_lookup-11.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Recognize macOS 11 and later, remove inaccurate comment, and simplify.
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44605
--- configure.orig 2023-07-21 00:49:39.000000000 -0500
+++ configure 2023-07-21 00:49:45.000000000 -0500
@@ -7207,16 +7207,11 @@
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
darwin1.*)
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
- darwin*) # darwin 5.x on
- # if running on 10.5 or later, the deployment target defaults
- # to the OS version, if on x86, and 10.4, the deployment
- # target defaults to 10.4. Don't you love it?
- case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
- 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
- 10.[012]*)
+ darwin*)
+ case ${MACOSX_DEPLOYMENT_TARGET},$host in
+ 10.[012],*|,*powerpc*-darwin[5-8]*)
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
- 10.*)
+ *)
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
esac
;;

0 comments on commit c5a860a

Please sign in to comment.