1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/lang/eperl/Makefile

65 lines
1.8 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: eperl
# Version required: 2.2.9
# Date created: 03-Sep-1997
# Whom: Ralf S. Engelschall <rse@engelschall.com>
#
1997-12-24 10:07:46 +00:00
# $Id: Makefile,v 1.21 1997/12/24 01:21:09 alex Exp $
#
DISTNAME= eperl-2.2.9
CATEGORIES= lang www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \
http://www.engelschall.com/sw/eperl/distrib/ \
ftp://ftp.engelschall.com/sw/eperl/
MASTER_SITE_SUBDIR=Parse
MAINTAINER= rse@engelschall.com
# User-controlled variables list
# INSTALL_ALSO_AS_SSSL
# install ePerl also as a Server-Side
# Scripting Language (SSSL) for Apache
#INSTALL_ALSO_AS_SSSL= yes
.if defined(INSTALL_ALSO_AS_SSSL)
1997-08-13 09:40:07 +00:00
RUN_DEPENDS= ${PREFIX}/etc/apache/srm.conf:${PORTSDIR}/www/apache
.endif
1997-12-24 10:07:46 +00:00
BROKEN= cannot find ./etc/asc2c
USE_PERL5= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --with-perl=${PREFIX}/bin/perl
MAN1= eperl.1
test:
@(cd ${WRKSRC}; make test)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/eperl ${PREFIX}/bin/eperl
${INSTALL_MAN} ${WRKSRC}/eperl.1 ${PREFIX}/man/man1/eperl.1
1997-01-04 23:40:19 +00:00
.if !defined(NOPORTDOCS)
@if [ ! -d ${PREFIX}/share/examples/eperl ]; then \
${MKDIR} ${PREFIX}/share/examples/eperl; \
fi
${CP} ${WRKSRC}/eg/* ${PREFIX}/share/examples/eperl/
.endif
.if defined(INSTALL_ALSO_AS_SSSL)
@if [ ! -d ${PREFIX}/www/cgi-bin ]; then \
${MKDIR} ${PREFIX}/www/cgi-bin; \
fi
${INSTALL_PROGRAM} ${WRKSRC}/eperl ${PREFIX}/www/cgi-bin/nph-eperl
@if [ ".`grep x-httpd-eperl ${PREFIX}/etc/apache/srm.conf`" = . ]; then \
${ECHO} "AddType application/x-httpd-eperl .phtml .eperl .epl" \
>>${PREFIX}/etc/apache/srm.conf; \
${ECHO} "Action application/x-httpd-eperl /cgi-bin/nph-eperl" \
>>${PREFIX}/etc/apache/srm.conf; \
${ECHO} "Added knowledge about ePerl to Apache's srm.conf"; \
else \
${ECHO} "Apache srm.conf is already aware of ePerl"; \
fi
.endif
.include <bsd.port.mk>