1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/graphics/py-imaging/Makefile
Thomas Gellekum 9c0d74037c Separate the Python Tk module from the main port. I've been
wanting do to this for a long time now. Now we got rid of the stupid
dependency on Tcl/Tk and save some checks in python's makefile.

Update the dependent ports accordingly.
2000-04-04 09:53:12 +00:00

60 lines
1.9 KiB
Makefile

# New ports collection makefile for: PIL
# Version required: 1.0
# Date created: 02 November 1998
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
DISTNAME= Imaging-1.0
PKGNAME= py-imaging-1.0
CATEGORIES= graphics python
MASTER_SITES= http://www.pythonware.com/downloads/ \
ftp://www.python.org/pub/python/src/ \
ftp://ftp.cwi.nl/pub/python/src/
MAINTAINER= tg@FreeBSD.org
BUILD_DEPENDS= ${PREFIX}/lib/python1.5/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
RUN_DEPENDS= ${PREFIX}/lib/python1.5/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
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
PILINCDIR= ${PREFIX}/include/python1.5
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}
.for file in ImConfig.h ImPlatform.h Imaging.h
${INSTALL_DATA} ${WRKSRC}/${file} ${PILINCDIR}
.endfor
.include <bsd.port.mk>