From owner-freebsd-ports@FreeBSD.ORG Fri Jan 7 20:00:17 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73AB810656AE for ; Fri, 7 Jan 2011 20:00:17 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1BAF88FC17 for ; Fri, 7 Jan 2011 20:00:12 +0000 (UTC) Received: by wyf19 with SMTP id 19so17915905wyf.13 for ; Fri, 07 Jan 2011 12:00:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:message-id:user-agent:mime-version:content-type; bh=m2tT6CJ0F0rdUL54HC7Cp2xg+b61BgpL8+0C4+CNZI4=; b=WvwJ4mohi+0Mt2JRN/GpVQ0RlaQJbEztAIfTCK+OE4qDW7CkZj+oZ1om9dK4+k2P1s t4edWJvVXeuTheFV4ZjaG3ZYFJ5S2FVDzIWxbsRnks9eatyKYj7XgZMBD1NNm+ixcYRa WvACSObWHpXELOjlI3d6FpxDqo6rfWnASatEE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; b=Cf8xttkrYnI1EvGPSv36rAlMir7Ox5LYjEwlgGvKuZyuSlyqa/efnYuLGjIlaUGFdT vJgUtp3j/8HO8k3wvPa3kEWzqnN45AIulA4SuvNyenhKEs1tADmA5iZsVXHl6EsPqy4E 4XYSPt8CeXS+RpZRrVRgs/B33afjfODvpXSqU= Received: by 10.227.209.206 with SMTP id gh14mr1351314wbb.217.1294430403846; Fri, 07 Jan 2011 12:00:03 -0800 (PST) Received: from localhost (tor-exit.imjared.com [208.66.135.190]) by mx.google.com with ESMTPS id 11sm17942114wbj.7.2011.01.07.12.00.00 (version=SSLv3 cipher=RC4-MD5); Fri, 07 Jan 2011 12:00:02 -0800 (PST) From: Anonymous To: David Demelier References: <4D275E07.9090609@gmail.com> Date: Fri, 07 Jan 2011 22:59:53 +0300 Message-ID: <867hegqybq.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Cc: freebsd-ports@freebsd.org Subject: Re: ldconfig -r does not show devel/sfml libraries X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2011 20:00:17 -0000 --=-=-= Content-Type: text/plain David Demelier writes: > Hello, > > I'm writing a patch for emulators/visualboyadvance-m because it needs > libsfml as LIB_DEPENDS and not only BUILD_DEPENDS. > > The problem is that ldconfig -r does not show the libsfml libraries so Let's look at other lines in `ldconfig -r' output, e.g. $ ldconfig -r | fgrep cairomm 185:-lcairomm-1.0.1 => /usr/local/lib/libcairomm-1.0.so.1 So, appling same logic to LIB_DEPENDS = sfml-system.1.6:${PORTSDIR}/devel/sfml it'd check libsfml-system.1.so.6 and not libsfml-system.so.1.6. $ mv libsfml-system.so.1.6 libsfml-system.1.so.6 $ ldconfig -m /usr/local/lib $ ldconfig -r | fgrep sfml 268:-lsfml-system.1.6 => /usr/pkg/lib/libsfml-system.1.so.6 $ make lib-depends ===> visualboyadvance-m-1.8.0r966 depends on shared library: png.6 - found ===> visualboyadvance-m-1.8.0r966 depends on shared library: sfml-system.1.6 - found ... Try workaround in below diff, it uses -lsfml-system.1, though. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=a.diff Content-Transfer-Encoding: 8bit Index: devel/sfml/pkg-plist =================================================================== RCS file: /a/.cvsup/ports/devel/sfml/pkg-plist,v retrieving revision 1.2 diff -u -p -r1.2 pkg-plist --- devel/sfml/pkg-plist 1 Sep 2010 18:05:18 -0000 1.2 +++ devel/sfml/pkg-plist 7 Jan 2011 19:54:39 -0000 @@ -72,15 +72,15 @@ include/SFML/Window/WindowListener.hpp include/SFML/Window/WindowSettings.hpp include/SFML/Window/WindowStyle.hpp lib/libsfml-audio.so -lib/libsfml-audio.so.1.6 +lib/libsfml-audio.so.1 lib/libsfml-graphics.so -lib/libsfml-graphics.so.1.6 +lib/libsfml-graphics.so.1 lib/libsfml-network.so -lib/libsfml-network.so.1.6 +lib/libsfml-network.so.1 lib/libsfml-system.so -lib/libsfml-system.so.1.6 +lib/libsfml-system.so.1 lib/libsfml-window.so -lib/libsfml-window.so.1.6 +lib/libsfml-window.so.1 @dirrm include/SFML/Window @dirrm include/SFML/System/Win32 @dirrm include/SFML/System/Unix Index: devel/sfml/files/patch-src-SFML-Makefile =================================================================== RCS file: /a/.cvsup/ports/devel/sfml/files/patch-src-SFML-Makefile,v retrieving revision 1.2 diff -u -p -r1.2 patch-src-SFML-Makefile --- devel/sfml/files/patch-src-SFML-Makefile 1 Sep 2010 18:05:18 -0000 1.2 +++ devel/sfml/files/patch-src-SFML-Makefile 7 Jan 2011 19:53:49 -0000 @@ -24,7 +24,8 @@ +export CXXFLAGS += -W -Wall -pedantic -I../../../include -I../../ $(DEBUGFLAGS) $(BUILDFLAGS) -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 +export LDFLAGS = -L${LOCALBASE}/lib $(LINKFLAGS) export LIBPATH = ../../../lib - export VERSION = 1.6 +-export VERSION = 1.6 ++export VERSION = 1 export CP = cp @@ -27,9 +27,9 @@ export LNFLAGS = -s -f Index: emulators/visualboyadvance-m/Makefile =================================================================== RCS file: /a/.cvsup/ports/emulators/visualboyadvance-m/Makefile,v retrieving revision 1.3 diff -u -p -r1.3 Makefile --- emulators/visualboyadvance-m/Makefile 13 Dec 2010 09:34:22 -0000 1.3 +++ emulators/visualboyadvance-m/Makefile 7 Jan 2011 19:55:14 -0000 @@ -14,8 +14,8 @@ MASTER_SITES= http://update.cooltrainer. MAINTAINER= root@cooltrainer.org COMMENT= Game Boy Advance emulator with GTK frontend -BUILD_DEPENDS= ${LOCALBASE}/lib/libsfml-system.so:${PORTSDIR}/devel/sfml LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \ + sfml-system.1:${PORTSDIR}/devel/sfml \ cairomm-1.0.1:${PORTSDIR}/graphics/cairomm OPTIONS= GVBAM "Build gvbam (GTK2 frontend)" on \ --=-=-=--