1997-01-04 19:54:38 +01:00
|
|
|
# New ports collection makefile for: eperl
|
1997-10-28 13:43:06 +01:00
|
|
|
# Date created: 03-Sep-1997
|
1997-05-03 09:54:54 +02:00
|
|
|
# Whom: Ralf S. Engelschall <rse@engelschall.com>
|
1997-01-04 19:54:38 +01:00
|
|
|
#
|
1999-08-25 08:35:40 +02:00
|
|
|
# $FreeBSD$
|
1997-01-04 19:54:38 +01:00
|
|
|
#
|
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= eperl
|
|
|
|
PORTVERSION= 2.2.14
|
1997-05-03 09:54:54 +02:00
|
|
|
CATEGORIES= lang www perl5
|
2002-07-07 20:14:26 +02:00
|
|
|
MASTER_SITES= ftp://ftp.ossp.org/pkg/tool/eperl/ \
|
1997-12-31 10:25:39 +01:00
|
|
|
${MASTER_SITE_PERL_CPAN}
|
1997-08-11 10:59:06 +02:00
|
|
|
MASTER_SITE_SUBDIR=Parse
|
1997-01-04 19:54:38 +01:00
|
|
|
|
|
|
|
MAINTAINER= rse@engelschall.com
|
2003-02-21 13:35:09 +01:00
|
|
|
COMMENT= Embedded Perl 5 Language
|
1997-01-04 19:54:38 +01:00
|
|
|
|
1997-05-03 09:54:54 +02:00
|
|
|
# User-controlled variables list
|
1997-08-11 10:59:06 +02:00
|
|
|
# INSTALL_ALSO_AS_SSSL
|
|
|
|
# install ePerl also as a Server-Side
|
|
|
|
# Scripting Language (SSSL) for Apache
|
1997-10-28 13:43:06 +01:00
|
|
|
#INSTALL_ALSO_AS_SSSL= yes
|
1997-05-03 09:54:54 +02:00
|
|
|
|
|
|
|
.if defined(INSTALL_ALSO_AS_SSSL)
|
2003-11-07 10:12:58 +01:00
|
|
|
RUN_DEPENDS= ${PREFIX}/etc/apache/srm.conf:${PORTSDIR}/${APACHE_PORT}
|
1997-05-03 09:54:54 +02:00
|
|
|
.endif
|
1997-01-04 19:54:38 +01:00
|
|
|
|
1997-07-18 07:04:20 +02:00
|
|
|
USE_PERL5= yes
|
1997-08-11 10:59:06 +02:00
|
|
|
HAS_CONFIGURE= yes
|
1998-09-15 23:31:59 +02:00
|
|
|
CONFIGURE_ARGS= --with-perl=${PERL5}
|
1997-01-04 19:54:38 +01:00
|
|
|
|
1997-08-11 10:59:06 +02:00
|
|
|
MAN1= eperl.1
|
|
|
|
|
|
|
|
test:
|
2002-01-29 12:24:09 +01:00
|
|
|
@(cd ${WRKSRC}; ${MAKE} test)
|
1997-08-11 10:59:06 +02:00
|
|
|
|
2002-01-02 13:27:25 +01:00
|
|
|
post-patch:
|
2003-11-13 14:30:42 +01:00
|
|
|
@${FIND} ${WRKSRC} -type f -name "*.[ch]" | \
|
|
|
|
${XARGS} ${GREP} -l strnstr | \
|
2002-01-29 12:24:09 +01:00
|
|
|
${XARGS} ${PERL} -pi -e 's|strnstr|ePerl_strnstr|g'
|
2002-01-02 13:27:25 +01:00
|
|
|
|
1997-01-04 19:54:38 +01:00
|
|
|
do-install:
|
1997-05-03 09:54:54 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/eperl ${PREFIX}/bin/eperl
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/eperl.1 ${PREFIX}/man/man1/eperl.1
|
1997-01-05 00:40:19 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
1997-05-03 09:54:54 +02:00
|
|
|
@if [ ! -d ${PREFIX}/share/examples/eperl ]; then \
|
1997-10-28 13:50:42 +01:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/eperl; \
|
1997-05-03 09:54:54 +02:00
|
|
|
fi
|
1997-08-11 10:59:06 +02:00
|
|
|
${CP} ${WRKSRC}/eg/* ${PREFIX}/share/examples/eperl/
|
|
|
|
.endif
|
1997-05-03 09:54:54 +02:00
|
|
|
.if defined(INSTALL_ALSO_AS_SSSL)
|
1997-08-11 10:59:06 +02:00
|
|
|
@if [ ! -d ${PREFIX}/www/cgi-bin ]; then \
|
1997-10-28 13:50:42 +01:00
|
|
|
${MKDIR} ${PREFIX}/www/cgi-bin; \
|
1997-08-11 10:59:06 +02:00
|
|
|
fi
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/eperl ${PREFIX}/www/cgi-bin/nph-eperl
|
1999-08-23 06:23:59 +02:00
|
|
|
@if [ ".`${GREP} x-httpd-eperl ${PREFIX}/etc/apache/srm.conf`" = . ]; then \
|
2002-01-29 12:24:09 +01:00
|
|
|
${ECHO_CMD} "AddType application/x-httpd-eperl .phtml .eperl .epl" \
|
1997-05-03 09:54:54 +02:00
|
|
|
>>${PREFIX}/etc/apache/srm.conf; \
|
2002-01-29 12:24:09 +01:00
|
|
|
${ECHO_CMD} "Action application/x-httpd-eperl /cgi-bin/nph-eperl" \
|
1997-05-03 09:54:54 +02:00
|
|
|
>>${PREFIX}/etc/apache/srm.conf; \
|
1997-08-11 10:59:06 +02:00
|
|
|
${ECHO} "Added knowledge about ePerl to Apache's srm.conf"; \
|
1997-05-03 09:54:54 +02:00
|
|
|
else \
|
1997-08-11 10:59:06 +02:00
|
|
|
${ECHO} "Apache srm.conf is already aware of ePerl"; \
|
1997-05-03 09:54:54 +02:00
|
|
|
fi
|
1997-08-11 10:59:06 +02:00
|
|
|
.endif
|
1997-01-04 19:54:38 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|