RCS file: /Volumes/src/cvs/od/projects/darwinports/dports/net/libpcap/Portfile,v
retrieving revision 1.17
diff -u -r1.17 Portfile
|
|
|
3 | 3 | PortSystem 1.0 |
4 | 4 | name libpcap |
5 | 5 | version 0.8.3 |
6 | | revision 1 |
| 6 | revision 3 |
7 | 7 | categories net |
8 | | maintainers fkr@opendarwin.org |
| 8 | maintainers fkr@opendarwin.org ricci@opendarwin.org |
9 | 9 | description Packet Capture library |
10 | 10 | long_description The Packet Capture library provides a high level interface to packet \ |
11 | 11 | capture systems. All packets on the network, even those destined \ |
… |
… |
|
15 | 15 | master_sites ${homepage}release/ |
16 | 16 | checksums md5 56a9d4615d8354fcfe8cff8c8443c77b |
17 | 17 | configure.args --mandir=${prefix}/share/man |
| 18 | configure.env CFLAGS="-I. -dynamic -fno-common -DHAVE_CONFIG_H" |
| 19 | patchfiles patch-Makefile.in |
| 20 | pre-configure { |
| 21 | reinplace "s/COMPAT_INFO/-compatibility_version $version -current_version $version/" \ |
| 22 | Makefile.in |
| 23 | } |
18 | 24 | |
19 | 25 | variant ipv6 { |
20 | 26 | configure.args-append --enable-ipv6 |
21 | 27 | } |
22 | 28 | |
23 | | variant shared { |
24 | | configure.env CFLAGS="-I. -dynamic -fno-common -DHAVE_CONFIG_H" |
25 | | patchfiles patch-Makefile.in |
| 29 | variant no-shared { |
| 30 | configure.env-delete CFLAGS="-I. -dynamic -fno-common -DHAVE_CONFIG_H" |
| 31 | patchfiles-delete patch-Makefile.in |
| 32 | pre-configure { |
| 33 | reinplace "s/COMPAT_INFO/-compatibility_version $version -current_version $version/" \ |
| 34 | Makefile.in |
| 35 | } |
26 | 36 | } |
RCS file: /Volumes/src/cvs/od/projects/darwinports/dports/net/libpcap/files/patch-Makefile.in,v
retrieving revision 1.1
diff -u -r1.1 patch-Makefile.in
|
|
|
1 | | --- Makefile.in Sun Dec 14 17:42:23 2003 |
2 | | +++ Makefile.in Mon May 24 17:18:58 2004 |
| 1 | --- Makefile.in.orig Tue Jun 1 23:07:11 2004 |
| 2 | +++ Makefile.in Tue Jun 1 23:08:09 2004 |
3 | 3 | @@ -94,15 +94,19 @@ |
4 | 4 | TAGFILES = \ |
5 | 5 | $(SRC) $(HDR) $(TAGHDR) |
… |
… |
|
17 | 17 | |
18 | 18 | +libpcap.dylib: $(OBJ) |
19 | 19 | + @rm -f $@ |
20 | | + $(CC) -dynamiclib -o $@ $(OBJ) $(LIBS) |
| 20 | + $(CC) -dynamiclib -install_name $(DESTDIR)$(libdir)/libpcap.DP.dylib COMPAT_INFO -o $@ $(OBJ) $(LIBS) |
21 | 21 | + |
22 | 22 | scanner.c: $(srcdir)/scanner.l |
23 | 23 | @rm -f $@ |
24 | 24 | $(LEX) -t $< > $$$$.$@; mv $$$$.$@ $@ |
25 | | @@ -156,6 +160,7 @@ |
| 25 | @@ -156,6 +160,8 @@ |
26 | 26 | (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir)) |
27 | 27 | $(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a |
28 | 28 | $(RANLIB) $(DESTDIR)$(libdir)/libpcap.a |
29 | | + $(INSTALL_DATA) libpcap.dylib $(DESTDIR)$(libdir)/libpcap.dylib |
| 29 | + $(INSTALL_DATA) libpcap.dylib $(DESTDIR)$(libdir)/libpcap.DP.dylib |
| 30 | + (cd $(DESTDIR)$(libdir) && ln -s libpcap.DP.dylib libpcap.dylib) |
30 | 31 | [ -d $(DESTDIR)$(includedir) ] || \ |
31 | 32 | (mkdir -p $(DESTDIR)$(includedir); chmod 755 $(DESTDIR)$(includedir)) |
32 | 33 | $(INSTALL_DATA) $(srcdir)/pcap.h $(DESTDIR)$(includedir)/pcap.h |