On Fri, 23 Jan 2009 18:40:26 -0500, Kris Moore wrote:
> Max Brazhnikov wrote:
> > On Fri, 23 Jan 2009 15:22:58 -0500, Kris Moore wrote:
> >> Attached is a new port for graphics/ which builds the KDE4 version of
> >> kipi-plugins. I've built and tested it with KDE 4.2 Beta2 here, and it
> >> seems to work fine. If others would like to check if out and comment,
> >> that would be great.
> >>
> >>
> >>
> >> Just one note of weirdness with it, that maybe somebody more "port
> >> experienced" can help me with:
> >>
> >> When it builds, you may see some warnings that it couldn't find
> >> libkdcraw, libkexiv2, and libkipi. On my system it still builds and
> >> works, but I did some digging to find out how to fix this. I found that
> >> in the /usr/local/libdata/pkgconfig/ directory, if you do a "ls *kde4*"
> >> you'll see these files:
> >>
> >> libkdcraw-kde4.pc libkexiv2-kde4.pc libkipi-kde4.pc
> >>
> >> These are the only ones with the -kde4 extension. What's weird, if I
> >> create sym-links to each, dropping the -kde4 extension, then build the
> >> port, it finds all those just fine now.
> >>
> >> ln -s libkdcraw-kde4.pc libkdcraw.pc
> >> (ditto for other two)
> >>
> >> Is this something I'm doing wrong in the port, or should these package
> >> config files not have the -kde4 extension?
> >
> > These files have been renamed to avoid conflict with kde3 version.
> > Therefore kde4 ports which depend on libkdcraw,  libkexiv or/and libkipi
> > should be patched to use correct version of these libraries.
> >
> > Cheers,
> > Max
>
> Ahh, thanks for the clarification on this. I've tinkered with the
> CMakeLists.txt for this port, but I can't seem to find a way to force it
> to use -kde4 when it looks for the package config files. Is there an
> easier way to do this?
>
> If I'm following it correctly, isn't cmake using
> /usr/local/kde4/share/apps/cmake/modules/FindKipi.cmake and the others
> to determine if its installed? Should those be updated to have it look
> for the package config files with the -kde4 extension?
Surely. Could you test this patch?
btw, check plist for kipi-plugins port, seems it's from kmplayer now/

Max
Index: x11/kdelibs4/files/patch-cmake_modules_FindKdcraw.cmake
===================================================================
--- x11/kdelibs4/files/patch-cmake_modules_FindKdcraw.cmake	(revision 0)
+++ x11/kdelibs4/files/patch-cmake_modules_FindKdcraw.cmake	(revision 0)
@@ -0,0 +1,11 @@
+--- ../cmake/modules/FindKdcraw.cmake.orig	2009-01-06 17:27:37.000000000 +0000
++++ ../cmake/modules/FindKdcraw.cmake	2009-01-25 08:34:44.000000000 +0000
+@@ -51,7 +51,7 @@
+       # in the FIND_PATH() and FIND_LIBRARY() calls
+       INCLUDE(UsePkgConfig)
+     
+-      PKGCONFIG(libkdcraw _KDCRAWIncDir _KDCRAWLinkDir _KDCRAWLinkFlags _KDCRAWCflags)
++      PKGCONFIG(libkdcraw-kde4 _KDCRAWIncDir _KDCRAWLinkDir _KDCRAWLinkFlags _KDCRAWCflags)
+     
+       if(_KDCRAWLinkFlags)
+         # query pkg-config asking for a libkdcraw >= 0.2.0
Index: x11/kdelibs4/files/patch-cmake_modules_FindKipi.cmake
===================================================================
--- x11/kdelibs4/files/patch-cmake_modules_FindKipi.cmake	(revision 0)
+++ x11/kdelibs4/files/patch-cmake_modules_FindKipi.cmake	(revision 0)
@@ -0,0 +1,11 @@
+--- ../cmake/modules/FindKipi.cmake.orig	2009-01-06 17:27:37.000000000 +0000
++++ ../cmake/modules/FindKipi.cmake	2009-01-25 08:35:05.000000000 +0000
+@@ -50,7 +50,7 @@
+       # in the FIND_PATH() and FIND_LIBRARY() calls
+       INCLUDE(UsePkgConfig)
+ 
+-      PKGCONFIG(libkipi _KIPIIncDir _KIPILinkDir _KIPILinkFlags _KIPICflags)
++      PKGCONFIG(libkipi-kde4 _KIPIIncDir _KIPILinkDir _KIPILinkFlags _KIPICflags)
+ 
+       if(_KIPILinkFlags)
+         # query pkg-config asking for a libkipi >= 0.2.0
Index: x11/kdelibs4/files/patch-cmake_modules_FindKexiv2.cmake
===================================================================
--- x11/kdelibs4/files/patch-cmake_modules_FindKexiv2.cmake	(revision 0)
+++ x11/kdelibs4/files/patch-cmake_modules_FindKexiv2.cmake	(revision 0)
@@ -0,0 +1,11 @@
+--- ../cmake/modules/FindKexiv2.cmake.orig	2009-01-06 17:27:37.000000000 +0000
++++ ../cmake/modules/FindKexiv2.cmake	2009-01-25 08:34:53.000000000 +0000
+@@ -49,7 +49,7 @@
+       # in the FIND_PATH() and FIND_LIBRARY() calls
+       INCLUDE(UsePkgConfig)
+     
+-      PKGCONFIG(libkexiv2 _KEXIV2IncDir _KEXIV2LinkDir _KEXIV2LinkFlags _KEXIV2Cflags)
++      PKGCONFIG(libkexiv2-kde4 _KEXIV2IncDir _KEXIV2LinkDir _KEXIV2LinkFlags _KEXIV2Cflags)
+     
+       if(_KEXIV2LinkFlags)
+         # query pkg-config asking for a libkexiv2 >= 0.2.0
_______________________________________________
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd
See also http://freebsd.kde.org/ for latest information

Reply via email to