void-packages/srcpkgs/capstone/patches/makefile.patch

37 lines
1.1 KiB
Diff

--- Makefile 2018-12-18 17:31:46.000000000 +0100
+++ Makefile 2019-01-05 02:15:19.102526211 +0100
@@ -402,23 +402,23 @@
endif
install: $(PKGCFGF) $(ARCHIVE) $(LIBRARY)
- mkdir -p $(DESTDIR)$(LIBDIR)
- $(call install-library,$(DESTDIR)$(LIBDIR))
+ mkdir -p $(LIBDIR)
+ $(call install-library,$(LIBDIR))
ifeq ($(CAPSTONE_STATIC),yes)
- $(INSTALL_DATA) $(ARCHIVE) $(DESTDIR)$(LIBDIR)
+ $(INSTALL_DATA) $(ARCHIVE) $(LIBDIR)
endif
mkdir -p $(DESTDIR)$(INCDIR)/$(LIBNAME)
$(INSTALL_DATA) include/capstone/*.h $(DESTDIR)$(INCDIR)/$(LIBNAME)
- mkdir -p $(DESTDIR)$(PKGCFGDIR)
- $(INSTALL_DATA) $(PKGCFGF) $(DESTDIR)$(PKGCFGDIR)
- mkdir -p $(DESTDIR)$(BINDIR)
- $(INSTALL_LIB) cstool/cstool $(DESTDIR)$(BINDIR)
+ mkdir -p $(PKGCFGDIR)
+ $(INSTALL_DATA) $(PKGCFGF) $(PKGCFGDIR)
+ mkdir -p $(BINDIR)
+ $(INSTALL_LIB) cstool/cstool $(BINDIR)
uninstall:
rm -rf $(DESTDIR)$(INCDIR)/$(LIBNAME)
- rm -f $(DESTDIR)$(LIBDIR)/lib$(LIBNAME).*
- rm -f $(DESTDIR)$(PKGCFGDIR)/$(LIBNAME).pc
- rm -f $(DESTDIR)$(BINDIR)/cstool
+ rm -f $(LIBDIR)/lib$(LIBNAME).*
+ rm -f $(PKGCFGDIR)/$(LIBNAME).pc
+ rm -f $(BINDIR)/cstool
clean:
rm -f $(LIBOBJ)