diff --git a/graphics/py-imaging/Makefile b/graphics/py-imaging/Makefile index f22f2833e3e2..56eabf9ab266 100644 --- a/graphics/py-imaging/Makefile +++ b/graphics/py-imaging/Makefile @@ -7,7 +7,7 @@ PORTNAME= imaging PORTVERSION= 1.1.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics python MASTER_SITES= http://effbot.org/downloads/ \ http://www.pythonware.net/storage/ @@ -43,6 +43,11 @@ PLIST_SUB+= TKINTER="" PLIST_SUB+= TKINTER="@comment " .endif +.if defined(WITHOUT_TKINTER) +post-patch: + @${REINPLACE_CMD} -e 's|if _tkinter|if None|g' ${WRKSRC}/setup.py +.endif + post-install: .for file in ImPlatform.h Imaging.h ${INSTALL_DATA} ${WRKSRC}/libImaging/${file} ${PYTHON_INCLUDEDIR}