David Demelier <demelier.da...@gmail.com> 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.
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= r...@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 \
_______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"