From f57c653bd104d334b83fbe9316a8513e155653b2 Mon Sep 17 00:00:00 2001 From: ghen Date: Tue, 13 Dec 2005 12:19:37 +0000 Subject: Patch some shell scripts to start with #!${PREFIX}/bin/bash instead of #!/bin/bash (at least two of these scripts don't run with /bin/sh). This solves part of PR pkg/29342 (the other part concerns geography/gpsdrive). --- multimedia/mjpegtools/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'multimedia') diff --git a/multimedia/mjpegtools/Makefile b/multimedia/mjpegtools/Makefile index cd66a894dbc..5d52081f238 100644 --- a/multimedia/mjpegtools/Makefile +++ b/multimedia/mjpegtools/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.18 2005/12/11 09:40:46 wiz Exp $ +# $NetBSD: Makefile,v 1.19 2005/12/13 12:19:37 ghen Exp $ DISTNAME= mjpegtools-1.6.2 -PKGREVISION= 6 +PKGREVISION= 7 CATEGORIES= multimedia MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mjpeg/} @@ -11,6 +11,7 @@ COMMENT= Programs for compressing video streams DEPENDS+= toolame>=02l:../../audio/toolame BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm +DEPENDS+= bash>=2:../../shells/bash USE_TOOLS+= gmake @@ -24,6 +25,13 @@ CONFIGURE_ARGS+= --with-lame-includes=${BUILDLINK_PREFIX.lame} .include "options.mk" +SUBST_CLASSES+= bash +SUBST_STAGE.bash= post-patch +SUBST_FILES.bash= scripts/mpegtranscode +SUBST_FILES.bash+= scripts/lav2avi.sh +SUBST_FILES.bash+= scripts/lav2mpeg +SUBST_SED.bash= -e 's,^\#!/bin/bash,\#!${PREFIX}/bin/bash,' + INFO_FILES= mjpeg-howto.info .include "../../audio/lame/buildlink3.mk" -- cgit v1.2.3