Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jun 2013 19:42:34 +0100
From:      Chris Rees <crees@FreeBSD.org>
To:        Rod Person <rodperson@rodperson.com>
Cc:        FreeBSD Ports List <freebsd-ports@freebsd.org>
Subject:   Re: Problem with pkg-config and porting
Message-ID:  <CADLo839uvzyRYdS5_u-dBF2j0QvqMcaOVsdjUt4SCefJmDE8Pw@mail.gmail.com>
In-Reply-To: <51BE0539.1040303@rodperson.com>
References:  <51BE0539.1040303@rodperson.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 16 June 2013 19:34, Rod Person <rodperson@rodperson.com> wrote:
> Hi,
>
> I am attempting to create a port for dunst
> (http://www.knopwob.org/dunst/). It requires xscrnsaver.pc to build.
> I've found that it is located in the port x11/libXScrnSaver.  I've
> created a Makefile that checks and installs that port, but even after it
> successfully installs I still get the following error:
>
> ===>   dunst-1.0.0 depends on shared library:
> /usr/local/libdata/pkgconfig/xscrnsaver.pc - not found
> ===>    Verifying install for /usr/local/libdata/pkgconfig/xscrnsaver.pc
> in /usr/ports/x11/libXScrnSaver
> ===>   Returning to build of dunst-1.0.0
> Error: shared library "/usr/local/libdata/pkgconfig/xscrnsaver.pc" does
> not exist
> *** [lib-depends] Error code 1
>
> Stop in /usr/home/roddierod/Projects/Ports/dunst.
>
> I've verified that xscrnsaver.pc does exist in the correct location.
>
> Here is what I have so far for the Makefile:
>
> 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@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

Have a try-- for future reference, depending on a *file* needs
RUN_DEPENDS and/or BUILD_DEPENDS.

Chris



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