Ticket #17154: libpcap-1.0.0.diff

File libpcap-1.0.0.diff, 3.6 KB (added by nox@…, 16 years ago)
  • files/patch-Makefile.in.diff

     
    1 --- Makefile.in 2003-12-14 17:35:03.000000000 -0800
    2 +++ Makefile.in 2005-08-12 11:49:13.000000000 -0700
    3 @@ -95,9 +95,9 @@
    4  TAGFILES = \
    5         $(SRC) $(HDR) $(TAGHDR)
    6  
    7 -CLEANFILES = $(OBJ) libpcap.a $(GENSRC) $(GENHDR) lex.yy.c
    8 +CLEANFILES = $(OBJ) libpcap.a libpcap.$(DYEXT) $(GENSRC) $(GENHDR) lex.yy.c
    9  
    10 -all: libpcap.a
    11 +all: libpcap.a shared
    12  
    13  libpcap.a: $(OBJ)
    14         @rm -f $@
    15 @@ -116,11 +116,11 @@
    16  
    17  # the following rule succeeds, but the result is untested.
    18  libpcap.dylib: $(OBJ)
    19 -       rm -f libpcap*.dylib
    20 -       $(CC) -dynamiclib -undefined error -o libpcap.`cat VERSION`.dylib $(OBJ) \
    21 -               -install_name $(libdir)/libpcap.0.dylib -compatibility_version `cat VERSION` \
    22 -               -current_version `cat VERSION`
    23 -
    24 +       rm -f $@
    25 +       $(CC) -dynamiclib -o libpcap.`cat VERSION`.dylib \
    26 +               -install_name $(libdir)/libpcap.0.dylib \
    27 +               -compatibility_version 1.0.0 -current_version `cat VERSION` \
    28 +               $(OBJ) $(LIBS)
    29  
    30  scanner.c: $(srcdir)/scanner.l
    31         @rm -f $@
    32 @@ -170,7 +170,7 @@
    33  bpf_filter.o: bpf_filter.c
    34         $(CC) $(CFLAGS) -c bpf_filter.c
    35  
    36 -install: libpcap.a
    37 +install: libpcap.a install-shared
    38         [ -d $(DESTDIR)$(libdir) ] || \
    39             (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
    40         $(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a
  • Portfile

     
    33PortSystem 1.0
    44
    55name                libpcap
    6 version             0.9.8
    7 revision            0
     6version             1.0.0
    87categories          net
    98maintainers         opendarwin.org@darkart.com
    109description         Packet Capture library
     
    1615platforms           darwin
    1716master_sites        ${homepage}release/ \
    1817                    macports
    19 checksums           md5 5208f24d0328ee7c20b52c43eaa9aa0e \
    20                     sha1 11dfe67cfc1c279c7346d626a99ad4ba90621028
     18checksums           md5     9ad1358c5dec48456405eac197a46d3d \
     19                    sha1    9893654027ae11033d785045ff35583da43fe8fa \
     20                    rmd160  20857fe6af5dc70fffb19da46e0fee908f55b3ea
    2121
    22 configure.args             --mandir=${prefix}/share/man
    23 # configure.env            CFLAGS="-I. -dynamic -fno-common -DHAVE_CONFIG_H"
    24 configure.cflags-append    -I. -dynamic -fno-common -DHAVE_CONFIG_H
     22configure.args      --enable-ipv6
    2523
    26 patchfiles          patch-Makefile.in.diff  \
    27                     patch-scanner.l.diff
     24patchfiles          patch-scanner.l.diff
    2825
    29 pre-configure {
    30     reinplace "s/COMPAT_INFO/-compatibility_version $version -current_version $version/" \
    31     ${worksrcpath}/Makefile.in
    32 }
     26use_parallel_build  yes
     27build.target-append shared
    3328
    34 variant ipv6 description {enable ipv6 support} {
    35     configure.args-append    --enable-ipv6
    36 }
     29destroot.target-append  install-shared
    3730
    38 variant no_shared description {don't build libpcap.dylib} {
    39     # configure.env-delete      CFLAGS="-I. -dynamic -fno-common -DHAVE_CONFIG_H"
    40     configure.cflags-delete     -I. -dynamic -fno-common -DHAVE_CONFIG_H
    41     patchfiles-delete           patch-Makefile.in
    42     pre-configure {
    43         reinplace "s/COMPAT_INFO/-compatibility_version $version -current_version $version/" \
    44         Makefile.in
    45     }
    46 }
     31universal_variant   no
    4732
    48 universal_variant no
    49 
    5033# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
    5134# vi: set fenc=utf-8 filetype=tcl et sw=4 ts=4 sts=4: #