Lines 16-22
Link Here
|
16 |
COMMENT= The Python Imaging Library |
16 |
COMMENT= The Python Imaging Library |
17 |
|
17 |
|
18 |
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter |
18 |
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter |
19 |
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg |
19 |
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ |
|
|
20 |
freetype.9:${PORTSDIR}/print/freetype2 |
20 |
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter |
21 |
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter |
21 |
|
22 |
|
22 |
DIST_SUBDIR= python |
23 |
DIST_SUBDIR= python |
Lines 25-37
Link Here
|
25 |
GNU_CONFIGURE= yes |
26 |
GNU_CONFIGURE= yes |
26 |
CONFIGURE_ARGS= --with-jpeg=${PREFIX}/lib |
27 |
CONFIGURE_ARGS= --with-jpeg=${PREFIX}/lib |
27 |
CONFIGURE_ENV= PYTHON=${PYTHON_CMD} |
28 |
CONFIGURE_ENV= PYTHON=${PYTHON_CMD} |
|
|
29 |
SETUP_ENV= X11BASE=${X11BASE} PREFIX=${PREFIX} |
28 |
MAKE_FLAGS= OPT="${CFLAGS}" |
30 |
MAKE_FLAGS= OPT="${CFLAGS}" |
29 |
|
31 |
|
|
|
32 |
.include <bsd.port.pre.mk> |
33 |
|
30 |
PILDIR= ${PYTHON_SITELIBDIR}/PIL |
34 |
PILDIR= ${PYTHON_SITELIBDIR}/PIL |
31 |
PILDOCDIR= ${PREFIX}/share/doc/PIL |
35 |
PILDOCDIR= ${PREFIX}/share/doc/PIL |
32 |
PILEXDIR= ${PREFIX}/share/examples/PIL |
36 |
PILEXDIR= ${PREFIX}/share/examples/PIL |
33 |
PILINCDIR= ${PREFIX}/include/${PYTHON_VERSION} |
37 |
PILINCDIR= ${PREFIX}/include/${PYTHON_VERSION} |
34 |
|
38 |
|
|
|
39 |
.if ${PYTHON_REL} > 200 |
40 |
post-build: |
41 |
@(cd ${WRKSRC}/..; ${SETENV} ${SETUP_ENV} ${PYTHON_CMD} setup.py build) |
42 |
|
43 |
do-install: |
44 |
@(cd ${WRKSRC}/..; ${SETENV} ${SETUP_ENV} ${PYTHON_CMD} setup.py install -O1) |
45 |
@${MKDIR} ${PILDOCDIR} |
46 |
${INSTALL_DATA} ${WRKSRC}/../README ${PILDOCDIR} |
47 |
@${MKDIR} ${PILEXDIR} |
48 |
${INSTALL_DATA} ${WRKSRC}/../Scripts/* ${PILEXDIR} |
49 |
.for file in ImConfig.h ImPlatform.h Imaging.h |
50 |
${INSTALL_DATA} ${WRKSRC}/${file} ${PILINCDIR} |
51 |
.endfor |
52 |
.else |
35 |
post-extract: |
53 |
post-extract: |
36 |
@${CP} ${FILESDIR}/Setup ${WRKSRC}/.. |
54 |
@${CP} ${FILESDIR}/Setup ${WRKSRC}/.. |
37 |
|
55 |
|
Lines 55-59
Link Here
|
55 |
.for file in ImConfig.h ImPlatform.h Imaging.h |
73 |
.for file in ImConfig.h ImPlatform.h Imaging.h |
56 |
${INSTALL_DATA} ${WRKSRC}/${file} ${PILINCDIR} |
74 |
${INSTALL_DATA} ${WRKSRC}/${file} ${PILINCDIR} |
57 |
.endfor |
75 |
.endfor |
58 |
|
76 |
.endif |
59 |
.include <bsd.port.mk> |
77 |
.include <bsd.port.post.mk> |