[42171] trunk/dports/net/libpcap

nox at macports.org nox at macports.org
Sun Nov 16 08:36:15 PST 2008


Revision: 42171
          http://trac.macports.org/changeset/42171
Author:   nox at macports.org
Date:     2008-11-16 08:36:13 -0800 (Sun, 16 Nov 2008)
Log Message:
-----------
libpcap (closes #17154):
 * Updated to 1.0.0.
 * ipv6 support is no longer a variant.
 * Now uses custom targets instead of patching Makefile.
 * Enabled parallel build.

Modified Paths:
--------------
    trunk/dports/net/libpcap/Portfile

Removed Paths:
-------------
    trunk/dports/net/libpcap/files/patch-Makefile.in.diff

Modified: trunk/dports/net/libpcap/Portfile
===================================================================
--- trunk/dports/net/libpcap/Portfile	2008-11-16 16:09:38 UTC (rev 42170)
+++ trunk/dports/net/libpcap/Portfile	2008-11-16 16:36:13 UTC (rev 42171)
@@ -3,8 +3,7 @@
 PortSystem 1.0
 
 name                libpcap
-version             0.9.8
-revision            0
+version             1.0.0
 categories          net
 maintainers         opendarwin.org at darkart.com
 description         Packet Capture library
@@ -16,36 +15,20 @@
 platforms           darwin
 master_sites        ${homepage}release/ \
                     macports
-checksums           md5 5208f24d0328ee7c20b52c43eaa9aa0e \
-                    sha1 11dfe67cfc1c279c7346d626a99ad4ba90621028
+checksums           md5     9ad1358c5dec48456405eac197a46d3d \
+                    sha1    9893654027ae11033d785045ff35583da43fe8fa \
+                    rmd160  20857fe6af5dc70fffb19da46e0fee908f55b3ea
 
-configure.args             --mandir=${prefix}/share/man
-# configure.env            CFLAGS="-I. -dynamic -fno-common -DHAVE_CONFIG_H"
-configure.cflags-append    -I. -dynamic -fno-common -DHAVE_CONFIG_H
+configure.args      --enable-ipv6
 
-patchfiles          patch-Makefile.in.diff  \
-                    patch-scanner.l.diff
+patchfiles          patch-scanner.l.diff
 
-pre-configure {
-    reinplace "s/COMPAT_INFO/-compatibility_version $version -current_version $version/" \
-    ${worksrcpath}/Makefile.in
-}
+use_parallel_build  yes
+build.target-append shared
 
-variant ipv6 description {enable ipv6 support} {
-    configure.args-append    --enable-ipv6
-}
+destroot.target-append  install-shared
 
-variant no_shared description {don't build libpcap.dylib} {
-    # configure.env-delete      CFLAGS="-I. -dynamic -fno-common -DHAVE_CONFIG_H"
-    configure.cflags-delete     -I. -dynamic -fno-common -DHAVE_CONFIG_H
-    patchfiles-delete           patch-Makefile.in
-    pre-configure {
-        reinplace "s/COMPAT_INFO/-compatibility_version $version -current_version $version/" \
-        Makefile.in
-    }
-}
+universal_variant   no
 
-universal_variant no
-
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 # vi: set fenc=utf-8 filetype=tcl et sw=4 ts=4 sts=4: #

Deleted: trunk/dports/net/libpcap/files/patch-Makefile.in.diff
===================================================================
--- trunk/dports/net/libpcap/files/patch-Makefile.in.diff	2008-11-16 16:09:38 UTC (rev 42170)
+++ trunk/dports/net/libpcap/files/patch-Makefile.in.diff	2008-11-16 16:36:13 UTC (rev 42171)
@@ -1,40 +0,0 @@
---- Makefile.in	2003-12-14 17:35:03.000000000 -0800
-+++ Makefile.in	2005-08-12 11:49:13.000000000 -0700
-@@ -95,9 +95,9 @@
- TAGFILES = \
- 	$(SRC) $(HDR) $(TAGHDR)
- 
--CLEANFILES = $(OBJ) libpcap.a $(GENSRC) $(GENHDR) lex.yy.c
-+CLEANFILES = $(OBJ) libpcap.a libpcap.$(DYEXT) $(GENSRC) $(GENHDR) lex.yy.c
- 
--all: libpcap.a
-+all: libpcap.a shared
- 
- libpcap.a: $(OBJ)
- 	@rm -f $@
-@@ -116,11 +116,11 @@
- 
- # the following rule succeeds, but the result is untested.
- libpcap.dylib: $(OBJ)
--	rm -f libpcap*.dylib
--	$(CC) -dynamiclib -undefined error -o libpcap.`cat VERSION`.dylib $(OBJ) \
--		-install_name $(libdir)/libpcap.0.dylib -compatibility_version `cat VERSION` \
--		-current_version `cat VERSION`
--
-+	rm -f $@
-+	$(CC) -dynamiclib -o libpcap.`cat VERSION`.dylib \
-+		-install_name $(libdir)/libpcap.0.dylib \
-+		-compatibility_version 1.0.0 -current_version `cat VERSION` \
-+		$(OBJ) $(LIBS)
- 
- scanner.c: $(srcdir)/scanner.l
- 	@rm -f $@
-@@ -170,7 +170,7 @@
- bpf_filter.o: bpf_filter.c
- 	$(CC) $(CFLAGS) -c bpf_filter.c
- 
--install: libpcap.a 
-+install: libpcap.a install-shared
- 	[ -d $(DESTDIR)$(libdir) ] || \
- 	    (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
- 	$(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081116/e4ae7af1/attachment.html>


More information about the macports-changes mailing list