Problem with pkg-config and porting

Chris Rees crees at FreeBSD.org
Sun Jun 16 19:18:21 UTC 2013


On 16 June 2013 20:07, Rod Person <rodperson at rodperson.com> wrote:
> On 06/16/13 14:42, Chris Rees wrote:
>> PORTNAME=       dunst
>> PORTVERSION=    1.0.0
>> #PORTREVISION=  1
>> EXTRACT_SUFX=   .tar.bz2
>> CATEGORIES=     sysutils
>> MASTER_SITES=   http://www.knopwob.org/public/dunst-release/
>>
>> MAINTAINER=     rodperson at rodperson.com
>> COMMENT=        Lightweight notification deamon
>>
>> LIB_DEPENDS=    dbus:${PORTSDIR}/devel/dbus \
>>                 freetype:${PORTSDIR}/print/freetype2 \
>>                 cairo:${PORTSDIR}/graphics/cairo \
>>
>> /usr/local/libdata/pkgconfig/xscrnsaver.pc:${PORTSDIR}/x11/libXScrnSaver
>> This shouldn't be a LIB_DEPENDS.  LIB_DEPENDS checks the output of ldconfig -r.
>>
>> The line should probably read Xss:${PORTSDIR}/x11/libXScrnSaver
> Thanks Chris and Ruslan.
>
> This worked.
>
>> Have a try-- for future reference, depending on a *file* needs
>> RUN_DEPENDS and/or BUILD_DEPENDS.
>>
>> Chris
> I then changed LIB_DEPENDS to BUILD_DEPENDS and this installed
> and it built and installed dbus, freetype and cairo, even though I
> thought these were already installed since using the LIB_DEPENDS found them?
>
> I'll have to read up on these again.
>

LIB_DEPENDS is OK for cairo, dbus and freetype because those are
library names; they should not be used with BUILD_DEPENDS because that
looks for the executables cario, dbus and freetype that don't exist.
Since they don't exist, it tries to install the port again.

Chris


More information about the freebsd-ports mailing list