2008-02-14 03:52:51 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.34 2008/02/14 08:52:51 winiger 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
|
2001-05-25 15:50:31 -04:00
|
|
|
|
2008-02-14 03:52:51 -05:00
|
|
|
VERSION= 1.1.5
|
|
|
|
DISTNAME= Imaging-${VERSION}
|
|
|
|
PKGNAME-main= py-${DISTNAME}p2
|
|
|
|
FULLPKGNAME-examples= py-Imaging-examples-${VERSION}
|
|
|
|
FULLPKGNAME-bin= py-Imaging-bin-${VERSION}
|
2001-05-25 15:50:31 -04: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/
|
|
|
|
|
|
|
|
MAINTAINER= Aleksander Piotrowski <alek@openbsd.org>
|
2004-05-23 11:58:01 -04:00
|
|
|
|
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
|
2008-02-14 03:52:51 -05:00
|
|
|
WANTLIB= freetype tcl84 z
|
|
|
|
|
|
|
|
MASTER_SITES= http://effbot.org/media/downloads/
|
|
|
|
|
|
|
|
MODULES= lang/python
|
|
|
|
|
|
|
|
RUN_DEPENDS= ${MODPY_TKINTER_DEPENDS}
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
LIB_DEPENDS= jpeg.>=62::graphics/jpeg \
|
|
|
|
tk84:tk-8.4.*:x11/tk/8.4
|
2001-05-25 15:50:31 -04:00
|
|
|
|
2008-02-14 03:52:51 -05:00
|
|
|
FLAVORS= python2.4 python2.5
|
|
|
|
FLAVOR?= python2.5
|
2001-05-25 15:50:31 -04:00
|
|
|
|
2008-02-14 03:52:51 -05:00
|
|
|
.if ${FLAVOR:L:Mpython2.4} && !${FLAVOR:L:Npython2.4}
|
|
|
|
MULTI_PACKAGES= -main
|
|
|
|
.elif ${FLAVOR:L:Mpython2.5} && !${FLAVOR:L:Npython2.5}
|
|
|
|
MULTI_PACKAGES= -main -examples -bin
|
|
|
|
.else
|
|
|
|
ERRORS+= "Fatal: You must select one version: ${FLAVORS}"
|
|
|
|
.endif
|
2001-06-10 10:25:56 -04:00
|
|
|
|
2008-02-14 03:52:51 -05:00
|
|
|
MODPY_VERSION= ${FLAVOR:S/python//}
|
2001-05-25 15:50:31 -04:00
|
|
|
|
2008-02-14 03:52:51 -05:00
|
|
|
USE_X11= Yes
|
2006-11-13 11:31:07 -05:00
|
|
|
|
2001-05-25 15:50:31 -04:00
|
|
|
do-configure:
|
2005-11-20 08:59:50 -05:00
|
|
|
@perl -pi -e "s|!LOCALBASE!|${LOCALBASE}|g; s|!X11BASE!|${X11BASE}|g; s|!MODPY_VERSION!|${MODPY_VERSION}|g" \
|
|
|
|
${WRKSRC}/setup.py ${WRKSRC}/Scripts/pil*.py
|
2001-05-25 15:50:31 -04:00
|
|
|
|
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-02-14 03:52:51 -05:00
|
|
|
find ${WRKINST} -name \*.egg-info -exec rm {} \;
|
2001-05-25 15:50:31 -04:00
|
|
|
|
2004-05-23 11:58:01 -04:00
|
|
|
do-regress: fake
|
|
|
|
@cd ${WRKSRC} && \
|
|
|
|
${MAKE_ENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG}/PIL \
|
|
|
|
${MODPY_BIN} ./selftest.py
|
2002-03-22 23:46:19 -05:00
|
|
|
|
2004-05-23 11:58:01 -04:00
|
|
|
.include <bsd.port.mk>
|