pkgsrc/www/zope25/Makefile
drochner 79f41aa33d First cut on an actual Zope pkg, which requires a thread enabled Python,
for which we only have a pth version. Needs Testing.
Also needs some work for installation/startup scripts.
2002-08-22 16:54:48 +00:00

52 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2002/08/22 16:54:48 drochner Exp $
#
DISTNAME= Zope-2.5.1-src
PKGNAME= zope-2.5.1
CATEGORIES= www
MASTER_SITES= http://www.zope.org/Products/Zope/2.5.1/
EXTRACT_SUFX= .tgz
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.zope.org/
COMMENT= Zope, the Z Object Publishing Environment
DIST_SUBDIR= zope
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
HOTFIX= Hotfix_2002-06-14.tgz
SITES_${HOTFIX}= http://www.zope.org/Products/Zope/Hotfix_2002-06-14/
DISTFILES+= ${HOTFIX}
PYTHON_VERSIONS_ACCEPTED= 21pth
USE_BUILDLINK_ONLY= yes
ZOPEDIR= ${PREFIX}/lib/zope
ZOPEPY= pcgi lib/python ZServer z2.py zpasswd.py
ZOPEDATA= Extensions doc import var inst utilities
#do-build:
# (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} w_pcgi.py)
do-build:
(cd ${WRKSRC}/pcgi && ${SETENV} ${MAKE_ENV} ./configure && \
${SETENV} ${MAKE_ENV} ${MAKE})
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${PYTHONBIN} inst/build_extensions.py)
#
# Install code and prototype data. A real INSTANCE_HOME must be created
# outside of ${PREFIX} to allow shared, read-only installations.
#
do-install:
${INSTALL_DATA_DIR} ${ZOPEDIR}
(cd ${WRKSRC}; ${FIND} ${ZOPEPY} -type f -and \! \( -name "*.[cho]" \
-or -name "sedscript" -or -name "Makefile*" \
-or -name "Setup*" -or -name ".cvsignore" \) \
-print | ${PAX} -r -w ${ZOPEDIR})
#install hotfix
(cd ${WRKDIR}; ${PAX} -r -w lib ${ZOPEDIR})
(cd ${ZOPEDIR}; ${PYTHONBIN} ${WRKSRC}/inst/compilezpy.py)
(cd ${WRKSRC}; ${PAX} -r -w ${ZOPEDATA} ${ZOPEDIR})
.include "../../lang/python/application.buildlink.mk"
.include "../../mk/bsd.pkg.mk"