Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Sep 2012 07:34:41 -0600
From:      Ian Lepore <freebsd@damnhippie.dyndns.org>
To:        "O. Hartmann" <ohartman@mail.zedat.fu-berlin.de>
Cc:        "freebsd >> Current FreeBSD" <freebsd-current@freebsd.org>, freebsd-ports@freebsd.org, Matthieu Volat <mazhe@alkumuna.eu>
Subject:   Re: Help. Porting "FreeOCL" fails (atomic_ops.h missing, CLANG++ libc++ issues ...)
Message-ID:  <1346938481.59094.117.camel@revolution.hippie.lan>
In-Reply-To: <504885AA.1000300@mail.zedat.fu-berlin.de>
References:  <5047659D.8000107@mail.zedat.fu-berlin.de> <20120906121639.4b7d894d089b2ddeb42f31b4@alkumuna.eu> <504885AA.1000300@mail.zedat.fu-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2012-09-06 at 13:14 +0200, O. Hartmann wrote:
> I tried to add
> 
> RUN_DEPENDS=
> ${LOCALBASE}/lib/libatomic_ops.a:${PORTSDIR}/devel/libatomic_ops
> 
> to my provided Makefile, but this doesn't install the port
> devel/libatomic_ops.
> This is weird and inconsistent. I follow exact the steps suggested in
> the Porter's handbook, the _DEPENDS= section. The above RUN_DEPENDS=
> tag
> should ensure a check for the existence of the static library
> 
> /usr/local/lib/libatomic_ops.a
> 
> and if not existent, then install it. It doesn't work. Unfortunately,
> LIB_DEPENDS is considered for "shared libraries", so it isn't
> suitable.
> But LIB_DEPENDS get recognized, even if it fails, while RUN_DEPENDS
> seems not to be touched by the build process anyway ... 

I am SO not a ports expert, but I think maybe for a static lib you need
BUILD_DEPENDS because it has to be available at build-time rather than
run-time.

-- Ian





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1346938481.59094.117.camel>