diff options
| author | quapka | 2024-07-30 09:56:32 +0200 |
|---|---|---|
| committer | quapka | 2024-07-30 10:51:50 +0200 |
| commit | 9c6de288457a6a0036cd18378e7c6e58d3e01985 (patch) | |
| tree | 02497789eeae09c6fb5e7a1b7b3e7a67b295b3ea /nix/libtommath-pkgconfig-for-static-build.patch | |
| parent | 095a210092b536fd70c10d5dd58c2668c4ce9331 (diff) | |
| download | ECTester-9c6de288457a6a0036cd18378e7c6e58d3e01985.tar.gz ECTester-9c6de288457a6a0036cd18378e7c6e58d3e01985.tar.zst ECTester-9c6de288457a6a0036cd18378e7c6e58d3e01985.zip | |
Diffstat (limited to 'nix/libtommath-pkgconfig-for-static-build.patch')
| -rw-r--r-- | nix/libtommath-pkgconfig-for-static-build.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nix/libtommath-pkgconfig-for-static-build.patch b/nix/libtommath-pkgconfig-for-static-build.patch new file mode 100644 index 0000000..4a97aca --- /dev/null +++ b/nix/libtommath-pkgconfig-for-static-build.patch @@ -0,0 +1,15 @@ +diff --git a/makefile b/makefile +index bee51a1..b36a13a 100644 +--- a/makefile ++++ b/makefile +@@ -90,6 +90,10 @@ install: $(LIBNAME) + install -d $(DESTDIR)$(INCPATH) + install -m 644 $(LIBNAME) $(DESTDIR)$(LIBPATH) + install -m 644 $(HEADERS_PUB) $(DESTDIR)$(INCPATH) ++ sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^Version:.*,Version: $(VERSION_PC),' -e 's,@CMAKE_INSTALL_LIBDIR@,lib,' \ ++ -e 's,@CMAKE_INSTALL_INCLUDEDIR@,include,' libtommath.pc.in > libtommath.pc ++ install -d $(DESTDIR)$(LIBPATH)/pkgconfig ++ install -m 644 libtommath.pc $(DESTDIR)$(LIBPATH)/pkgconfig/ + + uninstall: + rm $(DESTDIR)$(LIBPATH)/$(LIBNAME) |
