2011-12-20 06:37:10 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.58 2011/12/20 11:37:10 sthen Exp $
|
2004-05-23 11:58:01 -04:00
|
|
|
|
2008-02-14 03:52:51 -05:00
|
|
|
SHARED_ONLY= Yes
|
2001-05-25 15:50:31 -04:00
|
|
|
|
2008-02-14 03:52:51 -05: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 15:57:10 -05:00
|
|
|
COMMENT-docs= documentation for the Python Imaging Library
|
2001-05-25 15:50:31 -04:00
|
|
|
|
2010-11-15 15:57:10 -05:00
|
|
|
MODPY_EGG_VERSION= 1.1.7
|
|
|
|
DISTNAME= Imaging-${MODPY_EGG_VERSION}
|
2010-08-30 17:28:17 -04:00
|
|
|
PKGNAME-main= py-${DISTNAME}
|
2010-11-15 15:57:10 -05:00
|
|
|
FULLPKGNAME-examples= py-Imaging-examples-${MODPY_EGG_VERSION}
|
2010-09-05 08:59:36 -04:00
|
|
|
EPOCH-examples= 0
|
2010-02-26 14:18:28 -05:00
|
|
|
FULLPKGPATH-examples= graphics/py-Imaging,-examples
|
2010-11-15 15:57:10 -05: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 15:50:31 -04:00
|
|
|
|
2011-12-20 06:37:10 -05:00
|
|
|
REVISION-main= 7
|
|
|
|
REVISION-examples= 5
|
2011-12-20 02:00:18 -05:00
|
|
|
REVISION-bin= 5
|
2011-09-16 06:02:36 -04:00
|
|
|
REVISION-docs= 4
|
2010-11-17 13:37:25 -05:00
|
|
|
|
2008-02-14 03:52:51 -05:00
|
|
|
CATEGORIES= graphics
|
2001-05-25 15:50:31 -04:00
|
|
|
|
2008-02-14 03:52:51 -05:00
|
|
|
HOMEPAGE= http://www.pythonware.com/products/pil/
|
|
|
|
|
2001-05-25 15:50:31 -04: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 15:57:10 -05:00
|
|
|
|
2011-06-12 04:44:44 -04:00
|
|
|
WANTLIB-main= freetype z jpeg>=62 lcms ${MODTK_WANTLIB} \
|
|
|
|
${MODPY_WANTLIB}
|
2008-02-14 03:52:51 -05:00
|
|
|
|
|
|
|
MASTER_SITES= http://effbot.org/media/downloads/
|
|
|
|
|
2010-11-15 15:57:10 -05:00
|
|
|
MODULES= lang/python x11/tk
|
2008-02-14 03:52:51 -05:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${MODPY_TKINTER_DEPENDS}
|
2008-09-01 15:13:05 -04:00
|
|
|
RUN_DEPENDS-bin= ${RUN_DEPENDS} \
|
2010-11-17 03:05:12 -05:00
|
|
|
graphics/py-Imaging
|
2008-02-14 03:52:51 -05:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
2010-11-17 03:05:12 -05:00
|
|
|
LIB_DEPENDS-main= graphics/jpeg \
|
|
|
|
graphics/lcms \
|
2010-11-15 15:57:10 -05:00
|
|
|
${MODTK_LIB_DEPENDS}
|
2001-05-25 15:50:31 -04:00
|
|
|
|
2011-05-04 15:31:51 -04:00
|
|
|
MULTI_PACKAGES= -main -examples -bin -docs
|
2001-06-10 10:25:56 -04:00
|
|
|
|
2010-11-10 17:10:03 -05:00
|
|
|
MODPY_ADJ_FILES= Scripts/pil*.py
|
2006-11-13 11:31:07 -05:00
|
|
|
|
2008-09-01 15:13:05 -04:00
|
|
|
INCDIR=${PREFIX}/include/python${MODPY_VERSION}
|
2004-05-23 11:58:01 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_SCRIPT_DIR} ${PREFIX}/share/examples/py-Imaging
|
2005-11-20 08:59:50 -05: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 11:58:01 -04:00
|
|
|
done
|
2008-09-01 15:13:05 -04:00
|
|
|
${INSTALL_DATA_DIR} ${INCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libImaging/ImPlatform.h ${INCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libImaging/Imaging.h ${INCDIR}
|
2010-11-15 15:57:10 -05:00
|
|
|
${INSTALL_SCRIPT_DIR} ${PREFIX}/share/doc/py-Imaging
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/Docs/* ${PREFIX}/share/doc/py-Imaging
|
2001-05-25 15:50:31 -04:00
|
|
|
|
2004-05-23 11:58:01 -04:00
|
|
|
do-regress: fake
|
2010-11-15 15:57:10 -05:00
|
|
|
@cd ${WRKSRC} && ${SETENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \
|
|
|
|
${REGRESS_ENV} ${MODPY_BIN} ./selftest.py
|
2002-03-22 23:46:19 -05:00
|
|
|
|
2004-05-23 11:58:01 -04:00
|
|
|
.include <bsd.port.mk>
|