summaryrefslogtreecommitdiff
path: root/lang/py-extclass/Makefile
blob: 0483152e88ad30846a577ad443a11aec57f6dbd4 (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
# $NetBSD: Makefile,v 1.6 2000/02/15 01:11:56 tsarna Exp $
#

DISTNAME=	Zope-2.1.4-src
PKGNAME=	py-extclass-2.1.4
CATEGORIES=	lang
MASTER_SITES=   http://www.zope.org/Products/Zope/2.1.4/
EXTRACT_SUFX=	.tgz

MAINTAINER=	tsarna@netbsd.org
HOMEPAGE=	http://www.digicool.com/releases/ExtensionClass

DEPENDS+=	python-1.5.2:../../lang/python

ALL_TARGET=	default
PYTHON_LIBDIR=		${LOCALBASE}/lib/python1.5/site-packages
PYTHON_CONFIGDIR=	${LOCALBASE}/lib/python1.5/config
EXTRACT_ELEMENTS=       ${DISTNAME}/lib/Components/ExtensionClass

WRKSRC=		${WRKDIR}/${DISTNAME}/lib/Components/ExtensionClass

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

post-build:
	(cd ${WRKSRC}; ${LOCALBASE}/bin/python ${PREFIX}/lib/python1.5/compileall.py .)
	(cd ${WRKSRC}; ${LOCALBASE}/bin/python -O ${PREFIX}/lib/python1.5/compileall.py .)

do-install:
	(cd ${WRKSRC}; ${INSTALL_DATA} ExtensionClass.h \
		${LOCALBASE}/include/python1.5 ; \
	${INSTALL_SCRIPT_DIR} ${PYTHON_LIBDIR} ; \
	${INSTALL_SCRIPT} Xaq.py* ComputedAttribute.py* ${PYTHON_LIBDIR} ; \
	${INSTALL_PROGRAM} *.so ${PYTHON_LIBDIR} ; \
	${INSTALL_SCRIPT_DIR} ${PYTHON_LIBDIR}/extclass_test ; \
	${INSTALL_SCRIPT} test_*.py* ${PYTHON_LIBDIR}/extclass_test ; \
	${INSTALL_DATA_DIR} ${PYTHON_LIBDIR}/extclass_doc ; \
	${INSTALL_DATA} *.txt *.stx ${PYTHON_LIBDIR}/extclass_doc)

.include "../../mk/bsd.pkg.mk"