summaryrefslogtreecommitdiff
path: root/www/ap-aolserver/Makefile
blob: 61359e7c66d178c234cb3d1fbb64721649ac2324 (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
# $NetBSD: Makefile,v 1.7 2002/02/26 21:28:49 fredb Exp $
#

DISTNAME=		mod_aolserver-1.1
PKGNAME=		ap-aolserver-1.1
CATEGORIES=		www
MASTER_SITES=		# none

MAINTAINER=		cjones@netbsd.org
HOMEPAGE=		http://www.arsdigita.com/acs-repository/one-version?version_id=601
COMMENT=		Module that emulates AOLServer in Apache

DEPENDS+=		postgresql-lib>=7.0:../../databases/postgresql-lib
DEPENDS+=		libmm>=1.1.3:../../devel/libmm
DEPENDS+=		tcl>=8.3:../../lang/tcl
DEPENDS+=		apache{,6}-1.3.*:../../www/apache

HAS_CONFIGURE=	# yes
GNU_CONFIGURE=	# yes

CONFIGURE_ARGS+=	--with-database=postgres --with-mm=${PREFIX}
CONFIGURE_ENV+=		CPPFLAGS="-I${PREFIX}/include/pgsql -I${PREFIX}/include/httpd"

MESSAGE_SUBST+=		PREFIX=${PREFIX}

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

do-fetch:
	@if [ ! -f ${DISTDIR}/${DISTFILES} ] ; then \
		${_FETCH_MESSAGE}; \
		exit 1 ; \
	fi

fetch-list-one-pkg:
	@${ECHO} ${_FETCH_MESSAGE:Q}

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mod_aolserver
	${INSTALL_DATA} ${FILESDIR}/README ${FILESDIR}/nsd.tcl.sample \
		${WRKSRC}/tcl_modules/nsd.ini.sample \
		${PREFIX}/share/examples/mod_aolserver

.include "../../www/apache/buildlink.mk"
.include "../../mk/bsd.pkg.mk"