# New ports collection makefile for: eperl # Date created: 03-Sep-1997 # Whom: Ralf S. Engelschall # # $FreeBSD$ # PORTNAME= eperl PORTVERSION= 2.2.14 CATEGORIES= lang www perl5 MASTER_SITES= ftp://ftp.ossp.org/pkg/tool/eperl/ \ ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR=Parse MAINTAINER= ports@FreeBSD.org COMMENT= Embedded Perl 5 Language # 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) RUN_DEPENDS= ${PREFIX}/etc/apache/srm.conf:${PORTSDIR}/${APACHE_PORT} .endif USE_PERL5= yes HAS_CONFIGURE= yes CONFIGURE_ARGS= --with-perl=${PERL5} MAN1= eperl.1 .include test: @(cd ${WRKSRC}; ${MAKE} test) post-patch: @${FIND} ${WRKSRC} -type f -name "*.[ch]" | \ ${XARGS} ${GREP} -l strnstr | \ ${XARGS} ${PERL} -pi -e 's|strnstr|ePerl_strnstr|g' do-install: ${INSTALL_PROGRAM} ${WRKSRC}/eperl ${PREFIX}/bin/eperl ${INSTALL_MAN} ${WRKSRC}/eperl.1 ${PREFIX}/man/man1/eperl.1 .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_CMD} "AddType application/x-httpd-eperl .phtml .eperl .epl" \ >>${PREFIX}/etc/apache/srm.conf; \ ${ECHO_CMD} "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 -6.5.4 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* - add stage supportohauer2014-04-282-8/+12
* - Covert USE_GMAKE, USE_BZIP2, USE_XZ to USESmiwi2014-03-151-2/+1
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-5/+2
* - Remove MAKE_JOBS_SAFE variableak2013-08-151-1/+0
* - Convert USE_ICONV=yes to USES=iconvmva2013-04-281-1/+1
* - remove www/apache20 and devel/apr0ohauer2012-08-183-577/+2