New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 81222


Ignore:
Timestamp:
07/26/11 23:11:58 (4 years ago)
Author:
ryandesign@…
Message:

arb: fix build for Lion / clang; see #30342

Location:
trunk/dports/science/arb
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/arb/Portfile

    r78272 r81222  
    77epoch                   1 
    88version                 5.2 
    9 revision                1 
     9revision                2 
    1010categories              science 
    1111maintainers             me.com:matt.cottrell  
     
    5555                        patch-ARB-DARWIN.pl.diff \ 
    5656                        patch-ARB-glpng.diff \ 
    57                         arb_intro.fig.diff 
     57                        arb_intro.fig.diff \ 
     58                        patch-ARB-Flatio.diff \ 
     59                        patch-ARB-Zuk_to_gen.c.diff \ 
     60                        patch-ARB-count.c.diff \ 
     61                        patch-ARB-lsadt.c.diff \ 
     62                        patch-ARB-interface.c.diff 
    5863                        
    5964configure               { 
     
    7782                        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/bin/arb_macsetup 
    7883 
    79                         reinplace "s|OSX_SDK:=/Developer/SDKs/MacOSX10.5.sdk|OSX_SDK:=${configure.sdkroot}|g" ${worksrcpath}/Makefile 
    80  
    8184                        if {${build_arch} == "ppc" || ${build_arch} == "i386"} { 
    8285                            set is64bit 0 
     
    9093                        ARBHOME=${worksrcpath} \ 
    9194                        PATH=${worksrcpath}/bin:$env(PATH) 
     95 
     96if {${configure.compiler} == "llvm-gcc-4.2"} { 
     97    configure.compiler clang 
     98} 
    9299 
    93100build.args              GCC=${configure.cc} \ 
  • trunk/dports/science/arb/files/patch-ARB-makefile.diff

    r76340 r81222  
    1 Index: Makefile 
    2 =================================================================== 
    3 --- Makefile    (revision 6215) 
    4 +++ Makefile    (working copy) 
    5 @@ -31,11 +31,12 @@ 
     1--- Makefile.orig       2010-09-05 12:00:58.000000000 -0400 
     2+++ Makefile    2011-07-26 00:35:21.000000000 -0400 
     3@@ -31,22 +31,21 @@ 
    64 #                       configurable in config.makefile 
    75 # 
     
    1715  
    1816 FORCEMASK = umask 002 
    19 @@ -198,15 +197,15 @@ 
     17  
     18 # ---------------------- [unconditionally used options] 
     19  
     20-GCC:=gcc 
     21-GPP:=g++  
     22-CPPreal:=cpp 
     23- 
     24- 
     25+#GCC:=gcc      <Now set in the Portfile> 
     26+#GPP:=g++      <Now set in the Portfile> 
     27+#CPPreal:=cpp  <Now set in the Portfile> 
     28  
     29 # ---------------------- compiler version detection 
     30  
     31@@ -71,7 +70,7 @@ 
     32 #---------------------- define special directories for non standard builds 
     33  
     34 ifdef DARWIN 
     35-OSX_SDK:=/Developer/SDKs/MacOSX10.5.sdk 
     36+OSX_SDK:= 
     37 OSX_FW:=/System/Library/Frameworks 
     38 OSX_FW_OPENGL:=$(OSX_FW)/OpenGL.framework/Versions/A/Libraries 
     39 OSX_FW_IMAGEIO:=$(OSX_FW)/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources 
     40@@ -186,7 +185,6 @@ 
     41 dflags += -D$(MACH) # define machine 
     42  
     43 ifdef DARWIN 
     44-       cflags += -no-cpp-precomp  
     45        shared_cflags += -fno-common 
     46 else 
     47        dflags +=  $(shell getconf LFS_CFLAGS) 
     48@@ -199,15 +197,15 @@ 
    2049  
    2150 #---------------------- X11 location 
     
    3665 else 
    3766        XLIBS:=-L$(XHOME)/$(CROSS_LIB) -lXm -lXpm -lXp -lXt -lXext -lX11 
    38 @@ -225,14 +224,9 @@ 
     67@@ -226,14 +224,9 @@ 
    3968  
    4069 GL_PNGLIBS := -L$(ARBHOME)/GL/glpng -lglpng_arb -lpng 
     
    5483  
    5584 #XLIBS += $(GL_LIB) 
    56 @@ -247,11 +241,7 @@ 
     85@@ -248,11 +241,7 @@ 
    5786  
    5887 #---------------------- tiff lib: 
     
    6796 #---------------------- basic libs: 
    6897  
    69 @@ -317,11 +307,7 @@ 
     98@@ -318,11 +307,7 @@ 
    7099 # other used tools 
    71100  
Note: See TracChangeset for help on using the changeset viewer.