Skip to content

Commit

Permalink
Use MacOS::NativeLib to locater libraries on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Sep 30, 2024
1 parent 6340637 commit 4961cf5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ jobs:
if: matrix.os == 'macOS-latest'
run: |
brew reinstall freetype
cp /opt/homebrew/opt/freetype/lib/libfreetype.6.dylib .
export LD_LIBRARY_PATH=`pwd`
- name: Install Dependencies
run: |
zef install --/test App::Prove6
Expand Down
1 change: 1 addition & 0 deletions META6.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"LibraryMake"
],
"depends": [
"MacOS::NativeLib",
"Method::Also"
],
"description": "Raku bindings to the FreeType font library (version 2)",
Expand Down
1 change: 1 addition & 0 deletions lib/Font/FreeType/Raw/Defs.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ This module contains datatype and enumerations for the FreeType library.

use NativeCall;
use NativeCall::Types;
use MacOS::NativeLib 'freetype';

our $FT-LIB is export = Rakudo::Internals.IS-WIN ?? find-library('freetype') !! ('freetype', v6);
# library bindings
Expand Down

0 comments on commit 4961cf5

Please sign in to comment.