updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / libarea-svn / Makefile.patch
blob35d967a9fb6be033c3016e983c367d8d1c70a4f2
1 --- Makefile 2011-09-23 11:46:06.383671859 -0400
2 +++ Makefile.new 2011-09-23 11:46:52.210338124 -0400
3 @@ -5,9 +5,9 @@
4 CXX = g++
5 CC = gcc
6 LD = g++
7 -LDFLAGS = -shared -rdynamic `python-config --ldflags` -lboost_python
8 -LIBS = -lstdc++ `python-config --libs`
9 -CFLAGS = -Wall -I/usr/include `python-config --includes` -I./ -I./kbool/include -g -fPIC
10 +LDFLAGS = -shared -rdynamic `python2-config --ldflags` -lboost_python
11 +LIBS = -lstdc++ `python2-config --libs`
12 +CFLAGS = -Wall -I/usr/include `python2-config --includes` -I./ -I./kbool/include -g -fPIC
14 LIBNAME = area
15 LIBOBJS = Arc.o Area.o AreaBoolean.o AreaDxf.o AreaOrderer.o AreaPocket.o booleng.o Circle.o Construction.o Curve.o dxf.o Finite.o graph.o graphlst.o instonly.o kurve.o line.o link.o lpoint.o Matrix.o node.o offset.o PythonStuff.o record.o scanbeam.o
16 @@ -28,11 +28,11 @@
17 install: $(LIBOUT)
18 strip $^
19 chmod 644 $^
20 - mkdir -p $(DESTDIR)`python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(plat_specific=1, standard_lib=0, prefix='$(PREFIX)')"`
21 - install $^ $(DESTDIR)`python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(plat_specific=1, standard_lib=0, prefix='$(PREFIX)')"`
22 + mkdir -p $(DESTDIR)`python2 -c "from distutils.sysconfig import get_python_lib; print get_python_lib(plat_specific=1, standard_lib=0, prefix='$(PREFIX)')"`
23 + install $^ $(DESTDIR)`python2 -c "from distutils.sysconfig import get_python_lib; print get_python_lib(plat_specific=1, standard_lib=0, prefix='$(PREFIX)')"`
25 test:
26 - python test.py
27 + python2 test.py
29 Arc.o: Arc.cpp
30 $(CC) -c $? ${CFLAGS} -o $@