2013-03-02 23:32:48 +01:00
|
|
|
# Created by: Thomas Gellekum <tg@FreeBSD.org>
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1998-11-05 09:02:39 +01:00
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= imaging
|
2010-08-16 18:18:23 +02:00
|
|
|
PORTVERSION= 1.1.7
|
2013-03-02 23:32:48 +01:00
|
|
|
PORTREVISION= 2
|
1998-11-05 09:02:39 +01:00
|
|
|
CATEGORIES= graphics python
|
2008-01-12 05:38:45 +01:00
|
|
|
MASTER_SITES= http://effbot.org/media/downloads/ \
|
2007-03-13 10:00:12 +01:00
|
|
|
http://www.pythonware.net/storage/
|
2000-10-27 13:18:16 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2000-04-14 12:48:02 +02:00
|
|
|
DISTNAME= Imaging-${PORTVERSION}
|
1998-11-05 09:02:39 +01:00
|
|
|
|
2003-08-12 09:00:31 +02:00
|
|
|
MAINTAINER= mainland@apeiron.net
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= The Python Imaging Library
|
1998-11-05 09:02:39 +01:00
|
|
|
|
2014-02-18 20:14:52 +01:00
|
|
|
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
|
|
|
liblcms.so:${PORTSDIR}/graphics/lcms \
|
|
|
|
libfreetype.so:${PORTSDIR}/print/freetype2
|
1998-11-05 09:02:39 +01:00
|
|
|
|
2007-10-19 05:34:56 +02:00
|
|
|
UNIQUENAME= py-${PORTNAME}
|
2006-04-30 22:34:27 +02:00
|
|
|
|
|
|
|
DIST_SUBDIR= python
|
|
|
|
USE_PYTHON= yes
|
2007-03-13 10:00:12 +01:00
|
|
|
USE_PYDISTUTILS= yes
|
2014-02-18 20:14:52 +01:00
|
|
|
PYDISTUTILS_AUTOPLIST= yes
|
1998-11-05 09:02:39 +01:00
|
|
|
|
2014-02-18 20:14:52 +01:00
|
|
|
PLIST_FILES= %%PYTHON_INCLUDEDIR%%/ImPlatform.h %%PYTHON_INCLUDEDIR%%/Imaging.h
|
2006-04-30 22:34:27 +02:00
|
|
|
PORTDOCS= *
|
2014-02-18 20:14:52 +01:00
|
|
|
PORTEXAMPLES= *
|
2006-04-30 22:34:27 +02:00
|
|
|
|
2007-10-19 05:34:56 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
|
1998-11-05 09:02:39 +01:00
|
|
|
|
2014-02-18 20:14:52 +01:00
|
|
|
OPTIONS_DEFINE= DOCS TKINTER
|
2013-05-23 04:35:26 +02:00
|
|
|
TKINTER_DESC= tkinter for X support
|
2006-04-30 22:34:27 +02:00
|
|
|
|
2013-05-23 04:35:26 +02:00
|
|
|
OPTIONS_DEFAULT= TKINTER
|
1998-11-05 09:02:39 +01:00
|
|
|
|
2014-02-18 20:14:52 +01:00
|
|
|
TKINTER_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
|
|
TKINTER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
|
2013-05-23 04:35:26 +02:00
|
|
|
|
2014-02-18 20:14:52 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2006-04-30 22:34:27 +02:00
|
|
|
|
2013-05-23 04:35:26 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MTKINTER}
|
2007-06-05 15:43:26 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|if _tkinter|if None|g' ${WRKSRC}/setup.py
|
|
|
|
.endif
|
|
|
|
|
2005-06-16 23:50:23 +02:00
|
|
|
post-install:
|
|
|
|
.for file in ImPlatform.h Imaging.h
|
2014-02-18 20:14:52 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${PYTHON_INCLUDEDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libImaging/${file} ${STAGEDIR}${PYTHON_INCLUDEDIR}
|
1998-11-16 09:52:11 +01:00
|
|
|
.endfor
|
2014-02-18 20:14:52 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Scripts/* ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Docs/* ${STAGEDIR}${DOCSDIR}
|
2005-06-16 23:50:23 +02:00
|
|
|
|
2013-05-23 04:35:26 +02:00
|
|
|
.include <bsd.port.mk>
|