Description: Use Pd files provided by Debian packages Author: IOhannes m zmölnig Origin: Debian Forwarded: not-needed Last-Update: 2025-02-09 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- hvcc.orig/hvcc/generators/c2pdext/c2pdext.py +++ hvcc/hvcc/generators/c2pdext/c2pdext.py @@ -67,8 +67,13 @@ shutil.copytree(c_src_dir, out_dir) # copy over static files - shutil.copy(Path(__file__).parent / "static" / "m_pd.h", f"{out_dir}/") - shutil.copy(Path(__file__).parent / "static" / "Makefile.pdlibbuilder", f"{out_dir}/../") + for plb_file in [ + Path("/usr/share/pd-lib-builder/Makefile.pdlibbuilder"), + Path(__file__).parent / "static" / "Makefile.pdlibbuilder", + ]: + if plb_file.exists(): + shutil.copy(plb_file, f"{out_dir}/../") + break try: # initialise the jinja template environment