summaryrefslogtreecommitdiff
path: root/multimedia/mjpegtools/Makefile
diff options
context:
space:
mode:
authorghen <ghen>2005-12-13 12:19:37 +0000
committerghen <ghen>2005-12-13 12:19:37 +0000
commit85225baccaf6d44161394849c48858e3cd73fd3e (patch)
tree0a5e60f943ca00ee1fcf9a3b47bb2eb06bfcd724 /multimedia/mjpegtools/Makefile
parent1a9c470e8a3f0306f83b98440bf2b3a19eb9a890 (diff)
downloadpkgsrc-85225baccaf6d44161394849c48858e3cd73fd3e.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/mjpegtools/Makefile')
-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"