[73896] trunk/dports/net/libnet

jmr at macports.org jmr at macports.org
Sun Nov 28 07:12:38 PST 2010


Revision: 73896
          http://trac.macports.org/changeset/73896
Author:   jmr at macports.org
Date:     2010-11-28 07:12:33 -0800 (Sun, 28 Nov 2010)
Log Message:
-----------
libnet: fix universal build (#21042)

Modified Paths:
--------------
    trunk/dports/net/libnet/Portfile
    trunk/dports/net/libnet/files/patch-Makefile

Added Paths:
-----------
    trunk/dports/net/libnet/files/patch-configure

Modified: trunk/dports/net/libnet/Portfile
===================================================================
--- trunk/dports/net/libnet/Portfile	2010-11-28 11:39:43 UTC (rev 73895)
+++ trunk/dports/net/libnet/Portfile	2010-11-28 15:12:33 UTC (rev 73896)
@@ -28,7 +28,8 @@
 master_sites	http://www.packetfactory.net/libnet/dist/deprecated/
 checksums	md5 ddf53f0f484184390e8c2a1bd0853667
 patchfiles	patch-Makefile patch-include-libnet.h \
-		patch-include__libnet__libnet-headers.h
+		patch-include__libnet__libnet-headers.h \
+		patch-configure
 worksrcdir	Libnet-${version}
 
 platform darwin {

Modified: trunk/dports/net/libnet/files/patch-Makefile
===================================================================
--- trunk/dports/net/libnet/files/patch-Makefile	2010-11-28 11:39:43 UTC (rev 73895)
+++ trunk/dports/net/libnet/files/patch-Makefile	2010-11-28 15:12:33 UTC (rev 73896)
@@ -9,3 +9,13 @@
  
  LIBNET      =   libnet
  LIBPWRITE   =   libpwrite
+@@ -73,7 +73,8 @@ OBJECTS     =   src/libnet_resolve.o\
+ all: libnet
+ supp: test example
+ 
+-libnet: version.h $(OBJECTS)
++libnet: $(LIB)
++$(LIB): version.h $(OBJECTS)
+ 	$(AR) -cr $(LIB) $(OBJECTS)
+ 	$(RANLIB) $(LIB)
+ 

Added: trunk/dports/net/libnet/files/patch-configure
===================================================================
--- trunk/dports/net/libnet/files/patch-configure	                        (rev 0)
+++ trunk/dports/net/libnet/files/patch-configure	2010-11-28 15:12:33 UTC (rev 73896)
@@ -0,0 +1,13 @@
+--- configure.orig	2001-01-18 07:59:33.000000000 +1100
++++ configure	2010-11-29 02:00:47.000000000 +1100
+@@ -959,8 +959,8 @@
+ 
+ 
+ if test $ac_cv_prog_gcc = yes; then
+-    CCOPTS='-O2 -funroll-loops -fomit-frame-pointer -Wall'
+-    CFLAGS="$CCOPTS"
++    CCOPTS='-fomit-frame-pointer -Wall'
++    CFLAGS+=" $CCOPTS"
+ fi
+ 
+ # Check whether --with-pf_packet or --without-pf_packet was given.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101128/1e2f75f2/attachment.html>


More information about the macports-changes mailing list