mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
--- Makefile.orig Mon Mar 19 10:26:33 2001
|
|
+++ Makefile Tue Mar 20 18:28:05 2001
|
|
@@ -1,13 +1,13 @@
|
|
#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:
|
|
+all: mingcmodule.so
|
|
|
|
mingcmodule.so: ming_wrap.o ../libming.a
|
|
- gcc -g -Wall -shared -o mingcmodule.so ming_wrap.o ../libming.a
|
|
+ ${CC} -g -Wall -L .. -shared -o mingcmodule.so ming_wrap.o -L${LOCALBASE}/lib -lming
|
|
|
|
mingc.pyd: ming_wrap.o
|
|
dllwrap --dllname mingc.pyd --driver-name gcc --def mingc.def \
|
|
@@ -15,7 +15,7 @@
|
|
--target=i386-mingw32 -Llib/ -lpython15
|
|
|
|
ming_wrap.o: ming_wrap.c
|
|
- gcc -g -Wall -I .. -I ${PYINCDIR} -fpic -c ming_wrap.c
|
|
+ ${CC} ${CFLAGS} -g -Wall -I .. -I ${PYINCDIR} -fpic -c ming_wrap.c
|
|
|
|
swig:
|
|
swig -I.. -python ming.i
|
|
@@ -24,4 +24,4 @@
|
|
rm -f mingcmodule.so core *~ *.o ming.pyc
|
|
|
|
install:
|
|
- cp mingcmodule.so ming.py ${PYLIBDIR}/site-packages
|
|
+ ${BSD_INSTALL_DATA} mingcmodule.so ming.py ${PYLIBDIR}/site-packages
|