cecaf5e154
- New LIB_DEPENDS syntax - OPTIONS helpers - Use PYDISTUTILS_AUTOPLIST
59 lines
1.6 KiB
Makefile
59 lines
1.6 KiB
Makefile
# Created by: Thomas Gellekum <tg@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= imaging
|
|
PORTVERSION= 1.1.7
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics python
|
|
MASTER_SITES= http://effbot.org/media/downloads/ \
|
|
http://www.pythonware.net/storage/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= Imaging-${PORTVERSION}
|
|
|
|
MAINTAINER= mainland@apeiron.net
|
|
COMMENT= The Python Imaging Library
|
|
|
|
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
|
liblcms.so:${PORTSDIR}/graphics/lcms \
|
|
libfreetype.so:${PORTSDIR}/print/freetype2
|
|
|
|
UNIQUENAME= py-${PORTNAME}
|
|
|
|
DIST_SUBDIR= python
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
PYDISTUTILS_AUTOPLIST= yes
|
|
|
|
PLIST_FILES= %%PYTHON_INCLUDEDIR%%/ImPlatform.h %%PYTHON_INCLUDEDIR%%/Imaging.h
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
OPTIONS_DEFINE= DOCS TKINTER
|
|
TKINTER_DESC= tkinter for X support
|
|
|
|
OPTIONS_DEFAULT= TKINTER
|
|
|
|
TKINTER_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
TKINTER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ! ${PORT_OPTIONS:MTKINTER}
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|if _tkinter|if None|g' ${WRKSRC}/setup.py
|
|
.endif
|
|
|
|
post-install:
|
|
.for file in ImPlatform.h Imaging.h
|
|
@${MKDIR} ${STAGEDIR}${PYTHON_INCLUDEDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/libImaging/${file} ${STAGEDIR}${PYTHON_INCLUDEDIR}
|
|
.endfor
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/Scripts/* ${STAGEDIR}${EXAMPLESDIR}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/Docs/* ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|