linamh/sci-electronics/minipro/files/minipro-0.5-libs.patch
2022-02-23 19:17:30 +01:00

21 lines
992 B
Diff

--- minipro-0.5/Makefile.orig 2022-02-22 19:40:51.778911209 +0100
+++ minipro-0.5/Makefile 2022-02-22 19:41:39.919122650 +0100
@@ -164,13 +164,13 @@
install_library:
mkdir -p $(LIB_INSTDIR)
mkdir -p $(INCLUDE_INSTDIR)
- mkdir $(LIB_INSTDIR)/pkgconfig
+ mkdir -p $(LIB_INSTDIR)/pkgconfig
cp $(STATIC_LIB) $(LIB_INSTDIR)/
cp *.h $(INCLUDE_INSTDIR)/
cp libminipro.pc $(LIB_INSTDIR)/pkgconfig/
- sed -e "s#MINIPROPREFIX#$(DESTDIR)$(PREFIX)#" -i "" "$(LIB_INSTDIR)/pkgconfig/libminipro.pc"
- sed -e "s#MINIPROVERSION#$(VERSION)#" -i "" "$(LIB_INSTDIR)/pkgconfig/libminipro.pc"
- ln -s "$(LIB_INSTDIR)/pkgconfig/libminipro.pc" /usr/local/lib/pkgconfig/libminipro.pc
+ sed -e "s#MINIPROPREFIX#$(PREFIX)#" -i "$(LIB_INSTDIR)/pkgconfig/libminipro.pc"
+ sed -e "s#MINIPROVERSION#$(VERSION)#" -i "$(LIB_INSTDIR)/pkgconfig/libminipro.pc"
+# ln -s "$(LIB_INSTDIR)/pkgconfig/libminipro.pc" /usr/local/lib/pkgconfig/libminipro.pc
uninstall_library:
rm /usr/local/lib/pkgconfig/libminipro.pc