[kde-freebsd] kdenlive (and dependencies) ports available for testing

Max Brazhnikov makc at issp.ac.ru
Sat Dec 20 18:58:37 CET 2008


On Sat, 20 Dec 2008 16:17:16 +0100, Alberto Villa wrote:
> hello list!
Hi Alberto!

> i'm taking part in kdenlive (www.kdenlive.org) development, and finally got
> to build ports for it and and mlt/mlt++
> i have attached stable (kdenlive 0.7 and mlt 0.3.2) and development (weekly
> svn snapshots that i'll host on kdenlive website - they're needed since
> kdenlive is under heavy development and new features are added every day)
> ports, please look at them (they all have to be extracted under
> /usr/ports/multimedia), it would be great to submit them before freebsd 7.1
> is released!
No problem to commit them before 7.1 release, but they will not available with 
release ports/packages since portstree for 7.1 has been tagged already.

> they seem to work fine since i've been testing them for a month...
> i'm also going to build frei0r plugins (video effects used by kdenlive) and
> dvgrab (camera capture program used by kdenlive) ports (they will be added
> as options in kdenlive port), but they're not required at the moment
>
> may i count on you to submit them (i've seen you're going to do that with
> the amarok2 port) or should i send a pr (it's long...)? anyway, if you like
> them, i'll start hosting the .shar archives on kdenlive website until
> they'll be added to the tree: is this a good idea?
Submit them and one of committers will take care about them.

Some notes for kdenlive port. It installs some mime files, which need special 
handling in Makefile and pkg-plist (You can look at databases/akonadi for 
example). 

Firstly, you need 'sharedmime' component for KDE4:

USE_KDE4=	kdeprefix kdehier automoc4 sharedmime

Secondly, don't allow to run shared-mime utilities when building/installing 
port (otherwise port will fail on pointyhat/tinderbox):

post-patch:
	#prevent updating mime during build
	${REINPLACE_CMD} -e '/^update_xdg_mimetypes/d; /SharedMimeInfo/d' \
		${PATCH_WRKSRC}/CMakeLists.txt

instead, run utility manually in post-install target:

post-install:
	@-update-mime-database ${KDE4_PREFIX}/share/mime

Finally, add the following two lines to pkg-plist (they will be executed on 
installing/deinstalling package):

@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime > /dev/null || 
/usr/bin/true
@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime > /dev/null || 
/usr/bin/true

Also, you shouldn't delete common directories like share/config or share/icons 
in plist (btw, most common dirs are installed by kdehier port). You can use 
@dirrmtry for them.

Cheers,
Max


More information about the kde-freebsd mailing list