From owner-freebsd-ports@FreeBSD.ORG Sun Jun 16 19:18:21 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B927FE2A for ; Sun, 16 Jun 2013 19:18:21 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-ie0-x22a.google.com (mail-ie0-x22a.google.com [IPv6:2607:f8b0:4001:c03::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 8FA2215E0 for ; Sun, 16 Jun 2013 19:18:21 +0000 (UTC) Received: by mail-ie0-f170.google.com with SMTP id e11so5289994iej.1 for ; Sun, 16 Jun 2013 12:18:21 -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=FV/Qe2pT6aGmxLqdmcWTKBoRZKMCPls2AnL3OlJ/AiU=; b=C/iqExvdV6cPTxg314RZr55+7cuDyNjodsmW+YzH/9Tx+G7bdTMLBMhdUBbafM+lPm LEaqe8BL02pcsrGA3yfF9++l4KM+7wCfc3n82rEvwdK8aYn5zBsfzEQ2Kt2I6iTZhxD5 izupR/fsKDZcjvSawSK7NrOF0j/FGJMTxDm14C64+jrOd12rnNyb3oJsId6helW8l+ZA pPA7BO/rsjd7/JoxkycaljhKz8YEGII1i0ttd8Hw8Iwm/bq3pOj+eiO/ObMbZbuO7aNQ ydvJWtNfmg9M0vFJV/YQvBPkmrXfveh9Ouc+L73oU8RIV6dWzuyxBBq7SMc9bUP5+H79 /TWg== X-Received: by 10.50.20.133 with SMTP id n5mr3327185ige.65.1371410301125; Sun, 16 Jun 2013 12:18:21 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.64.28.131 with HTTP; Sun, 16 Jun 2013 12:17:51 -0700 (PDT) In-Reply-To: <51BE0D0D.8060001@rodperson.com> References: <51BE0539.1040303@rodperson.com> <51BE0D0D.8060001@rodperson.com> From: Chris Rees Date: Sun, 16 Jun 2013 20:17:51 +0100 X-Google-Sender-Auth: tOAf_quq8IDobGLbBKCuPZZIR0Y Message-ID: Subject: Re: Problem with pkg-config and porting To: Rod Person Content-Type: text/plain; charset=ISO-8859-1 Cc: Ruslan Makhmatkhanov , 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 19:18:21 -0000 On 16 June 2013 20:07, Rod Person 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@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