openbsd-ports/www/zope-cmf/Makefile

42 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.12 2004/08/10 13:24:15 xsa Exp $
COMMENT= "Zope content management framework"
DISTNAME= CMF-1.4.6
PKGNAME= zope-${DISTNAME:L}
CATEGORIES= www
HOMEPAGE= http://cmf.zope.org/
MAINTAINER= Xavier Santolaria <xsa@openbsd.org>
# Zope Public License (ZPL) 2.0 <http://www.zope.org/Resources/ZPL>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://zope.org/Products/CMF/${DISTNAME}/
MODULES= www/zope
CMFDIRS= CMFCalendar CMFCore CMFDefault CMFTopic DCWorkflow
DOCSDIR= ${PREFIX}/share/doc/zope-cmf
do-build:
.for i in ${CMFDIRS}
${PYTHON_BIN} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/${i} || true
.endfor
do-install:
${INSTALL_PROGRAM_DIR} ${MODZOPE_PRODUCTSDIR}
.for p in ${CMFDIRS}
cd ${WRKSRC}; cp -R ${p} ${MODZOPE_PRODUCTSDIR}
.endfor
${INSTALL_DATA_DIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.{stx,txt} ${DOCSDIR}
${INSTALL_DATA_DIR} ${DOCSDIR}/imgs
${INSTALL_DATA} ${WRKSRC}/docs/imgs/* ${DOCSDIR}/imgs
.include <bsd.port.mk>