freebsd-ports/devel/electron21/files/patch-build_config_linux_pkg-config.py
Mikael Urankar 09c1114e71 devel/electron21: add port: Build cross-platform desktop apps with JavaScript, HTML, and CSS
Build cross platform desktop apps with JavaScript, HTML, and CSS.

It's easier than you think.

If you can build a website, you can build a desktop app. Electron is a
framework for creating native applications with web technologies like
JavaScript, HTML, and CSS. It takes care of the hard parts so you can
focus on the core of your application.

WWW: https://electronjs.org/
2022-12-17 11:09:35 +01:00

11 lines
460 B
Python

--- build/config/linux/pkg-config.py.orig 2022-02-07 13:39:41 UTC
+++ build/config/linux/pkg-config.py
@@ -109,7 +109,7 @@ def main():
# If this is run on non-Linux platforms, just return nothing and indicate
# success. This allows us to "kind of emulate" a Linux build from other
# platforms.
- if "linux" not in sys.platform:
+ if not sys.platform.startswith(tuple(['linux', 'openbsd', 'freebsd'])):
print("[[],[],[],[],[]]")
return 0