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 2 |
7 | 7 | categories net |
8 | 8 | maintainers fkr@opendarwin.org |
9 | 9 | description Packet Capture library |
… |
… |
|
23 | 23 | variant shared { |
24 | 24 | configure.env CFLAGS="-I. -dynamic -fno-common -DHAVE_CONFIG_H" |
25 | 25 | patchfiles patch-Makefile.in |
| 26 | pre-configure { |
| 27 | reinplace "s/COMPAT_INFO/-compatibility_version $version -current_version $version/" \ |
| 28 | Makefile.in |
| 29 | } |
26 | 30 | } |
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 |