Skip to content

Commit

Permalink
multimedia/tstools: add port
Browse files Browse the repository at this point in the history
  • Loading branch information
rozhuk-im committed Jun 17, 2024
1 parent 2e27733 commit a324840
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 0 deletions.
33 changes: 33 additions & 0 deletions multimedia/tstools/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
PORTNAME= tstools
DISTVERSION= 1.13_20151030
CATEGORIES= multimedia

MAINTAINER= [email protected]
COMMENT= MPEG transport, program, and elementary stream tools
WWW= https://github.com/kynesim/tstools

LICENSE= MPL11

USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= kynesim
GH_TAGNAME= db1f79f409818fa0476ecf8593079a7ca3dbafd2
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -fPIC -DTSTOOLS_VERSION=${DISTVERSION}"

PORTDOCS= *

OPTIONS_DEFINE= DOCS

post-patch:
@${REINPLACE_CMD} -e 's| -lc -lm||' \
${WRKSRC}/Makefile

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/lib/*.a ${STAGEDIR}${PREFIX}/lib

do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/mdoc/* ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions multimedia/tstools/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1687633926
SHA256 (kynesim-tstools-1.13_20151030-db1f79f409818fa0476ecf8593079a7ca3dbafd2_GH0.tar.gz) = f204229016c9deafcc75fe602c390339878312126134edbfcebf239e093dc4ff
SIZE (kynesim-tstools-1.13_20151030-db1f79f409818fa0476ecf8593079a7ca3dbafd2_GH0.tar.gz) = 472564
21 changes: 21 additions & 0 deletions multimedia/tstools/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MPEG TS/PS/ES Transport, Program and Elementary Stream tools

This is a set of cross-platform command line tools for working with
MPEG data. The emphasis is on 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.

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)
43 changes: 43 additions & 0 deletions multimedia/tstools/pkg-plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
bin/es2ts
bin/esdots
bin/esfilter
bin/esmerge
bin/esreport
bin/esreverse
bin/m2ts2ts
bin/pcapreport
bin/ps2ts
bin/psdots
bin/psreport
bin/rtp2264
bin/stream_type
bin/ts2es
bin/ts_packet_insert
bin/tsdvbsub
bin/tsfilter
bin/tsinfo
bin/tsplay
bin/tsreport
bin/tsserve
lib/libtstools.a
%%PORTDOCS%%%%DOCSDIR%%/es2ts.1
%%PORTDOCS%%%%DOCSDIR%%/esdots.1
%%PORTDOCS%%%%DOCSDIR%%/esfilter.1
%%PORTDOCS%%%%DOCSDIR%%/esmerge.1
%%PORTDOCS%%%%DOCSDIR%%/esreport.1
%%PORTDOCS%%%%DOCSDIR%%/esreverse.1
%%PORTDOCS%%%%DOCSDIR%%/m2ts2ts.1
%%PORTDOCS%%%%DOCSDIR%%/pcapreport.1
%%PORTDOCS%%%%DOCSDIR%%/ps2ts.1
%%PORTDOCS%%%%DOCSDIR%%/psdots.1
%%PORTDOCS%%%%DOCSDIR%%/psreport.1
%%PORTDOCS%%%%DOCSDIR%%/rtp2264.1
%%PORTDOCS%%%%DOCSDIR%%/stream_type.1
%%PORTDOCS%%%%DOCSDIR%%/ts2es.1
%%PORTDOCS%%%%DOCSDIR%%/ts_packet_insert.1
%%PORTDOCS%%%%DOCSDIR%%/tsdvbsub.1
%%PORTDOCS%%%%DOCSDIR%%/tsfilter.1
%%PORTDOCS%%%%DOCSDIR%%/tsinfo.1
%%PORTDOCS%%%%DOCSDIR%%/tsplay.1
%%PORTDOCS%%%%DOCSDIR%%/tsreport.1
%%PORTDOCS%%%%DOCSDIR%%/tsserve.1

0 comments on commit a324840

Please sign in to comment.