sthen 72f09a82e1 reimport graphics/py-Pillow as py2-Pillow, splitting off Python 2 support
so that the main port can be updated to a Python 3-only version. changes to
dependent ports to follow.

feedback/ok kmos@
2020-11-24 16:42:06 +00:00

48 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2020/11/24 16:42:06 sthen Exp $
# XXX version 7.0.0 and up do not support python2 anymore;
# python3 support lives in graphics/py-Pillow
PORTROACH= limit:^6\.
COMMENT= Python Imaging Library (version for Python 2)
MODPY_EGG_VERSION= 6.2.2
DISTNAME= Pillow-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
CATEGORIES= graphics
REVISION= 1
HOMEPAGE= https://python-pillow.org/
# PIL Software License
# Permission to use, copy, modify and distribute freely.
PERMIT_PACKAGE= Yes
MODPY_PI = Yes
WANTLIB= freetype openjp2 jpeg lcms2 pthread tiff webp z \
webpdemux webpmux \
${MODPY_WANTLIB}
MODULES= lang/python
MODPY_PYTEST= Yes
MODPY_SETUPTOOLS= Yes
DEBUG_PACKAGES= ${BUILD_PACKAGES}
LIB_DEPENDS= graphics/lcms2 \
graphics/openjp2>=2.3.0p0 \
graphics/libwebp
TEST_DEPENDS= ${FULLPKGNAME}:${BUILD_PKGPATH}
SUBST_VARS+= INCL_DIR MODPY_FLAVOR
INCL_DIR= ${MODPY_INCDIR:S/${LOCALBASE}\///}
pre-test:
cd ${WRKSRC}; ${MODPY_BIN} ./selftest.py
post-install:
${INSTALL_DATA_DIR} ${WRKINST}${MODPY_INCDIR}
${INSTALL_DATA} ${WRKSRC}/src/libImaging/{ImPlatform,Imaging}.h ${WRKINST}${MODPY_INCDIR}
.include <bsd.port.mk>