Re: path to installed port's directory

2025-03-05 Thread Jason E. Hale
On Wed, Mar 5, 2025 at 8:14 AM Gleb Popov wrote: > > On Wed, Mar 5, 2025 at 3:51 PM Jason E. Hale wrote: > > > > LLVM_PREFIX is defined whether the 'noexport' argument is passed to > > USES=llvm or not. > > 'noexport' just prevents setting the values of CC, CXX, and CPP. > > Right, and Igor was a

Re: path to installed port's directory

2025-03-05 Thread Gleb Popov
On Wed, Mar 5, 2025 at 3:51 PM Jason E. Hale wrote: > > LLVM_PREFIX is defined whether the 'noexport' argument is passed to > USES=llvm or not. > 'noexport' just prevents setting the values of CC, CXX, and CPP. Right, and Igor was asking for the LLVM_PREFIX variable only, so noexport fits there.

Re: path to installed port's directory

2025-03-05 Thread Jason E. Hale
On Wed, Mar 5, 2025 at 5:28 AM Gleb Popov wrote: > > On Wed, Mar 5, 2025 at 11:03 AM Igor Kolesnik wrote: > > > > 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 n

Re: path to installed port's directory

2025-03-05 Thread Gleb Popov
On Wed, Mar 5, 2025 at 11:03 AM Igor Kolesnik wrote: > > 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

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.

Re: path to installed port's directory

2025-03-03 Thread Gleb Popov
On Mon, Mar 3, 2025 at 7:59 PM Igor Kolesnik wrote: > > 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 wo