1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/graphics/py-imaging/Makefile
Pawel Pekala 99d28db3e0 Add permanent dependency on graphics/lcms to fix missing dep and plist when
said package is installed

PR:		ports/161517
Submitted by:	Nali Toja <nalitoja@gmail.com>
Approved by:	maintainer
2011-10-18 17:48:11 +00:00

66 lines
1.7 KiB
Makefile

# New ports collection makefile for: PIL
# Date created: 02 November 1998
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= imaging
PORTVERSION= 1.1.7
PORTREVISION= 1
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= jpeg.11:${PORTSDIR}/graphics/jpeg \
lcms.1:${PORTSDIR}/graphics/lcms \
freetype.9:${PORTSDIR}/print/freetype2
UNIQUENAME= py-${PORTNAME}
DIST_SUBDIR= python
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= PIL
PYDISTUTILS_EGGINFODIR= ${PYTHON_SITELIBDIR}/PIL
PORTDOCS= *
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
OPTIONS= TKINTER "Build with tkinter for X support" on
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_TKINTER)
BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
PLIST_SUB+= TKINTER=""
.else
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}
.endfor
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/Scripts/* ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Docs/* ${DOCSDIR}
.endif
.include <bsd.port.post.mk>