mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
b932b246ac
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.
19 lines
733 B
Plaintext
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
|