summaryrefslogtreecommitdiff
path: root/www/openacs/Makefile
blob: 07180e8e48a28ab1c6b724bce174cd68508eec1e (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
43
44
45
46
47
48
49
50
51
52
53
# $NetBSD: Makefile,v 1.10 2003/01/05 20:14:34 jlam Exp $
#

DISTNAME=		openacs-3.2.5
PKGREVISION=		2
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
DEPENDS+=		postgresql-lib>=7.0:../../databases/postgresql-lib
DEPENDS+=		ImageMagick>=5.3.9nb1:../../graphics/ImageMagick
DEPENDS+=		unzip-[0-9]*:../../archivers/unzip
BUILD_DEPENDS+=		postgresql-client>=7.0:../../databases/postgresql-client

INTERACTIVE_STAGE=	fetch

NO_CONFIGURE=	# set
NO_BUILD=	# set

MESSAGE_SUBST+=	PREFIX=${PREFIX}

_FETCH_MESSAGE= \
	    ${ECHO} "==============================================================="; \
	    ${ECHO} "Please fetch ${DISTFILES} into ${DISTDIR}" ; \
	    ${ECHO} "from ${HOMEPAGE} ." ; \
	    ${ECHO} "==============================================================="

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"