X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=fann-python.patch;h=3d3f55f6836598f735b1c6de1c9bd5eb9c00b9a1;hb=1273853981fb4053414efec0acf7b1dd5649102a;hp=b4c7785610ef2b70fb071273389367fe750dfa08;hpb=eba6fd4c4ef36b80de3158d453f78b1042e25b41;p=packages%2Ffann.git diff --git a/fann-python.patch b/fann-python.patch index b4c7785..3d3f55f 100644 --- a/fann-python.patch +++ b/fann-python.patch @@ -1,11 +1,28 @@ ---- fann-1.1.0/python/Makefile.old 2004-01-28 09:42:55.000000000 +0100 -+++ fann-1.1.0/python/Makefile 2004-06-05 15:56:46.242972328 +0200 -@@ -6,7 +6,7 @@ +diff -urN fann-1.2.0/python/makefile.gnu fann-1.2.0.new/python/makefile.gnu +--- fann-1.2.0/python/makefile.gnu 2004-10-09 13:56:57.000000000 +0200 ++++ fann-1.2.0.new/python/makefile.gnu 2005-11-13 20:10:45.000000000 +0100 +@@ -1,18 +1,18 @@ + # This makefile was written to compile a distribution of pyfann for + # GNU platforms (cygwin included.) + +-TARGETS = _libfann.dll ++TARGETS = _libfann.so + +-PYTHON=python2.3 +-LIBS=-L. -L/usr/local/lib -L/usr/bin -l$(PYTHON) ../src/fann*.o ++PYTHON=python2.4 ++LIBS=-L. -L/usr/lib -L/usr/bin -l$(PYTHON) ../src/fann*.o + all: $(TARGETS) - _%.so: %_wrap.o -- gcc -shared $< -lfann -o $@ -+ gcc -shared $< -L../src/.libs/ -lfann -o $@ +-_%.dll: %_wrap.o fann_helper.o +- gcc $(LIBS) -shared -dll $^ -o $@ ++_%.so: %_wrap.o fann_helper.o ++ gcc $(LIBS) -shared $^ -o $@ %.o: %.c - gcc -c -fpic $< -I/usr/include/python2.3/ +- gcc -c $< -I/usr/include/$(PYTHON)/ ++ gcc -c $< -I/usr/include/$(PYTHON)/ -I../src/include/ + + %_wrap.c: %.i + swig -python $<