freebsd-ports/graphics/py-ming/files/patch-Makefile
Akinori MUSHA 66acb9cd06 Update to Ming 0.0.9b. Now it creates Flash 4 movies.
Ports of the Perl5 module and the Ming utilities will follow soon if I
can take the time.
2001-01-21 05:57:50 +00:00

25 lines
859 B
Text

--- Makefile.orig Fri Jan 5 08:05:13 2001
+++ Makefile Sat Jan 20 05:05:03 2001
@@ -1,12 +1,12 @@
#PYINCDIR = /usr/local/include/python2.0
#PYLIBDIR = /usr/local/lib/python2.0
-PYINCDIR = /usr/include/python1.5
-PYLIBDIR = /usr/lib/python1.5
+PYINCDIR = ${LOCALBASE}/include/${PYTHON_VERSION}
+PYLIBDIR = ${LOCALBASE}/lib/${PYTHON_VERSION}
all:
- gcc -g -Wall -I .. -I ${PYINCDIR} -fpic -c ming_wrap.c
- gcc -g -Wall -L .. -shared -o mingcmodule.so ming_wrap.o -lming
+ ${CC} ${CFLAGS} -g -Wall -I .. -I ${PYINCDIR} -fpic -c ming_wrap.c
+ ${CC} -g -Wall -L .. -shared -o mingcmodule.so ming_wrap.o -L${LOCALBASE}/lib -lming
swig:
swig -I.. -python ming.i
@@ -15,4 +15,4 @@
rm -f mingcmodule.so core *~ *.o
install:
- cp mingcmodule.so ming.py ${PYLIBDIR}/site-packages
+ ${BSD_INSTALL_DATA} mingcmodule.so ming.py ${PYLIBDIR}/site-packages