summaryrefslogtreecommitdiff
path: root/print/py-reportlab/Makefile
blob: b3087de8a5452e0b6f1b6716ee89aac14f1f902f (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
# $NetBSD: Makefile,v 1.4 2001/02/17 17:51:54 wiz Exp $
#

DISTNAME=	ReportLab_1_01
PKGNAME=	py-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

do-configure:
	(cd ${WRKSRC} ;\
	  ${CP} ${PY_CONFIGDIR}/Makefile.pre.in . ;\
	  ${MAKE} -f Makefile.pre.in boot)

post-build:
	(cd ${WRKDIR}; \
	${PY_PROG} ${PY_LIBDIR}/compileall.py . ; \
	${PY_PROG} -O ${PY_LIBDIR}/compileall.py . )
	(cd ${WRKSRC}; \
	${MAKE} clean; ${RM} -f *.c *.orig Makefile* Setup* sedscript )

do-install:
	${INSTALL_SCRIPT_DIR} ${PY_LIBDIR}
	${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
	(cd ${WRKDIR}; ${PAX} -r -w -v -p p reportlab ${PY_SITEPKG})
	(cd ${PREFIX}; ${FIND} ${PY_SITEPATH}/reportlab \
		-type f -print >>${PLIST_SRC})
	(cd ${PREFIX}; ${FIND} -d ${PY_SITEPATH}/reportlab \
		-type d -print | ${SED} -e "s/^/@dirrm /" >>${PLIST_SRC})

.include "../../lang/python/Makefile.inc"
.include "../../mk/bsd.pkg.mk"