Ticket #27574: patch-destdir.diff

File patch-destdir.diff, 991 bytes (added by jking+macports@…, 14 years ago)

Updated version for 2.9.0 to correct DESTDIR

  • Makefile.

    old new  
    214214
    215215# Install after building
    216216install:: force
    217         for d in $(DIRS); do $(INSTALL) -d $$d; done
    218         for f in $(BIN); do $(INSTALL_PROG) $$f $(bindir); done
    219         for f in $(LIBSRC); do $(INSTALL_DATA) $$f $(libdir)/obc; done
    220         for f in $(LIB); do $(INSTALL_DATA) $$f $(libdir)/obc; done
    221         for f in $(LIBX); do $(INSTALL_PROG) $$f $(libdir)/obc; done
    222         for f in $(MAN); do $(INSTALL_DATA) $$f $(mandir)/man1; done
     217        for d in $(DIRS); do $(INSTALL) -d $(DESTDIR)$$d; done
     218        for f in $(BIN); do $(INSTALL_PROG) $$f $(DESTDIR)$(bindir); done
     219        for f in $(LIBSRC); do $(INSTALL_DATA) $$f $(DESTDIR)$(libdir)/obc; done
     220        for f in $(LIB); do $(INSTALL_DATA) $$f $(DESTDIR)$(libdir)/obc; done
     221        for f in $(LIBX); do $(INSTALL_PROG) $$f $(DESTDIR)$(libdir)/obc; done
     222        for f in $(MAN); do $(INSTALL_DATA) $$f $(DESTDIR)$(mandir)/man1; done
    223223
    224224ifdef ENABLE_DEBUGGER
    225225  ifdef MACOS