]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/driftnet/driftnet-0.1.6/arm.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / driftnet / driftnet-0.1.6 / arm.patch
1 --- driftnet-0.1.6/Makefile~    2004-12-07 23:26:53.211878920 +0000
2 +++ driftnet-0.1.6/Makefile     2004-12-07 23:25:59.900983408 +0000
3 @@ -13,14 +13,14 @@
4  #
5  
6  # Compiler to use.
7 -#CC = gcc
8 +CC = arm-linux-gcc
9  
10  # Basic compiler, linker flags; should not need any changes.
11  CFLAGS += -g -Wall
12  LDFLAGS += -g
13  
14  # You might need these if libpcap is installed somewhere random.
15 -CFLAGS += -I/usr/include/pcap
16 +#CFLAGS += -I/usr/include/pcap
17  #LDFLAGS += -L/path/to/libpcap.so
18  
19  # Required on Linux to get BSDish definitions of the TCP/IP structs.
20 @@ -31,8 +31,8 @@
21  
22  # Optional C compiler and linker flags. Typical driftnet builds have support
23  # for displaying captured images in an X window, and need the following flags:
24 -CFLAGS  += `gtk-config --cflags`
25 -LDLIBS  += -ljpeg -lungif `gtk-config --libs`
26 +CFLAGS  += -I$(STAGING_INCDIR)/glib-2.0 -I$(STAGING_INCDIR)/gtk-2.0 -I$(STAGING_INCDIR)/../lib/gtk-2.0/include -I$(STAGING_INCDIR)/atk-1.0
27 +LDLIBS  += -ljpeg -lungif -lgtk-x11-2.0 -lgdk-x11-2.0 -rdynamic -lgmodule-2.0 -lglib-2.0 -ldl -lXext -lX11 -lm
28  
29  # Alternatively, you can build a version of driftnet which can only be used
30  # in `adjunct' mode as the back end for some other image-processing program. To
31 @@ -81,13 +81,13 @@
32         ( echo '.\" DO NOT EDIT THIS FILE-- edit driftnet.1.in instead' ; sed s/@@@VERSION@@@/$(VERSION)/ ) < driftnet.1.in > driftnet.1
33  
34  endianness: endian
35 -       ./endian > endianness
36 +
37  
38  endian: endian.c
39         $(CC) $(CFLAGS) -o endian endian.c
40  
41  %.o:    %.c Makefile endianness
42 -       $(CC) $(CFLAGS) `cat endianness` -c -o $@ $<
43 +       $(CC) $(CFLAGS) -DDRIFTNET_LITTLE_ENDIAN -c -o $@ $<
44  
45  clean:  nodepend
46         rm -f *~ *.bak *.o core $(BINS) TAGS driftnet.1 endian endianness
47 @@ -103,7 +103,7 @@
48         mv driftnet-$(VERSION).tar.gz ..
49         
50  depend: endianness
51 -       makedepend -- $(CFLAGS) `cat endianness` -- $(SRCS)
52 +       makedepend -- $(CFLAGS) -DDRIFTNET_LITTLE_ENDIAN -- $(SRCS)
53         touch depend
54         rm -f Makefile.bak
55