67dbb8fe08
Pillow is the "friendly" PIL fork. PIL is the Python Imaging Library. The Python Imaging Library (PIL) adds image processing capabilities to your Python environment. This library provides extensive file format support, an efficient internal representation, and powerful image processing capabilities. feedback/ok fgsch@
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2013/01/28 07:55:58 jasper Exp $
|
|
|
|
COMMENT= Python Imaging Library (fork)
|
|
|
|
MODPY_EGG_VERSION= 1.7.8
|
|
DISTNAME= Pillow-${MODPY_EGG_VERSION}
|
|
PKGNAME= py-${DISTNAME}
|
|
CATEGORIES= graphics
|
|
|
|
HOMEPAGE= https://github.com/python-imaging/Pillow
|
|
|
|
# PIL Software License
|
|
# Permission to use, copy, modify and distribute freely.
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=P/Pillow/}
|
|
EXTRACT_SUFX= .zip
|
|
|
|
WANTLIB= freetype jpeg lcms pthread z \
|
|
${MODPY_WANTLIB} ${MODTK_WANTLIB}
|
|
|
|
MODULES= lang/python \
|
|
x11/tk
|
|
|
|
# ${MODPY_TKINTER_DEPENDS} appends ,tkinter to devel/setuptools too.
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
RUN_DEPENDS= lang/python/${MODPY_VERSION},-tkinter
|
|
LIB_DEPENDS= graphics/lcms \
|
|
${MODTK_LIB_DEPENDS}
|
|
|
|
MODPY_SETUPTOOLS= Yes
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
INCL_DIR= ${PREFIX}/include/python${MODPY_VERSION}
|
|
|
|
MODPY_ADJ_FILES= Scripts/*.py
|
|
|
|
post-install:
|
|
for s in ${WRKSRC}/Scripts/*.py; do \
|
|
${INSTALL_SCRIPT} $$s ${PREFIX}/bin/`basename $$s .py`; \
|
|
done
|
|
${INSTALL_DATA_DIR} ${INCL_DIR}
|
|
${INSTALL_DATA} ${WRKSRC}/libImaging/{ImPlatform,Imaging}.h ${INCL_DIR}
|
|
|
|
.include <bsd.port.mk>
|