mlpcap (0.9-15) 02_ocamlfind_for_example

Summary

 tests/Makefile.in |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

    
download this patch

Patch contents

#! /bin/sh -e
## 02_ocamlfind_for_example.dpatch by Sylvain Le Gall <gildor@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

if [ $# -lt 1 ]; then
    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
    exit 1
fi

[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"

case "$1" in
    -patch) patch -p1 ${patch_opts} < $0;;
    -unpatch) patch -R -p1 ${patch_opts} < $0;;
    *)
        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
        exit 1;;
esac

exit 0

@DPATCH@
diff -urNad mlpcap-0.9~/tests/Makefile.in mlpcap-0.9/tests/Makefile.in
--- mlpcap-0.9~/tests/Makefile.in	2006-11-01 22:41:54.000000000 +0100
+++ mlpcap-0.9/tests/Makefile.in	2006-11-01 22:43:35.000000000 +0100
@@ -1,4 +1,3 @@
-OCAMLC=ocamlc
 CAMLP4O=camlp4o
 
 OBJECTS = misc.cmo pcap_next.cmo pcap_loop.cmo \
@@ -12,7 +11,7 @@
 all: $(TARGETS)
 
 $(TARGETS): $(OBJECTS)
-	$(OCAMLC) -g -o $@ $@.cmo -I .. pcap.cma 
+	ocamlfind ocamlc -package pcap -linkpkg -o $@ $@.cmo
 
 clean:
 	rm -f *.cmo *.cmi $(TARGETS)
@@ -20,5 +19,5 @@
 .SUFFIXES: .ml .cmo .cmi
 
 .ml.cmo: 
-	$(OCAMLC) -pp '$(CAMLP4O) pa_macro.cmo @cp4flag@' -I .. -c $<
+	ocamlfind ocamlc -package pcap -pp '$(CAMLP4O) pa_macro.cmo @cp4flag@' -c $<