Ignore:
Timestamp:
Jan 5, 2014, 8:44:13 AM (6 years ago)
Author:
ryandesign@…
Message:

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

Location:
trunk/dports/archivers/lz4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/archivers/lz4/Portfile

    r115555 r115562  
    77name                lz4
    88version             r110
     9revision            1
    910categories          archivers
    1011maintainers         mfeiri openmaintainer
     
    1920                    systems.
    2021
    21 master_sites        googlecode:${name}
     22master_sites        googlecode
    2223checksums           rmd160  9719df79ed3c238b4e168a060d2b3925b6eaac06 \
    2324                    sha256  fb7b49c246bd0f6566b6f31e6f3586074277b7e3b7a2119ad728c17533331a65
    2425
    2526patchfiles          patch-Makefile.diff
     27
    2628use_configure       no
    27 build.args-append   CC=${configure.cc}
    28 #configure.cmd       cmake cmake
     29
     30variant universal {}
     31
     32build.target        default
     33build.args-append   CC="${configure.cc} [get_canonical_archflags cc]" \
     34                    PREFIX=${prefix}
     35
     36destroot.args-append PREFIX=${prefix}
  • trunk/dports/archivers/lz4/files/patch-Makefile.diff

    r115555 r115562  
    1 --- Makefile    2014-01-04 16:42:11.000000000 +0100
    2 +++ Makefile    2014-01-04 17:16:11.000000000 +0100
    3 @@ -31,12 +31,10 @@
    4  # ################################################################
     1--- Makefile.orig       2013-12-30 18:07:04.000000000 -0600
     2+++ Makefile    2014-01-05 02:41:31.000000000 -0600
     3@@ -32,7 +32,7 @@
    54 
    65 RELEASE=r110
    7 -DESTDIR=
    8  PREFIX=${DESTDIR}/usr
     6 DESTDIR=
     7-PREFIX=${DESTDIR}/usr
     8+PREFIX=/usr
    99 BINDIR=$(PREFIX)/bin
    1010 MANDIR=$(PREFIX)/share/man/man1
    1111 DISTRIBNAME=lz4-$(RELEASE).tar.gz
    12 -CC=gcc
    13  CFLAGS=-I. -std=c99 -Wall -W -Wundef -DLZ4_VERSION=\"$(RELEASE)\"
    14  
    15  # Define *.exe as extension for Windows systems
    16 @@ -90,8 +88,6 @@
     12@@ -90,13 +90,11 @@
    1713        @echo Cleaning completed
    1814 
     
    2117-
    2218 install: lz4 lz4c
    23         @install -d -m 755 $(BINDIR)/ $(MANDIR)/
    24         @install -m 755 lz4 $(BINDIR)/lz4
    25 @@ -116,5 +112,3 @@
     19-       @install -d -m 755 $(BINDIR)/ $(MANDIR)/
     20-       @install -m 755 lz4 $(BINDIR)/lz4
     21-       @install -m 755 lz4c $(BINDIR)/lz4c
     22-       @install -m 644 lz4.1 $(MANDIR)/lz4.1
     23+       @install -d -m 755 $(DESTDIR)$(BINDIR)/ $(DESTDIR)$(MANDIR)/
     24+       @install -m 755 lz4 $(DESTDIR)$(BINDIR)/lz4
     25+       @install -m 755 lz4c $(DESTDIR)$(BINDIR)/lz4c
     26+       @install -m 644 lz4.1 $(DESTDIR)$(MANDIR)/lz4.1
     27 
     28 uninstall:
     29        [ -x $(BINDIR)/lz4 ] && rm -f $(BINDIR)/lz4
     30@@ -116,5 +114,3 @@
    2631        @tar -czf $(DISTRIBNAME) lz4-$(RELEASE)/
    2732        @rm -rf lz4-$(RELEASE)
Note: See TracChangeset for help on using the changeset viewer.