From owner-freebsd-ports@FreeBSD.ORG Sun Jun 16 18:47:07 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 99230F3D for ; Sun, 16 Jun 2013 18:47:07 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from forward3l.mail.yandex.net (forward3l.mail.yandex.net [IPv6:2a02:6b8:0:1819::3]) by mx1.freebsd.org (Postfix) with ESMTP id 59E771338 for ; Sun, 16 Jun 2013 18:47:06 +0000 (UTC) Received: from smtp3h.mail.yandex.net (smtp3h.mail.yandex.net [84.201.186.20]) by forward3l.mail.yandex.net (Yandex) with ESMTP id A67EC1500FF0; Sun, 16 Jun 2013 22:47:03 +0400 (MSK) Received: from smtp3h.mail.yandex.net (localhost [127.0.0.1]) by smtp3h.mail.yandex.net (Yandex) with ESMTP id 543F41B40E67; Sun, 16 Jun 2013 22:47:03 +0400 (MSK) Received: from unknown (unknown [178.76.224.133]) by smtp3h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 8uYzUgr2j9-l244ervM; Sun, 16 Jun 2013 22:47:02 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1371408423; bh=n8CaNjehFaUCBjmPm+Ma0jWoS2mE2c/+DAuLNvUhUxk=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=EAZzxnh2PtBBYDyK6N2QUsrMmoP5AvQj40ichTacZQm9jn3C+dzuBNI6Kxt4CGrZH I/Lw4zcB1o1nDTm/aJrZad+MfXqrqmsYGra9l4Hb+6SkAMgRv/oKXY4GLILhzuDfOp qe8scjhbWuRAOHczKhTaObDfB+iUJ09M+4ovsgXg= Authentication-Results: smtp3h.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <51BE0815.2080601@yandex.ru> Date: Sun, 16 Jun 2013 22:46:45 +0400 From: Ruslan Makhmatkhanov User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130516 Thunderbird/17.0.6 MIME-Version: 1.0 To: Rod Person Subject: Re: Problem with pkg-config and porting References: <51BE0539.1040303@rodperson.com> In-Reply-To: <51BE0539.1040303@rodperson.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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:47:07 -0000 Hello, Rod. Rod Person wrote on 16.06.2013 22:34: > 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. 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 You need to add something like this instead: Xss:${PORTSDIR}/x11/libXScrnSaver The actual library configure tries to find is libXss.so Please read more about how to depend on shared library in Porters Handbook: http://www.freebsd.org/doc/en/books/porters-handbook/book.html#makefile-depend > > USE_XORG= xext xft xinerama > USE_GNOME= glib20 > USE_GMAKE= yes > > NOMANCOMPRESS= yes > MAN1= dunst.1 > > ALL_TARGET= dunst dunstify dunst.1 > INSTALL_TARGET= install > > LDFLAGS+= -O3 -g -Wall -rdynamic -lexecinfo > > The entire port that I have so far can be downloaded for here: > http://www.rodperson.com/DL/dunst.tar.gz > > Thanks > -- Regards, Ruslan Tinderboxing kills... the drives.