blob: 3f5f704ca04f9efe6b7250e5e9297fa4b2a9f57c (
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.5 2002/01/29 12:12:07 drochner Exp $
#
DISTNAME= ReportLab_1_01
PKGNAME= ${PYPKGPREFIX}-reportlab-1.01
CATEGORIES= print
MASTER_SITES= ftp://ftp.reportlab.com/
EXTRACT_SUFX= .tgz
MAINTAINER= tsarna@netbsd.org
HOMEPAGE= http://www.reportlab.com/
COMMENT= powerful PDF-generating toolkit for Python
WRKSRC= ${WRKDIR}/reportlab/lib
ALL_TARGET= default
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
PYTHON_VERSIONS_ACCEPTED= 20 21 # no 22 - uses Makefile.pre.in
PYBINMODULE= yes
do-configure:
(cd ${WRKSRC} ;\
${CP} ${LOCALBASE}/${PYLIB}/config/Makefile.pre.in . ;\
${MAKE} -f Makefile.pre.in boot)
post-build:
(cd ${WRKDIR}; \
${PYTHONBIN} ${LOCALBASE}/${PYLIB}/compileall.py . ; \
${PYTHONBIN} -O ${LOCALBASE}/${PYLIB}/compileall.py . )
(cd ${WRKSRC}; \
${MAKE} clean; ${RM} -f *.c *.orig Makefile* Setup* sedscript )
do-install:
${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
(cd ${WRKDIR}; ${PAX} -r -w -v -p p reportlab ${PREFIX}/${PYSITELIB})
(cd ${PREFIX}; ${FIND} ${PYSITELIB}/reportlab \
-type f -print >>${PLIST_SRC})
(cd ${PREFIX}; ${FIND} -d ${PYSITELIB}/reportlab \
-type d -print | ${SED} -e "s/^/@dirrm /" >>${PLIST_SRC})
.include "../../lang/python/extension.buildlink.mk"
.include "../../mk/bsd.pkg.mk"
|