diff --git a/python/py-llvmlite/Portfile b/python/py-llvmlite/Portfile
index 4cddc60f24f..5daa60d1abf 100644
|
a
|
b
|
PortSystem 1.0 |
| 4 | 4 | PortGroup python 1.0 |
| 5 | 5 | |
| 6 | 6 | name py-llvmlite |
| 7 | | version 0.44.0 |
| | 7 | version 0.45.0 |
| 8 | 8 | categories-append devel science |
| 9 | 9 | license BSD |
| 10 | 10 | |
| 11 | | python.versions 39 310 311 312 313 |
| | 11 | python.versions 310 311 312 313 |
| 12 | 12 | |
| 13 | 13 | maintainers {stromnov @stromnov} openmaintainer |
| 14 | 14 | |
| … |
… |
long_description {*}${description} |
| 17 | 17 | |
| 18 | 18 | homepage https://llvmlite.pydata.org/ |
| 19 | 19 | |
| 20 | | checksums rmd160 22ce3248a454c3e925efb903fd47562d47ed2872 \ |
| 21 | | sha256 07667d66a5d150abed9157ab6c0b9393c9356f229784a4385c02f99e94fc94d4 \ |
| 22 | | size 171880 |
| | 20 | checksums rmd160 64f2f8e1bb324b177e97efe0fb70f5601e1b5b51 \ |
| | 21 | sha256 ceb0bcd20da949178bd7ab78af8de73e9f3c483ac46b5bef39f06a4862aa8336 \ |
| | 22 | size 185289 |
| 23 | 23 | |
| 24 | 24 | if {${name} ne ${subport}} { |
| 25 | | PortGroup legacysupport 1.1 |
| 26 | | PortGroup compiler_wrapper 1.0 |
| | 25 | set llvm_version 20 |
| 27 | 26 | |
| 28 | | legacysupport.newest_darwin_requires_legacy \ |
| 29 | | 17 |
| | 27 | depends_build-append \ |
| | 28 | port:cmake |
| 30 | 29 | |
| 31 | | patchfiles-append patch-ffi_Makefile.osx.diff |
| | 30 | build.env-append LLVM_DIR=${prefix}/libexec/llvm-${llvm_version}/lib/cmake |
| 32 | 31 | |
| 33 | | set llvmver "15" |
| 34 | | |
| 35 | | if {${python.version} == 39} { |
| 36 | | version 0.43.0 |
| 37 | | checksums rmd160 ea30be9de2f72c27635c4858968b95d1ec3ebaec \ |
| 38 | | sha256 ae2b5b5c3ef67354824fb75517c8db5fbe93bc02cd9671f3c62271626bc041d5 \ |
| 39 | | size 157069 |
| 40 | | } |
| 41 | | |
| 42 | | post-patch { |
| 43 | | reinplace "s|%%CXX%%|clang++-mp-${llvmver}|" ${worksrcpath}/ffi/Makefile.osx |
| 44 | | |
| 45 | | if {${os.major} <= 10} { |
| 46 | | # https://trac.macports.org/ticket/61302 |
| 47 | | configure.ldflags-append \ |
| 48 | | -framework CoreFoundation |
| 49 | | } elseif {${os.major} >= 22} { |
| 50 | | configure.ldflags-append \ |
| 51 | | -lLLVM |
| 52 | | } |
| 53 | | |
| 54 | | reinplace "s|%%MP_EXTRA_LDFLAGS%%|${configure.ldflags}|" ${worksrcpath}/ffi/Makefile.osx |
| 55 | | } |
| 56 | | |
| 57 | | post-destroot { |
| 58 | | system "/usr/bin/install_name_tool -change @rpath/libLLVM.dylib ${prefix}/libexec/llvm-${llvmver}/lib/libLLVM.dylib ${destroot}${python.pkgd}/llvmlite/binding/libllvmlite.dylib" |
| 59 | | } |
| 60 | | |
| 61 | | depends_lib-append port:llvm-${llvmver} \ |
| 62 | | port:clang-${llvmver} \ |
| | 32 | depends_lib-append port:llvm-${llvm_version} \ |
| 63 | 33 | port:zlib \ |
| 64 | | port:ncurses \ |
| 65 | | port:libxml2 |
| 66 | | |
| 67 | | build.env-append LLVM_CONFIG=llvm-config-mp-${llvmver} |
| 68 | | destroot.env-append LLVM_CONFIG=llvm-config-mp-${llvmver} |
| | 34 | port:zstd |
| 69 | 35 | |
| 70 | 36 | livecheck.type none |
| 71 | 37 | } |
diff --git a/python/py-llvmlite/files/patch-ffi_Makefile.osx.diff b/python/py-llvmlite/files/patch-ffi_Makefile.osx.diff
deleted file mode 100644
index d1f9355d61b..00000000000
|
+
|
-
|
|
| 1 | | --- ffi/Makefile.osx.orig 2023-04-23 21:20:38.000000000 +0200 |
| 2 | | +++ ffi/Makefile.osx 2023-04-23 21:21:04.000000000 +0200 |
| 3 | | @@ -1,9 +1,9 @@ |
| 4 | | |
| 5 | | -CXX = clang++ |
| 6 | | +CXX = %%CXX%% |
| 7 | | CXXFLAGS = $(LLVM_CXXFLAGS) |
| 8 | | # Only export the LLVMPY symbols we require and exclude everything else. |
| 9 | | EXPORT = "-Wl,-exported_symbol,_LLVMPY_*" |
| 10 | | -LDFLAGS := $(LDFLAGS) $(EXPORT) $(LLVM_LDFLAGS) |
| 11 | | +LDFLAGS := $(LDFLAGS) $(EXPORT) $(LLVM_LDFLAGS) %%MP_EXTRA_LDFLAGS%% |
| 12 | | LIBS = $(LLVM_LIBS) |
| 13 | | INCLUDE = core.h |
| 14 | | SRC = assembly.cpp bitcode.cpp core.cpp initfini.cpp module.cpp value.cpp \ |