pkgsrc/www/openacs/Makefile

52 lines
1.4 KiB
Makefile
Raw Normal View History

2001-07-27 12:52:00 +02:00
# $NetBSD: Makefile,v 1.2 2001/07/27 10:52:00 wiz Exp $
#
DISTNAME= openacs-3.2.5
CATEGORIES= www
MASTER_SITES= # none
EXTRACT_SUFX= .tgz
MAINTAINER= cjones@netbsd.org
HOMEPAGE= http://www.openacs.org/
COMMENT= TCL-based web programming environment
# Would also work with AOLServer, but there's no package for that.
DEPENDS+= ap-aolserver-1.1:../../www/ap-aolserver
2001-07-27 12:52:00 +02:00
DEPENDS+= postgresql-lib>=7.0:../../databases/postgresql-lib
DEPENDS+= ImageMagick>=5.2.0:../../graphics/ImageMagick
DEPENDS+= unzip-*:../../archivers/unzip
BUILD_DEPENDS+= postgresql-client>=7.0:../../databases/postgresql-client
NO_CONFIGURE= # set
NO_BUILD= # set
MESSAGE_SUBST+= PREFIX=${PREFIX}
do-fetch:
@if [ ! -f ${DISTDIR}/${DISTFILES} ] ; then \
${ECHO} "Please fetch ${DISTFILES} into ${DISTDIR}" ; \
${ECHO} "from ${HOMEPAGE} ." ; \
exit 1 ; \
fi
SEDFILES=${WRKSRC}/parameters/ad.tcl \
${WRKSRC}/bin/aolserver-errors.pl \
${WRKSRC}/bin/queue-message.pl \
${WRKSRC}/www/doc/sql/postgres.sql \
${WRKDIR}/install-openacs
# This intentionally clobbers the .orig files:
post-patch:
${CP} ${FILESDIR}/install-openacs ${WRKDIR}
for F in ${SEDFILES} ; do \
${SED} "s,@PREFIX@,${PREFIX},g" < $$F > $$F.orig ; \
${MV} $$F.orig $$F ; \
done
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/install-openacs ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/openacs
( cd ${WRKSRC} ; tar cf - . ) | \
( cd ${PREFIX}/share/openacs ; tar xf - )
.include "../../mk/bsd.pkg.mk"