summaryrefslogtreecommitdiff
path: root/www/p5-HTML-Embperl/Makefile
blob: 0560bceae93d8e3392946157a18d160f2570da58 (plain) (blame)
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
# New ports collection makefile for:	p5-HTML-Embperl
# Date created:				March 13, 2000
# Whom:	      				Frank Mayhar <frank@exit.com>
#
# $FreeBSD$
#

PORTNAME=	HTML-Embperl
PORTVERSION=	1.3.3
CATEGORIES=	www perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	HTML
PKGNAMEPREFIX=	p5-

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A module to allow embedded perl in HTML documents

.if !defined(WITHOUT_APACHE)
BUILD_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl
RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl \
		${SITE_PERL}/Apache/Session.pm:${PORTSDIR}/www/p5-Apache-Session
.endif

PERL_CONFIGURE=	yes
.if !defined(WITHOUT_APACHE)
CONFIGURE_ARGS=	DEFINE=-DAPACHE INC=-I${LOCALBASE}/include/apache
.endif

INSTALL_TARGET=	pure_install

MAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3=		HTML::Embperl.3 HTML::EmbperlD.3 HTML::EmbperlObject.3
MAN1=		embpexec.pl.1

pre-configure:
	${CP} -f ${FILESDIR}/Makefile.PL ${WRKSRC}

.include <bsd.port.mk>