summaryrefslogtreecommitdiff
path: root/net/driftnet/patches/patch-aa
blob: 972e93d3d491c55706042a1c8d7161dba00f6689 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$NetBSD: patch-aa,v 1.4 2011/04/01 15:06:37 drochner Exp $

--- Makefile.orig	2002-07-09 19:26:41.000000000 +0000
+++ Makefile
@@ -27,12 +27,12 @@ CFLAGS += -I/usr/include/pcap
 CFLAGS += -D_BSD_SOURCE
 
 # We always need the pcap and pthread libraries.
-LDLIBS += -lpcap -lpthread
+LDLIBS += -lpcap ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
 
 # Optional C compiler and linker flags. Typical driftnet builds have support
 # for displaying captured images in an X window, and need the following flags:
 CFLAGS  += `gtk-config --cflags`
-LDLIBS  += -ljpeg -lungif `gtk-config --libs`
+LDLIBS  += -ljpeg -lgif `gtk-config --libs`
 
 # Alternatively, you can build a version of driftnet which can only be used
 # in `adjunct' mode as the back end for some other image-processing program. To
@@ -53,6 +53,7 @@ LDLIBS  += -ljpeg -lungif `gtk-config --
 # On BSD systems, may need to use /usr/local/include
 #CFLAGS += -I/usr/local/include
 
+CFLAGS += `${CAT} endianness 2>/dev/null || ${TRUE}`
 
 #
 # No user-serviceable parts below this point.
@@ -87,7 +88,7 @@ endian: endian.c
 	$(CC) $(CFLAGS) -o endian endian.c
 
 %.o:    %.c Makefile endianness
-	$(CC) $(CFLAGS) `cat endianness` -c -o $@ $<
+	$(CC) $(CFLAGS) -c -o $@ $<
 
 clean:  nodepend
 	rm -f *~ *.bak *.o core $(BINS) TAGS driftnet.1 endian endianness