Debian Codegraph @

debian/patches/system-pd.patch

raw
1 Description: Use Pd files provided by Debian packages
2 Author: IOhannes m zmölnig
3 Origin: Debian
4 Forwarded: not-needed
5 Last-Update: 2025-02-09
6 ---
7 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
8 --- hvcc.orig/hvcc/generators/c2pdext/c2pdext.py
9 +++ hvcc/hvcc/generators/c2pdext/c2pdext.py
10 @@ -67,8 +67,13 @@
11 shutil.copytree(c_src_dir, out_dir)
12
13 # copy over static files
14 - shutil.copy(Path(__file__).parent / "static" / "m_pd.h", f"{out_dir}/")
15 - shutil.copy(Path(__file__).parent / "static" / "Makefile.pdlibbuilder", f"{out_dir}/../")
16 + for plb_file in [
17 + Path("/usr/share/pd-lib-builder/Makefile.pdlibbuilder"),
18 + Path(__file__).parent / "static" / "Makefile.pdlibbuilder",
19 + ]:
20 + if plb_file.exists():
21 + shutil.copy(plb_file, f"{out_dir}/../")
22 + break
23
24 try:
25 # initialise the jinja template environment