Re: path to installed port's directory

2025-03-05 Thread Igor Kolesnik
I think, I got it. LOCALBASE is always the same, e.g. /usr/local LLVM_PREFIX may change If I do 'make install', LLVM_PREFIX == LOCALBASE/llvm, but if, for example, 'PREFIX=/opt make install' then LOCALBASE still /usr/local, and LLVM_PREFIX will be /opt/llvm Is that right?

Re: path to installed port's directory

2025-03-05 Thread Igor Kolesnik
On Mon, Mar 03, 2025 at 08:22:12PM +0300, Gleb Popov wrote: > Ports are expected to locate their dependencies under the ${LOCALBASE} prefix. Well, specifically, I need paths to llvm and openjdk. I can use ${LOCALBASE}/openjdk${JAVA_VERSION} ${LOCALBASE}/llvm or ${JAVA_HOME} ${LLVM_PREFIX} Wha

Re: path to installed port's directory

2025-03-03 Thread Igor Kolesnik
On Mon, Mar 03, 2025 at 08:22:12PM +0300, Gleb Popov wrote: > Ports are expected to locate their dependencies under the ${LOCALBASE} prefix. Super. Thanks.

path to installed port's directory

2025-03-03 Thread Igor Kolesnik
Hi; I'm makeing a port, let's say 'foo'. It has a build dependency on a port 'bar'. In order to build 'foo' I need to know the installation directory of 'bar'. In the foo's Makefile I can write `pkg info -pq`/bar I wonder if there is another, a better, way of getting that information? thanks