From f836ddc5ae66d67df5ffd7ad97ce897b66d0e8b4 Mon Sep 17 00:00:00 2001 From: jlam Date: Sun, 12 Jun 2005 06:37:32 +0000 Subject: Several of the netpbm shell scripts use bashisms, so force using bash for all of the shell scripts. Bump the PKGREVISION to 1. This fixes PR pkg/23636. --- graphics/netpbm/Makefile | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile index f1481d7e07b..e89d519ba64 100644 --- a/graphics/netpbm/Makefile +++ b/graphics/netpbm/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.111 2005/05/24 07:53:54 adam Exp $ +# $NetBSD: Makefile,v 1.112 2005/06/12 06:37:32 jlam Exp $ DISTNAME= netpbm-10.26.9 +PKGREVISION= 1 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netpbm/} EXTRACT_SUFX= .tgz @@ -11,8 +12,8 @@ COMMENT= Toolkit for conversion of images between different formats PKG_INSTALLATION_TYPES= overwrite pkgviews -USE_TOOLS+= gmake lex -USE_PERL5= yes +USE_TOOLS+= gmake lex +USE_PERL5= yes INSTALL_TARGET= install-dev install-run MAKE_ENV+= INSTALL="${INSTALL}" STRIPFLAG="${_STRIPFLAG_INSTALL}" \ @@ -26,6 +27,22 @@ STAGEDIR= ${WRKDIR}/staging LIBS.SunOS= -lsocket -lnsl MAKE_ENV+= NETWORKLD="${LIBS}" +# Several of the netpbm shell scripts use bashisms, so force using +# bash for all of the shell scripts. +# +DEPENDS+= bash-[0-9]*:../../shells/bash2 +EVAL_PREFIX+= BASH_PREFIX=bash +SUBST_CLASSES+= bash +SUBST_STAGE.bash= post-build +SUBST_SED.bash= -e "1s|^\#.*bin/sh|\#${BASH_PREFIX}/bin/bash|" +SUBST_FILES.bash= converter/other/anytopnm \ + converter/other/pnmtoplainpnm \ + converter/ppm/hpcdtoppm/hpcdtoppm \ + converter/ppm/hpcdtoppm/pcdovtoppm \ + editor/pamstretch-gen editor/pnmindex \ + editor/pnmmargin editor/ppmquantall \ + other/ppmtomap + pre-configure: ${CP} ${WRKSRC}/Makefile.config.in ${WRKSRC}/Makefile.config -- cgit v1.2.3