Yocto configuration of opencv in a bbappend

Hi, I need help in configuration the build/packaging in Yocto.
I have few points to change.

  • I need to add the freetype stuff
    I tried several things in a bbappend file but it doesn’t work.
    Expected that
    PACKAGECONFIG:append:pn_opencv = " freetype"
    do the job, but it doesn’t.

The other two points are optional

  • remove anything other than core and imageproc to build to speed it up

  • create staticlibs instead of dynamic

PS: I don’t have already a package that depends on it, as this is just for creation of an SDK for the programmers.