Changeset 134066


Ignore:
Timestamp:
Mar 17, 2015, 10:24:57 PM (4 years ago)
Author:
devans@…
Message:

getopt: build fix for non x86_64 archs, version 1.1.6 no longer ships with extraneous *.o files (#47173).

Location:
trunk/dports/sysutils/getopt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/getopt/Portfile

    r134016 r134066  
    3232                    sha256  d0bf1dc642a993e7388a1cddfb9409bed375c21d5278056ccca3a0acd09dc5fe
    3333
    34 post-extract {
    35     # 1.1.5 ships with ELF .o files
    36     fs-traverse f ${worksrcpath} {
    37         if {[file isfile ${f}] && [file extension ${f}] eq ".o"} {
    38             delete ${f}
    39         }
    40     }
    41 }
    42 
    4334patchfiles          patch-Makefile.diff
    44 
    45 use_configure       no
    46 
    47 variant universal {}
    4835
    4936post-patch {
     
    5138    reinplace -E "/^LDFLAGS/s|\$| [get_canonical_archflags ld]|" ${worksrcpath}/Makefile
    5239}
     40
     41use_configure       no
     42
     43variant universal   {}
    5344
    5445build.args          CC=${configure.cc} \
  • trunk/dports/sysutils/getopt/files/patch-Makefile.diff

    r134016 r134066  
    1 --- Makefile.orig       2014-11-24 04:33:39.000000000 -0800
    2 +++ Makefile    2015-03-16 22:15:21.000000000 -0700
     1--- Makefile.orig       2015-03-17 15:14:56.000000000 -0700
     2+++ Makefile    2015-03-17 15:15:01.000000000 -0700
    33@@ -32,7 +32,7 @@
    44 LANGUAGES = ca cs da de es et eu fi fr gl hr hu id it ja nl pl pt_BR ru sl sv tr uk vi zh_CN zh_TW
     
    1010 CPPFLAGS+=-I./gnu
    1111 endif
    12 @@ -42,8 +42,8 @@
    13           -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
     12@@ -43,7 +43,7 @@
    1413          -Wnested-externs -Winline
    1514 OPTIMIZE=-O3 -fno-strength-reduce
    16 -CFLAGS=$(WARNINGS) $(OPTIMIZE)
     15 CFLAGS=$(WARNINGS) $(OPTIMIZE)
    1716-LDFLAGS=
    18 +CFLAGS=$(WARNINGS) $(OPTIMIZE) -arch x86_64
    19 +LDFLAGS=-L$(prefix)/lib -lintl -arch x86_64
     17+LDFLAGS=-L$(prefix)/lib -lintl
    2018 
    2119 sources=getopt.c
Note: See TracChangeset for help on using the changeset viewer.