aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-imaging/Makefile
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>2000-09-12 11:54:11 +0000
committerThomas Gellekum <tg@FreeBSD.org>2000-09-12 11:54:11 +0000
commit78932f5d3c1c8be72dd3780189d95ec532481f4e (patch)
tree39fc2e0d146fedfdef1c546acc798fca0f9f7f90 /graphics/py-imaging/Makefile
parentae3d616ae81c56ae8a16e48c0822fb5dc90da6b2 (diff)
downloadports-78932f5d3c1c8be72dd3780189d95ec532481f4e.tar.gz
ports-78932f5d3c1c8be72dd3780189d95ec532481f4e.zip
Notes
Diffstat (limited to 'graphics/py-imaging/Makefile')
-rw-r--r--graphics/py-imaging/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/graphics/py-imaging/Makefile b/graphics/py-imaging/Makefile
index af59f245e0c2..76d8fc8e18c7 100644
--- a/graphics/py-imaging/Makefile
+++ b/graphics/py-imaging/Makefile
@@ -16,27 +16,29 @@ DISTNAME= Imaging-${PORTVERSION}
MAINTAINER= tg@FreeBSD.org
-BUILD_DEPENDS= ${PREFIX}/lib/python1.5/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
+BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
-RUN_DEPENDS= ${PREFIX}/lib/python1.5/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
DIST_SUBDIR= python
+USE_PYTHON= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/libImaging
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-jpeg=${PREFIX}/lib
+CONFIGURE_ENV= PYTHON=${PYTHON_CMD}
MAKE_FLAGS= OPT="${CFLAGS}"
-PYTHONSCRIPTDIR= ${PREFIX}/lib/python1.5
-PILDIR= ${PYTHONSCRIPTDIR}/site-packages/PIL
+PILDIR= ${PYTHON_SITELIBDIR}/PIL
PILDOCDIR= ${PREFIX}/share/doc/PIL
PILEXDIR= ${PREFIX}/share/examples/PIL
-PILINCDIR= ${PREFIX}/include/python1.5
+PILINCDIR= ${PREFIX}/include/${PYTHON_VERSION}
post-extract:
@${CP} ${FILESDIR}/Setup ${WRKSRC}/..
+ @${CP} ${PYTHON_LIBDIR}/config/Makefile.pre.in ${WRKSRC}/..
post-configure:
- @(cd ${WRKSRC}/..; ${SETENV} ${MAKE_ENV} ${MAKE} -f Makefile.pre.in boot)
+ @(cd ${WRKSRC}/..; ${SETENV} ${CONFIGURE_ENV} ${MAKE} -f Makefile.pre.in boot)
post-build:
@(cd ${WRKSRC}/..; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} sharedmods)
@@ -46,8 +48,8 @@ do-install:
@${MKDIR} ${PILDIR}
${INSTALL_DATA} ${WRKSRC}/../PIL/* ${PILDIR}
${INSTALL_DATA} ${WRKSRC}/../PIL.pth ${PILDIR}/..
- @${PREFIX}/bin/python ${PYTHONSCRIPTDIR}/compileall.py ${PILDIR}
- @${PREFIX}/bin/python -O ${PYTHONSCRIPTDIR}/compileall.py ${PILDIR}
+ @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PILDIR}
+ @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${PILDIR}
@${MKDIR} ${PILDOCDIR}
${INSTALL_DATA} ${WRKSRC}/../README ${PILDOCDIR}
${INSTALL_DATA} ${WRKSRC}/../FORMATS ${PILDOCDIR}