diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index eea5b1d..34845fe 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -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 diff --git a/META6.json b/META6.json index 13db22d..22c3753 100644 --- a/META6.json +++ b/META6.json @@ -7,6 +7,7 @@ "LibraryMake" ], "depends": [ + "MacOS::NativeLib", "Method::Also" ], "description": "Raku bindings to the FreeType font library (version 2)", diff --git a/lib/Font/FreeType/Raw/Defs.rakumod b/lib/Font/FreeType/Raw/Defs.rakumod index af99e1e..2cbef23 100644 --- a/lib/Font/FreeType/Raw/Defs.rakumod +++ b/lib/Font/FreeType/Raw/Defs.rakumod @@ -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