diff options
author | knu <knu@FreeBSD.org> | 2001-03-20 17:32:55 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-03-20 17:32:55 +0800 |
commit | 2168b0a2ae19ce82be10f6ce53864d7bbd6fffa6 (patch) | |
tree | b83c6f3d0ff6d5991284045d25b585d02bf4096a /graphics/py-ming | |
parent | 613d297fb859b23cbd1d6d04caa2a03818ce0910 (diff) | |
download | freebsd-ports-gnome-2168b0a2ae19ce82be10f6ce53864d7bbd6fffa6.tar.gz freebsd-ports-gnome-2168b0a2ae19ce82be10f6ce53864d7bbd6fffa6.tar.zst freebsd-ports-gnome-2168b0a2ae19ce82be10f6ce53864d7bbd6fffa6.zip |
Update to Ming 0.1.0.
Diffstat (limited to 'graphics/py-ming')
-rw-r--r-- | graphics/py-ming/Makefile | 11 | ||||
-rw-r--r-- | graphics/py-ming/files/patch-Makefile | 26 |
2 files changed, 26 insertions, 11 deletions
diff --git a/graphics/py-ming/Makefile b/graphics/py-ming/Makefile index 3457cb4ba2bb..da5c5d08b46d 100644 --- a/graphics/py-ming/Makefile +++ b/graphics/py-ming/Makefile @@ -6,14 +6,15 @@ # PORTNAME= ming -PORTVERSION= 0.0.9b +PORTVERSION= 0.1.0 CATEGORIES= graphics python -MASTER_SITES= http://www.opaque.net/ming/ +MASTER_SITES= # none PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -EXTRACT_SUFX= .tgz +DISTFILES= # none MAINTAINER= knu@FreeBSD.org +BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/graphics/ming:patch LIB_DEPENDS= ming.2:${PORTSDIR}/graphics/ming USE_PYTHON= yes @@ -25,6 +26,10 @@ MAKE_ARGS= PYTHON_VERSION="${PYTHON_VERSION}" EXAMPLES= shape.py test.py ../examples/python/*.py +do-extract: + ${MKDIR} ${WRKDIR} + ${LN} -s `cd ${PORTSDIR}/graphics/ming && ${MAKE} -V WRKDIR`/* ${WRKDIR}/ + post-extract: ${LN} -sf ../ming.i ${WRKSRC}/ diff --git a/graphics/py-ming/files/patch-Makefile b/graphics/py-ming/files/patch-Makefile index bfb35330acab..c876db7624bd 100644 --- a/graphics/py-ming/files/patch-Makefile +++ b/graphics/py-ming/files/patch-Makefile @@ -1,6 +1,6 @@ ---- Makefile.orig Fri Jan 5 08:05:13 2001 -+++ Makefile Sat Jan 20 05:05:03 2001 -@@ -1,12 +1,12 @@ +--- 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 @@ -9,16 +9,26 @@ +PYINCDIR = ${LOCALBASE}/include/${PYTHON_VERSION} +PYLIBDIR = ${LOCALBASE}/lib/${PYTHON_VERSION} - all: +-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 -- 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 +@@ -24,4 +24,4 @@ + rm -f mingcmodule.so core *~ *.o ming.pyc install: - cp mingcmodule.so ming.py ${PYLIBDIR}/site-packages |