source: trunk/dports/archivers/lz4/files/patch-Makefile.diff @ 115562

Last change on this file since 115562 was 115562, checked in by ryandesign@…, 6 years ago

lz4: change build.target so we only build the files that will actually be installed; install to $prefix not /usr; patch Makefile to use $DESTDIR variable properly; use -arch flags and add universal variant

File size: 937 bytes
  • Makefile

    old new  
    3232
    3333RELEASE=r110
    3434DESTDIR=
    35 PREFIX=${DESTDIR}/usr
     35PREFIX=/usr
    3636BINDIR=$(PREFIX)/bin
    3737MANDIR=$(PREFIX)/share/man/man1
    3838DISTRIBNAME=lz4-$(RELEASE).tar.gz
     
    9090        @echo Cleaning completed
    9191
    9292
    93 ifeq ($(shell uname),Linux)
    94 
    9593install: lz4 lz4c
    96         @install -d -m 755 $(BINDIR)/ $(MANDIR)/
    97         @install -m 755 lz4 $(BINDIR)/lz4
    98         @install -m 755 lz4c $(BINDIR)/lz4c
    99         @install -m 644 lz4.1 $(MANDIR)/lz4.1
     94        @install -d -m 755 $(DESTDIR)$(BINDIR)/ $(DESTDIR)$(MANDIR)/
     95        @install -m 755 lz4 $(DESTDIR)$(BINDIR)/lz4
     96        @install -m 755 lz4c $(DESTDIR)$(BINDIR)/lz4c
     97        @install -m 644 lz4.1 $(DESTDIR)$(MANDIR)/lz4.1
    10098
    10199uninstall:
    102100        [ -x $(BINDIR)/lz4 ] && rm -f $(BINDIR)/lz4
     
    116114        @tar -czf $(DISTRIBNAME) lz4-$(RELEASE)/
    117115        @rm -rf lz4-$(RELEASE)
    118116        @echo Distribution $(DISTRIBNAME) built
    119 
    120 endif
Note: See TracBrowser for help on using the repository browser.