1998-11-05 08:02:39 +00:00
|
|
|
# New ports collection makefile for: PIL
|
1999-08-06 10:08:29 +00:00
|
|
|
# Version required: 1.0
|
1998-11-05 08:02:39 +00:00
|
|
|
# Date created: 02 November 1998
|
1999-08-06 10:08:29 +00:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1998-11-05 08:02:39 +00:00
|
|
|
#
|
1999-08-06 10:08:29 +00:00
|
|
|
# $Id: Makefile,v 1.5 1999/05/06 10:12:36 tg Exp $
|
1998-11-05 08:02:39 +00:00
|
|
|
#
|
|
|
|
|
1999-08-06 10:08:29 +00:00
|
|
|
DISTNAME= Imaging-1.0
|
|
|
|
PKGNAME= py-imaging-1.0
|
1998-11-05 08:02:39 +00:00
|
|
|
CATEGORIES= graphics python
|
1998-11-09 08:10:03 +00:00
|
|
|
MASTER_SITES= http://www.pythonware.com/downloads/ \
|
|
|
|
ftp://www.python.org/pub/python/src/ \
|
|
|
|
ftp://ftp.cwi.nl/pub/python/src/
|
1998-11-05 08:02:39 +00:00
|
|
|
|
1999-08-06 10:08:29 +00:00
|
|
|
MAINTAINER= tg@FreeBSD.org
|
1998-11-05 08:02:39 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= python:${PORTSDIR}/lang/python
|
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
|
|
|
|
RUN_DEPENDS= python:${PORTSDIR}/lang/python
|
|
|
|
|
|
|
|
DIST_SUBDIR= python
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/libImaging
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-jpeg=${PREFIX}/lib
|
|
|
|
MAKE_FLAGS= OPT="${CFLAGS}"
|
|
|
|
|
|
|
|
PYTHONSCRIPTDIR= ${PREFIX}/lib/python1.5
|
|
|
|
PILDIR= ${PYTHONSCRIPTDIR}/site-packages/PIL
|
|
|
|
PILDOCDIR= ${PREFIX}/share/doc/PIL
|
|
|
|
PILEXDIR= ${PREFIX}/share/examples/PIL
|
1998-11-16 08:52:11 +00:00
|
|
|
PILINCDIR= ${PREFIX}/include/python1.5
|
1998-11-05 08:02:39 +00:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${CP} ${FILESDIR}/Setup ${WRKSRC}/..
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@(cd ${WRKSRC}/..; ${SETENV} ${MAKE_ENV} ${MAKE} -f Makefile.pre.in boot)
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@(cd ${WRKSRC}/..; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} sharedmods)
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@(cd ${WRKSRC}/..; ${SETENV} ${MAKE_ENV} ${MAKE} install)
|
|
|
|
@${MKDIR} ${PILDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../PIL/* ${PILDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../PIL.pth ${PILDIR}/..
|
|
|
|
@${PREFIX}/bin/python ${PYTHONSCRIPTDIR}/compileall.py ${PILDIR}
|
|
|
|
@${PREFIX}/bin/python -O ${PYTHONSCRIPTDIR}/compileall.py ${PILDIR}
|
|
|
|
@${MKDIR} ${PILDOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../README ${PILDOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../FORMATS ${PILDOCDIR}
|
|
|
|
@${MKDIR} ${PILEXDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../Scripts/* ${PILEXDIR}
|
1998-11-16 08:52:11 +00:00
|
|
|
.for file in ImConfig.h ImPlatform.h Imaging.h
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PILINCDIR}
|
|
|
|
.endfor
|
1998-11-05 08:02:39 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|