[89271] trunk/dports/www/edbrowse

snc at macports.org snc at macports.org
Sun Jan 22 14:06:10 PST 2012


Revision: 89271
          http://trac.macports.org/changeset/89271
Author:   snc at macports.org
Date:     2012-01-22 14:06:08 -0800 (Sun, 22 Jan 2012)
Log Message:
-----------
edbrowse: ensure UsingTheRightCompiler and arch flags

Modified Paths:
--------------
    trunk/dports/www/edbrowse/Portfile
    trunk/dports/www/edbrowse/files/patch-makefile.osx.diff

Modified: trunk/dports/www/edbrowse/Portfile
===================================================================
--- trunk/dports/www/edbrowse/Portfile	2012-01-22 21:53:00 UTC (rev 89270)
+++ trunk/dports/www/edbrowse/Portfile	2012-01-22 22:06:08 UTC (rev 89271)
@@ -48,6 +48,7 @@
 
 use_configure       no
 
+build.env-append    CC="${configure.cc} [get_canonical_archflags cc]"
 build.dir           ${worksrcpath}
 build.args          -f makefile.osx
 

Modified: trunk/dports/www/edbrowse/files/patch-makefile.osx.diff
===================================================================
--- trunk/dports/www/edbrowse/files/patch-makefile.osx.diff	2012-01-22 21:53:00 UTC (rev 89270)
+++ trunk/dports/www/edbrowse/files/patch-makefile.osx.diff	2012-01-22 22:06:08 UTC (rev 89271)
@@ -30,8 +30,13 @@
  
  # Make the dynamically linked edbrowse executable by default.
  all: edbrowse
-@@ -37,7 +37,7 @@
+@@ -33,16 +33,16 @@
+ $(EBOBJS) : eb.h eb.p messages.h tcp.h
  
+ edbrowse: $(EBOBJS) tcp.o dbstubs.o
+-	cc $(LFLAGS) -o edbrowse $(EBOBJS) tcp.o dbstubs.o $(LIBS)
++	$(CC) $(LFLAGS) -o edbrowse $(EBOBJS) tcp.o dbstubs.o $(LIBS)
+ 
  # You probably need to be root to do this.
  install:
 -	install edbrowse /usr/local/bin
@@ -39,3 +44,10 @@
  
  #  odbc stuff
  dbodbc.o dbops.o : dbapi.h eb.h eb.p
+ 
+ edbrowseodbc: $(EBOBJS) tcp.o dbops.o dbodbc.o
+-	cc $(LFLAGS) -o edbrowseodbc $(EBOBJS) tcp.o dbops.o dbodbc.o $(LIBS) -lodbc
++	$(CC) $(LFLAGS) -o edbrowseodbc $(EBOBJS) tcp.o dbops.o dbodbc.o $(LIBS) -lodbc
+ 
+ # Build function prototypes.
+ # mkproto is my program, not a general unix utility.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120122/159256d5/attachment.html>


More information about the macports-changes mailing list