6 Commits
Author SHA1 Message Date
Guilherme Janczak cd25e91ca2 use pkg_search_module to find minizip-ng or minizip
OpenBSD calls minizip-ng's .pc file minizip.pc
Others call   minizip-ng's .pc file minizip-ng.pc
2024-05-07 04:25:04 +00:00
Guilherme Janczak d619307a6d use pkg-config to find libfmt
This allows using the system libfmt on OpenBSD and NetBSD.
Unfortunately, the system libfmt is too old on OpenBSD at the moment,
and Dolphin doesn't currently compile on NetBSD for other reasons.
2024-05-06 19:33:37 +00:00
Guilherme Janczak c1e6316bdc use pkg-config to find libusb
This makes more (but not all) of the compilation process succeed on
NetBSD.
2024-05-06 17:44:32 +00:00
Guilherme Janczak 0859d2c472 improve NetBSD-specific code
NetBSD doesn't put packages in /usr/local like /CMakeLists.txt thought.
The `#ifdef __NetBSD__` around iconv was actually breaking compilation
on NetBSD when using the system libiconv (there's also a GNU iconv
package)
A C program included from C++ source broke on NetBSD specifically, work
around it.

This doesn't fix compilation on NetBSD, which is currently broken, but
is closer to correct.
2024-05-03 15:12:29 +00:00
Guilherme Janczak 68cbd2640d fix linking against LLVM shared library
967280f140 broke linking against
libLLVM.so because it used the outdated way to link against LLVM from
CMake. This causes a compilation failure on systems that don't have the
LLVM static libraries, such as Arch Linux. On systems that have the
static libraries, it'll use them and increase binary sizes massively.

Switch to the newer llvm_config CMake macro from LLVM.
2024-05-03 11:56:15 +00:00
Guilherme Janczak 50dc0ffbce port to OpenBSD 2024-04-22 20:50:47 +00:00