aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-ming
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-03-20 09:32:55 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-03-20 09:32:55 +0000
commit740aa284911604e7b0c800de7bed9bff5d4a17fa (patch)
treec7cfcddff9aa6702d5b176290f54f9f790e3966f /graphics/py-ming
parent2024870f5e96ebbb1b51498ab3c9b383bcfa5d2a (diff)
downloadports-740aa284911604e7b0c800de7bed9bff5d4a17fa.tar.gz
ports-740aa284911604e7b0c800de7bed9bff5d4a17fa.zip
Notes
Diffstat (limited to 'graphics/py-ming')
-rw-r--r--graphics/py-ming/Makefile11
-rw-r--r--graphics/py-ming/files/patch-Makefile26
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