2011-09-23 19:35:57 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.55 2011/09/23 19:35:57 espie Exp $
|
2004-05-23 15:58:01 +00:00
|
|
|
|
2008-02-14 08:52:51 +00:00
|
|
|
SHARED_ONLY= Yes
|
2001-05-25 19:50:31 +00:00
|
|
|
|
2008-02-14 08:52:51 +00:00
|
|
|
COMMENT-main= Python imaging library
|
|
|
|
COMMENT-examples= example programs for the Python Imaging Library
|
|
|
|
COMMENT-bin= binaries for the Python Imaging Library
|
2010-11-15 20:57:10 +00:00
|
|
|
COMMENT-docs= documentation for the Python Imaging Library
|
2001-05-25 19:50:31 +00:00
|
|
|
|
2010-11-15 20:57:10 +00:00
|
|
|
MODPY_EGG_VERSION= 1.1.7
|
|
|
|
DISTNAME= Imaging-${MODPY_EGG_VERSION}
|
2010-08-30 21:28:17 +00:00
|
|
|
PKGNAME-main= py-${DISTNAME}
|
2010-11-15 20:57:10 +00:00
|
|
|
FULLPKGNAME-examples= py-Imaging-examples-${MODPY_EGG_VERSION}
|
2010-09-05 12:59:36 +00:00
|
|
|
EPOCH-examples= 0
|
2010-02-26 19:18:28 +00:00
|
|
|
FULLPKGPATH-examples= graphics/py-Imaging,-examples
|
2010-11-15 20:57:10 +00:00
|
|
|
PKGNAME-bin= py-Imaging-bin-${MODPY_EGG_VERSION}
|
|
|
|
FULLPKGNAME-docs= py-Imaging-docs-${MODPY_EGG_VERSION}
|
|
|
|
FULLPKGPATH-docs= graphics/py-Imaging,-docs
|
2001-05-25 19:50:31 +00:00
|
|
|
|
2011-09-16 10:02:36 +00:00
|
|
|
REVISION-main= 5
|
|
|
|
REVISION-examples= 4
|
|
|
|
REVISION-bin= 4
|
|
|
|
REVISION-docs= 4
|
2010-11-17 18:37:25 +00:00
|
|
|
|
2008-02-14 08:52:51 +00:00
|
|
|
CATEGORIES= graphics
|
2001-05-25 19:50:31 +00:00
|
|
|
|
2008-02-14 08:52:51 +00:00
|
|
|
HOMEPAGE= http://www.pythonware.com/products/pil/
|
|
|
|
|
2001-05-25 19:50:31 +00:00
|
|
|
# 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
|
2010-11-15 20:57:10 +00:00
|
|
|
|
2011-06-12 08:44:44 +00:00
|
|
|
WANTLIB-main= freetype z jpeg>=62 lcms ${MODTK_WANTLIB} \
|
|
|
|
${MODPY_WANTLIB}
|
2008-02-14 08:52:51 +00:00
|
|
|
|
|
|
|
MASTER_SITES= http://effbot.org/media/downloads/
|
|
|
|
|
2010-11-15 20:57:10 +00:00
|
|
|
MODULES= lang/python x11/tk
|
2008-02-14 08:52:51 +00:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${MODPY_TKINTER_DEPENDS}
|
2008-09-01 19:13:05 +00:00
|
|
|
RUN_DEPENDS-bin= ${RUN_DEPENDS} \
|
2010-11-17 08:05:12 +00:00
|
|
|
graphics/py-Imaging
|
2008-02-14 08:52:51 +00:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
2010-11-17 08:05:12 +00:00
|
|
|
LIB_DEPENDS-main= graphics/jpeg \
|
|
|
|
graphics/lcms \
|
2010-11-15 20:57:10 +00:00
|
|
|
${MODTK_LIB_DEPENDS}
|
2001-05-25 19:50:31 +00:00
|
|
|
|
2011-06-10 05:40:56 +00:00
|
|
|
FLAVORS= python2.4 python2.7
|
2011-09-23 19:35:57 +00:00
|
|
|
.if !defined(FLAVOR) || empty(FLAVOR)
|
|
|
|
FLAVOR= python2.7
|
|
|
|
.endif
|
2001-05-25 19:50:31 +00:00
|
|
|
|
2008-02-14 08:52:51 +00:00
|
|
|
.if ${FLAVOR:L:Mpython2.4} && !${FLAVOR:L:Npython2.4}
|
|
|
|
MULTI_PACKAGES= -main
|
2011-05-04 19:31:51 +00:00
|
|
|
.elif ${FLAVOR:L:Mpython2.7} && !${FLAVOR:L:Npython2.7}
|
|
|
|
MULTI_PACKAGES= -main -examples -bin -docs
|
2008-02-14 08:52:51 +00:00
|
|
|
.else
|
|
|
|
ERRORS+= "Fatal: You must select one version: ${FLAVORS}"
|
|
|
|
.endif
|
2001-06-10 14:25:56 +00:00
|
|
|
|
2008-02-14 08:52:51 +00:00
|
|
|
MODPY_VERSION= ${FLAVOR:S/python//}
|
2010-11-10 22:10:03 +00:00
|
|
|
MODPY_ADJ_FILES= Scripts/pil*.py
|
2006-11-13 16:31:07 +00:00
|
|
|
|
2008-09-01 19:13:05 +00:00
|
|
|
INCDIR=${PREFIX}/include/python${MODPY_VERSION}
|
2004-05-23 15:58:01 +00:00
|
|
|
post-install:
|
|
|
|
${INSTALL_SCRIPT_DIR} ${PREFIX}/share/examples/py-Imaging
|
2005-11-20 13:59:50 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/Scripts/*.py \
|
|
|
|
${PREFIX}/share/examples/py-Imaging
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Scripts/README \
|
|
|
|
${PREFIX}/share/examples/py-Imaging
|
|
|
|
for file in ${WRKSRC}/Scripts/pil*.py; do \
|
|
|
|
${INSTALL_SCRIPT} $$file ${PREFIX}/bin/`basename $$file .py`; \
|
2004-05-23 15:58:01 +00:00
|
|
|
done
|
2008-09-01 19:13:05 +00:00
|
|
|
${INSTALL_DATA_DIR} ${INCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libImaging/ImPlatform.h ${INCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libImaging/Imaging.h ${INCDIR}
|
2010-11-15 20:57:10 +00:00
|
|
|
${INSTALL_SCRIPT_DIR} ${PREFIX}/share/doc/py-Imaging
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/Docs/* ${PREFIX}/share/doc/py-Imaging
|
2001-05-25 19:50:31 +00:00
|
|
|
|
2004-05-23 15:58:01 +00:00
|
|
|
do-regress: fake
|
2010-11-15 20:57:10 +00:00
|
|
|
@cd ${WRKSRC} && ${SETENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \
|
|
|
|
${REGRESS_ENV} ${MODPY_BIN} ./selftest.py
|
2002-03-23 04:46:19 +00:00
|
|
|
|
2004-05-23 15:58:01 +00:00
|
|
|
.include <bsd.port.mk>
|