anchor.diff:  "
   
   FILES_${PN}-presets += "${datadir}/${BPN}/presets/"
  +# hydrogen-drumkits contain samples
  +RDEPENDS_${PN}-presets = "hydrogen-drumkits"
  
positive.code:     jack \
      lv2 \
      liblo \
  "
  
  inherit qmake5_base autotools-brokensep pkgconfig gtk-icon-cache mime
  
  SRC_URI = " \
      ${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${PV}/${BPN}-${PV}.tar.gz \
      git://github.com/marado/drumkv1-audiophob.git;name=audiophob;destsuffix=audiophob \
      file://0001-find-native-qt-build-tools-by-configure-options-auto.patch \
  "
  SRC_URI[md5sum] = "1c3efd8bbb222f8771fe6c0793178113"
  SRC_URI[sha256sum] = "9821570e17770cedd99e99426e8891b9c16a86e495fc5fcfa9449570bdcb9d3b"
  
  SRCREV_audiophob = "903639b36bd7ffcb7c96893d558c6653d8e249cc"
  
  EXTRA_OECONF = " \
      --with-qmake=${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qmake \
  
negative.code: 
  do_install_append() {
      install -d ${D}${datadir}/${BPN}/presets
      # convert hydrogen drumkits to drumkv1
      export IFS=$'\n'
      for drumkit in `find ${STAGING_DATADIR}/hydrogen/data/drumkits -name drumkit.xml`; do
          echo $drumkit
          drumkit_name=`dirname $drumkit`
          drumkit_name=`basename $drumkit_name`
          echo $drumkit_name
          python3 ${WORKDIR}/hydrogen2drumkv1/hydrogen2drumkv1.py --prefix ${datadir}/hydrogen/data/drumkits $drumkit ${D}${datadir}/${BPN}/presets/$drumkit_name.drumkv1
      done
  }
  
  PACKAGES =+ "${PN}-presets"
  