openbsd-ports/graphics/py-Imaging/Makefile

54 lines
1.4 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.33 2007/10/08 08:22:41 steven Exp $
SHARED_ONLY= Yes
COMMENT= Python imaging library
DISTNAME= Imaging-1.1.5
PKGNAME= py-${DISTNAME}p1
CATEGORIES= graphics
HOMEPAGE= http://www.pythonware.com/products/pil/
2004-11-04 17:14:11 -05:00
MAINTAINER= Aleksander Piotrowski <alek@openbsd.org>
# 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
WANTLIB= freetype tcl84 z
2007-10-04 03:08:23 -04:00
MASTER_SITES= http://effbot.org/media/downloads/
MODULES= lang/python
2001-06-10 10:25:56 -04:00
RUN_DEPENDS= ${MODPY_TKINTER_DEPENDS}
BUILD_DEPENDS= ${RUN_DEPENDS}
2006-08-03 08:53:18 -04:00
LIB_DEPENDS= jpeg.>=62::graphics/jpeg \
tk84:tk-8.4.*:x11/tk/8.4
2006-11-13 11:31:07 -05:00
USE_X11= Yes
do-configure:
@perl -pi -e "s|!LOCALBASE!|${LOCALBASE}|g; s|!X11BASE!|${X11BASE}|g; s|!MODPY_VERSION!|${MODPY_VERSION}|g" \
${WRKSRC}/setup.py ${WRKSRC}/Scripts/pil*.py
post-install:
${INSTALL_SCRIPT_DIR} ${PREFIX}/share/examples/py-Imaging
${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`; \
done
do-regress: fake
@cd ${WRKSRC} && \
${MAKE_ENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG}/PIL \
${MODPY_BIN} ./selftest.py
.include <bsd.port.mk>