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 -08002 +++ Makefile.in 2005-08-12 11:49:13.000000000 -07003 @@ -95,9 +95,9 @@4 TAGFILES = \5 $(SRC) $(HDR) $(TAGHDR)6 7 -CLEANFILES = $(OBJ) libpcap.a $(GENSRC) $(GENHDR) lex.yy.c8 +CLEANFILES = $(OBJ) libpcap.a libpcap.$(DYEXT) $(GENSRC) $(GENHDR) lex.yy.c9 10 -all: libpcap.a11 +all: libpcap.a shared12 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*.dylib20 - $(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.l31 @rm -f $@32 @@ -170,7 +170,7 @@33 bpf_filter.o: bpf_filter.c34 $(CC) $(CFLAGS) -c bpf_filter.c35 36 -install: libpcap.a37 +install: libpcap.a install-shared38 [ -d $(DESTDIR)$(libdir) ] || \39 (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))40 $(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a -
Portfile
3 3 PortSystem 1.0 4 4 5 5 name libpcap 6 version 0.9.8 7 revision 0 6 version 1.0.0 8 7 categories net 9 8 maintainers opendarwin.org@darkart.com 10 9 description Packet Capture library … … 16 15 platforms darwin 17 16 master_sites ${homepage}release/ \ 18 17 macports 19 checksums md5 5208f24d0328ee7c20b52c43eaa9aa0e \ 20 sha1 11dfe67cfc1c279c7346d626a99ad4ba90621028 18 checksums md5 9ad1358c5dec48456405eac197a46d3d \ 19 sha1 9893654027ae11033d785045ff35583da43fe8fa \ 20 rmd160 20857fe6af5dc70fffb19da46e0fee908f55b3ea 21 21 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 22 configure.args --enable-ipv6 25 23 26 patchfiles patch-Makefile.in.diff \ 27 patch-scanner.l.diff 24 patchfiles patch-scanner.l.diff 28 25 29 pre-configure { 30 reinplace "s/COMPAT_INFO/-compatibility_version $version -current_version $version/" \ 31 ${worksrcpath}/Makefile.in 32 } 26 use_parallel_build yes 27 build.target-append shared 33 28 34 variant ipv6 description {enable ipv6 support} { 35 configure.args-append --enable-ipv6 36 } 29 destroot.target-append install-shared 37 30 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 } 31 universal_variant no 47 32 48 universal_variant no49 50 33 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- 51 34 # vi: set fenc=utf-8 filetype=tcl et sw=4 ts=4 sts=4: #