anchor.diff:      "-lbdplus"
     ];
   
  -  # preConfigure = ''
  -  #   export JDK_HOME="${jdk.home}"
  -  # '';
  +  #preConfigure = ''
  +  #  export JDK_HOME="${jdk.home}"
  +  #'';
   
     passthru = {
       srcVerification = fetchurl {
  
positive.code:     boolEn
      boolWt;
  
    version  = "1.0.0";
  in
  stdenv.mkDerivation rec {
    name = "libbluray-${version}";
  
negative.code:   src = fetchurl {
      url = "mirror://videolan/libbluray/${version}/${name}.tar.bz2";
      hashOutput = false;
      sha256 = "6d9e7c4e416f664c330d9fa5a05ad79a3fb39b95adfc3fd6910cbed503b7aeff";
    };
  
    nativeBuildInputs = [
      #ant
      #autoreconfHook
    ];
  
    buildInputs = [
      fontconfig
      freetype
      #jdk
      libxml2
    ];
  
    /*postPatch = ''
      # Fix search path for BDJ jarfile
      # See triton-patches "libbluray/BDJ-JARFILE-path.patch"
      sed -i configure.ac \
        -e "/\[JDK_HOME\], \[\"\$JDK_HOME\"\]/a CPPFLAGS=\"''${CPPFLAGS} -DJARDIR='\\\\\"\\\$(datadir)/java\\\\\"'\""
      sed -i src/libbluray/bdj/bdj.c \
        -e 's|/usr/share/java/" BDJ_JARFILE|JARDIR "/" BDJ_JARFILE|'
    '';*/
  
    configureFlags = [
      "--disable-examples"
      "--disable-bdjava-jar"  # FIXME: Fix BDJ search path
      #"--${boolEn (jdk != null)}-bdjava-jar"
      "--disable-doxygen-doc"
      "--disable-doxygen-dot"
  