[Bug 285159] [NEW PORT] java/jextract: generate bindings from native libraries

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 05 Mar 2025 10:30:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285159

--- Comment #10 from Benjamin Takacs <nimaje+fbz@bureaucracy.de> ---
(In reply to Igor Kolesnik from comment #9)

Is it possible to instruct it to use
${LLVM_PREFIX}/lib/clang/${LLVM_VERSION}/include for those headers instead of
copying them?

Maybe by using the -I flag in the starter script?

for the starter script itself, it would probably use SUB_FILES and SUB_LIST[0]
and  look something like

#!/bin/sh
%%JAVA%% -Djava.library.path=%%LLVM_PREFIX%% --module-path <path to
org.openjdk.jextract.jar> -m
org.openjdk.jextract/org.openjdk.jextract.JextractTool <maybe -I for clang
headers> "$@"

with the file itself in SUB_FILES and JAVA, LLVM_PREFIX and whatever else is
needed in SUB_LIST, so that those variables get replaced when the port is
build.

[0]:
https://docs.freebsd.org/en/books/porters-handbook/pkg-files/#using-sub-files

-- 
You are receiving this mail because:
You are the assignee for the bug.