Since Wednesday, we've had KDE 4.1.3 in the macports ports system. This means that if you do something like port install amarok or port install ktorrent (yes those two are actually available) they will automagically be installed for you, with all the dependencies taken care of.
Unfortunately there's a catch. Doing exactly what I said above won't work :-) There are certain necessary features available in some ports which aren't turned on by default. Take okular for instance, which is built as a part of kdegraphics4. It needs poppler-qt4, which is dependent on a variant of the poppler port.
dports$ port info poppler poppler 0.10.1, graphics/poppler (Variants: universal, quartz, x11, qt4) http://poppler.freedesktop.org/ Poppler is a PDF rendering library based on the xpdf-3.0 code base. Library Dependencies: cairo, gtk2, openjpeg, poppler-data, XFree86, xrender Platforms: darwin Maintainers: nomaintainer@macports.org
The Variants section is where the magic is. You can see that qt4 is an option and that will need to be set so that poppler-qt4 will be built. Obviously we don't want to build poppler beforehand, we just want to install kdegraphics4 so you'd need to do something like sudo port install kdegraphics4 +qt4 +quartz -x11.
Amarok would need sudo port install amarok +embedded_server to have mysql5-devel install libmysqld.a. And so on, and so forth. If something fails miserably check the portfile with port edit portname; I left comments in some portfiles as to what variants need enabling. Also, there's no need to use sudo when just viewing the portfiles. Between me and you I recommend the following: +no_x11 +dbus -x11 +qt4 +quartz +embedded_server +soprano
P.S. antigraingeometry refuses to build without x11 support so I removed it as a port dependency in kdebase4. If you need/want ksvg then install antigraingeometry before hand.
The KDE macports release has been brought to you by the letters i, g and the number Y. Enjoy.
- illogic-al's blog
- Login or register to post comments
illogic-al.Org