summaryrefslogtreecommitdiff
path: root/www/zope/Makefile
blob: 0b44bef97c28e13dae36dedb787a71f04c039969 (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
# $NetBSD: Makefile,v 1.4 1998/12/23 07:04:22 tsarna Exp $
#

DISTNAME=	Zope-1.9.0-src
PKGNAME=	zope-1.9.0
CATEGORIES=	www
MASTER_SITES=   http://www.zope.org/Download/Releases/Zope-1.9.0/

MAINTAINER=	tsarna@netbsd.org
HOMEPAGE=	http://www.zope.org/

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

CONFLICTS=	zope-1.9b1 zope-1.9.0b2

PLIST_SRC=	${WRKDIR}/.PLIST_SRC

ZOPEDIR=	${PREFIX}/zope

do-configure:
	${SED} -e "s,@PREFIX@,${PREFIX}," \
		<${FILESDIR}/Makefile.in > ${WRKSRC}/Makefile
	(cd ${WRKSRC}; rm -rf lib/Components/zlib)
	(cd ${WRKSRC}; make configure)

do-install:
	${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
	${MKDIR} ${ZOPEDIR}
	(cd ${WRKSRC}; pax -r -w -s'/.*\.[cho]$$//' . ${ZOPEDIR})
	${PREFIX}/bin/python \
		${PREFIX}/lib/python1.5/compileall.py ${ZOPEDIR}
	chmod -R a+rX ${ZOPEDIR}
	(cd ${PREFIX}; find zope -type f -print >>${PLIST_SRC})
	(cd ${PREFIX}; find -d zope -type d -print | \
	${SED} -e "s/^/@dirrm /" >>${PLIST_SRC})
	${SED} -e "s,/usr/pkg,${PREFIX}," \
		<${FILESDIR}/zope-install.py >${PREFIX}/sbin/zope-install
	chmod 755 ${PREFIX}/sbin/zope-install

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