diff options
Diffstat (limited to 'multimedia/tstools')
-rw-r--r-- | multimedia/tstools/README | 25 | ||||
-rw-r--r-- | multimedia/tstools/tstools.SlackBuild | 22 |
2 files changed, 30 insertions, 17 deletions
diff --git a/multimedia/tstools/README b/multimedia/tstools/README index bbfee693d2..6b5c1fcbce 100644 --- a/multimedia/tstools/README +++ b/multimedia/tstools/README @@ -1,17 +1,20 @@ TStools (Command line tools for working with MPEG data) -TStools are relatively simple tools which concentrate on MPEG (H.264 and H.262) -data packaged according to H.222 (i.e., TS or PS), with a particular interest in -checking for conformance. +TStools are relatively simple tools which concentrate on MPEG (H.264 +and H.262) data packaged according to H.222 (i.e., TS or PS), with a +particular interest in checking for conformance. -Transport Stream (TS) is typically used for distribution of cable and satellite -data. Program Stream (PS) is typically used to store data on DVDs. +Transport Stream (TS) is typically used for distribution of cable and +satellite data. Program Stream (PS) is typically used to store data +on DVDs. The tools are focussed on: - * Quick reporting of useful data (tsinfo, stream_type) - * Giving a quick overview of the entities in the stream (esdots, psdots) - * Reporting on TS packets (tsreport) or ES units/frames/fields (esreport) - * Simple manipulation of stream data (es2ts, esfilter, esreverse, esmerge, - ts2es) - * Streaming of data, possibly with introduced errors (tsplay) +* Quick reporting of useful data (tsinfo, stream_type) +* Giving a quick overview of the entities in the stream (esdots, + psdots) +* Reporting on TS packets (tsreport) or ES units/frames/fields + (esreport) +* Simple manipulation of stream data (es2ts, esfilter, esreverse, + esmerge, ts2es) +* Streaming of data, possibly with introduced errors (tsplay) diff --git a/multimedia/tstools/tstools.SlackBuild b/multimedia/tstools/tstools.SlackBuild index 25859984bb..af338029ce 100644 --- a/multimedia/tstools/tstools.SlackBuild +++ b/multimedia/tstools/tstools.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for tstools @@ -22,26 +22,36 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=tstools VERSION=${VERSION:-20151030_db1f79f} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -93,4 +103,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |