1998-11-05 03:02:39 -05:00
|
|
|
# New ports collection makefile for: PIL
|
|
|
|
# Version required: 0.3b2
|
|
|
|
# Date created: 02 November 1998
|
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.ORG>
|
|
|
|
#
|
1999-05-06 06:12:40 -04:00
|
|
|
# $Id: Makefile,v 1.4 1999/02/02 08:04:14 asami Exp $
|
1998-11-05 03:02:39 -05:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= Imaging-0.3b2
|
|
|
|
PKGNAME= py-imaging-0.3b2
|
|
|
|
CATEGORIES= graphics python
|
1998-11-09 03:10:03 -05:00
|
|
|
MASTER_SITES= http://www.pythonware.com/downloads/ \
|
|
|
|
ftp://www.python.org/pub/python/src/ \
|
|
|
|
ftp://ftp.cwi.nl/pub/python/src/
|
1999-05-06 06:12:40 -04:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} py152.tgz
|
1998-11-05 03:02:39 -05:00
|
|
|
|
|
|
|
MAINTAINER= tg@FreeBSD.ORG
|
|
|
|
|
|
|
|
BUILD_DEPENDS= python:${PORTSDIR}/lang/python
|
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
|
|
|
|
RUN_DEPENDS= python:${PORTSDIR}/lang/python
|
|
|
|
|
|
|
|
DIST_SUBDIR= python
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
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 03:52:11 -05:00
|
|
|
PILINCDIR= ${PREFIX}/include/python1.5
|
1998-11-05 03:02:39 -05:00
|
|
|
TKINTERORIG= ${PYTHONSCRIPTDIR}/lib-dynload/_tkinter.so
|
|
|
|
|
|
|
|
post-extract:
|
1999-02-02 03:04:14 -05:00
|
|
|
@(cd ${WRKDIR}; ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
|
1999-05-06 06:12:40 -04:00
|
|
|
${_DISTDIR}/py152.tgz ${EXTRACT_AFTER_ARGS} \
|
|
|
|
Python-1.5.2/Modules/_tkinter.c Python-1.5.2/Modules/tkappinit.c)
|
|
|
|
@${MV} ${WRKDIR}/Python-1.5.2/Modules/* ${WRKSRC}/..
|
1998-11-05 03:02:39 -05:00
|
|
|
@${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:
|
|
|
|
if test -f ${TKINTERORIG}; then \
|
|
|
|
${MV} ${TKINTERORIG} ${TKINTERORIG}.save; \
|
|
|
|
else true; \
|
|
|
|
fi
|
|
|
|
@(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 03:52:11 -05:00
|
|
|
.for file in ImConfig.h ImPlatform.h Imaging.h
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PILINCDIR}
|
|
|
|
.endfor
|
1998-11-05 03:02:39 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|