Ticket #17871: libpcap-1.0.0_universal.patch

File libpcap-1.0.0_universal.patch, 1.4 KB (added by gianluca.toso@…, 16 years ago)
  • Portfile

    diff -Naur libpcap.orig/Portfile libpcap/Portfile
    old new  
    2828
    2929destroot.target-append  install-shared
    3030
    31 universal_variant   no
     31if {[variant_isset universal]} {
     32    patchfiles-append   patch-Makefile.in.diff
     33}
    3234
    3335# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
    3436# vi: set fenc=utf-8 filetype=tcl et sw=4 ts=4 sts=4: #
  • files/patch-Makefile.in.diff

    diff -Naur libpcap.orig/files/patch-Makefile.in.diff libpcap/files/patch-Makefile.in.diff
    old new  
     1--- Makefile.in.orig    2008-10-28 02:26:13.000000000 +0100
     2+++ Makefile.in 2009-01-04 12:16:39.000000000 +0100
     3@@ -52,6 +52,7 @@
     4 DAGLIBS = @DAGLIBS@
     5 DEPLIBS = @DEPLIBS@
     6 DYEXT = @DYEXT@
     7+LDFLAGS = @LDFLAGS@
     8 PROG=libpcap
     9 
     10 # Standard CFLAGS
     11@@ -339,7 +340,7 @@
     12 #
     13 libpcap.dylib: $(OBJ)
     14        rm -f libpcap*.dylib
     15-       $(CC) -dynamiclib -undefined error -o libpcap.`cat $(srcdir)/VERSION`.dylib $(OBJ) \
     16+       $(CC) $(LDFLAGS) -dynamiclib -undefined error -o libpcap.`cat $(srcdir)/VERSION`.dylib $(OBJ) \
     17                -install_name $(libdir)/libpcap.A.dylib \
     18                -compatibility_version 1 \
     19                -current_version `sed 's/[^0-9.].*$$//' $(srcdir)/VERSION`