1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/graphics/py-ming/files/patch-Makefile
Akinori MUSHA b932b246ac Respect CC and CFLAGS.
Define and use SWIG instead of hardcoding swig's executable name in a
patch.

Remove the "chmod 755 xxx.so" line from the distributed Makefile.
2000-10-17 09:04:40 +00:00

19 lines
733 B
Plaintext

--- Makefile.orig Fri Oct 13 15:26:29 2000
+++ Makefile Tue Oct 17 17:43:54 2000
@@ -1,11 +1,10 @@
all:
- swig -python ming.i
- gcc -I .. -I /usr/include/python1.5/ -fpic -c ming_wrap.c
- gcc -L .. -shared -o mingcmodule.so ming_wrap.o -lming
+ ${SWIG} -python ming.i
+ ${CC} ${CFLAGS} -I${LOCALBASE}/include/ming -I${LOCALBASE}/include/${PYTHON_VERSION} -fpic -c ming_wrap.c
+ ${CC} -shared -o mingcmodule.so ming_wrap.o -L${LOCALBASE}/lib -lming
clean:
rm -f mingcmodule.so core *~ *.o ming_wrap*
install:
- cp mingcmodule.so ming.py /usr/lib/python1.5/site-packages
- chmod 755 /usr/lib/python1.5/site-packages/mingcmodule.so
+ ${BSD_INSTALL_DATA} mingcmodule.so ming.py ${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages