summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorghen <ghen@pkgsrc.org>2005-12-13 12:19:37 +0000
committerghen <ghen@pkgsrc.org>2005-12-13 12:19:37 +0000
commitf57c653bd104d334b83fbe9316a8513e155653b2 (patch)
tree0a5e60f943ca00ee1fcf9a3b47bb2eb06bfcd724 /multimedia
parentda9c990bfcba3e3d637040b683a207b2b5b5f762 (diff)
downloadpkgsrc-f57c653bd104d334b83fbe9316a8513e155653b2.tar.gz
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).
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/mjpegtools/Makefile12
1 files changed, 10 insertions, 2 deletions
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"