blob: ddf82f26ff5c924b8641df96bb5c91b0e0e9bf15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# $NetBSD: Makefile,v 1.4 1999/04/14 15:54:46 tsarna Exp $
DISTNAME= Imaging-1.0b1
PKGNAME= py-imaging-1.0b1
CATEGORIES= graphics
MASTER_SITES= http://www.pythonware.com/downloads/
MAINTAINER= tsarna@netbsd.org
HOMEPAGE= http://www.pythonware.com/products/pil/
DEPENDS+= python-1.5.2:../../lang/python
DEPENDS+= jpeg-6b:../../graphics/jpeg
DIST_SUBDIR= python
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
do-configure:
(cd ${WRKSRC}/libImaging; CC="cc -fPIC" ./configure)
${SED} -e 's,@PREFIX@,${PREFIX},g' ${FILESDIR}/Setup.in \
>${WRKSRC}/Setup.in
(cd ${WRKSRC}; ${MAKE} -f Makefile.pre.in boot)
do-build:
(cd ${WRKSRC}/libImaging; ${MAKE}; cd ..; ${MAKE})
post-build:
(cd ${WRKSRC}/PIL; python ${PREFIX}/lib/python1.5/compileall.py .)
(cd ${WRKSRC}/PIL; python -O ${PREFIX}/lib/python1.5/compileall.py .)
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/PIL/*.py ${WRKSRC}/PIL/*.py[co] \
${PREFIX}/lib/python1.5/site-packages
${INSTALL_DATA_DIR} ${PREFIX}/include/PIL
${INSTALL_DATA} ${WRKSRC}/libImaging/*.h ${PREFIX}/include/PIL
${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
(cd ${WRKSRC}/PIL; find . -name \*.py\* -print \
| ${SED} -e 's,^./,lib/python1.5/site-packages/,g' \
>>${PLIST_SRC})
(cd ${PREFIX}; find include/PIL -type f -print >>${PLIST_SRC})
${ECHO} "@dirrm include/PIL" >>${PLIST_SRC}
.include "../../mk/bsd.pkg.mk"
|