From owner-freebsd-ports@FreeBSD.ORG Sun Jun 16 18:50:49 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D0820FDF for ; Sun, 16 Jun 2013 18:50:49 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-ie0-x22c.google.com (mail-ie0-x22c.google.com [IPv6:2607:f8b0:4001:c03::22c]) by mx1.freebsd.org (Postfix) with ESMTP id A717E1346 for ; Sun, 16 Jun 2013 18:50:49 +0000 (UTC) Received: by mail-ie0-f172.google.com with SMTP id 16so5279816iea.3 for ; Sun, 16 Jun 2013 11:50:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=QfcF6Cmghcbv4hY6e+ta68Gy68WwfwZUHX9HcYIUZfY=; b=nXSqU1yj6eIxSpgq89nOloKe1YA/KN5hZsulTG645UOA8OfL7Dx523y+Y8VaqYoyPu 7jbkLwjmnB7TB8y1J/sFkpRlfQmx9DgQei81R55iMH9yveFYsMTYBpA7qi0OTCEb7/+S expZOH3zN2ChoVzh0W9NoX7WiWXAZbEAmV+JTNcHMQ1wYs6AR0iFBktOXeLyzXYOZc3Y SP35YXsWSMiafRKxoMMXscPYoRe6YAZl86asSVVjlSmNDWFBoLPEaM1xmXWGaUeFVjYu pc8XIT2THuR0HJU64HSzcevRfrIp5lJcnwBU9PiTObaV6WS7zIhglmMTSZOjxI8GVe+H wX9A== X-Received: by 10.50.20.133 with SMTP id n5mr3284955ige.65.1371408185117; Sun, 16 Jun 2013 11:43:05 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.64.28.131 with HTTP; Sun, 16 Jun 2013 11:42:34 -0700 (PDT) In-Reply-To: <51BE0539.1040303@rodperson.com> References: <51BE0539.1040303@rodperson.com> From: Chris Rees Date: Sun, 16 Jun 2013 19:42:34 +0100 X-Google-Sender-Auth: IX_CivnePWieycXSQ5pMktKRS-s Message-ID: Subject: Re: Problem with pkg-config and porting To: Rod Person Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Ports List X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jun 2013 18:50:49 -0000 On 16 June 2013 19:34, Rod Person 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