tstools: new package
PATCH 1/1 tstools: new package
--- package/multimedia/Config.in | 1 + package/multimedia/tstools/Config.in | 17 +++++++++ ...tools-1_11-build-get-along-with-buildroot.patch | 40 ++++++++++++++++++++++ package/multimedia/tstools/tstools.mk | 27 +++++++++++++++ 4 files changed, 85 insertions(+) create mode 100644 package/multimedia/tstools/Config.in create mode 100644 package/multimedia/tstools/tstools-1_11-build-get-along-with-buildroot.patch create mode 100644 package/multimedia/tstools/tstools.mk
package/multimedia/Config.in +1 -0
@@ -37,6 +37,7 @@ source "package/multimedia/on2-8170-libs/Config.in" source "package/opus-tools/Config.in" source "package/multimedia/pulseaudio/Config.in" source "package/multimedia/tidsp-binaries/Config.in" +source "package/multimedia/tstools/Config.in" source "package/multimedia/vorbis-tools/Config.in" source "package/multimedia/wavpack/Config.in" source "package/yavta/Config.in"
package/multimedia/tstools/Config.in new file +17 -0
@@ -0,0 +1,17 @@ +config BR2_PACKAGE_TSTOOLS + bool "tstools" + help + + 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. + + http://tstools.berlios.de/
package/multimedia/tstools/tstools-1_11-build-get-along-with-buildroot.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 44f80bce0914d4d9c5e7486c7cdb521ba637b324 Mon Sep 17 00:00:00 2001 +From: Tzu-Jung Lee <[email protected]> +Date: Fri, 19 Jul 2013 22:45:18 +0800 +Subject: [PATCH] build: get along with buildroot + +Signed-off-by: Tzu-Jung Lee <[email protected]> +--- + Makefile | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/Makefile b/Makefile +index 2c3568e..98bb994 100644 +--- a/Makefile ++++ b/Makefile +@@ -34,12 +34,6 @@ SHELL = /bin/sh + .SUFFIXES: + .SUFFIXES: .c .o + +-ifdef CROSS_COMPILE +-CC = $(CROSS_COMPILE)gcc +-else +-CC = gcc +-endif +- + # Use WARN=1 periodically to get too many warnings... + ifdef WARN + WARNING_FLAGS = -Wall -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wconversion -Wmissing-prototypes -Wmissing-declarations -Wunreachable-code -Winline +@@ -452,3 +446,9 @@ test_lists: $(BINDIR)/test_nal_unit_list $(BINDIR)/test_es_unit_list + @echo +++ Testing ES unit lists + $(BINDIR)/test_es_unit_list + @echo +++ Test succeeded ++ ++.PHONY: install ++install: ++ @for i in $(PROGS); do \ ++ cp -f $$i $(DESTDIR)/usr/bin/; \ ++ done +-- +1.8.3.2 +
package/multimedia/tstools/tstools.mk new file +27 -0
@@ -0,0 +1,27 @@ +############################################################# +# +# tstools +# +############################################################# + +TSTOOLS_VERSION = 1_11 +TSTOOLS_SITE = https://tstools.googlecode.com/files/ +TSTOOLS_SOURCE = tstools-$(TSTOOLS_VERSION).tgz +TSTOOLS_DEPENDENCIES = libpcap +TSTOOLS_INSTALL_STAGING = NO +TSTOOLS_INSTALL_IMAGES = NO +TSTOOLS_INSTALL_TARGET = YES + +define TSTOOLS_INSTALL_TARGET_CMDS + $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install +endef + +define TSTOOLS_BUILD_CMDS + $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define TSTOOLS_CLEAN_CMDS + $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) clean +endef + +$(eval $(generic-package))
Signature · 1 line
1.8.3.2
PATCH 1/1 tstools: new package
Dear Tzu-Jung Lee,
I've committed your patch, after making a fairly significant number of changes to it. See below my comments, that should be useful for your next submissions.
Quoted 6 lines · Tzu-Jung Lee
Signed-off-by Tzu-Jung Lee <[email protected]>--- package/multimedia/Config.in | 1 + package/multimedia/tstools/Config.in | 17 +++++++++ ...tools-1_11-build-get-along-with-buildroot.patch | 40 ++++++++++++++++++++++ package/multimedia/tstools/tstools.mk | 27 +++++++++++++++
Peter now prefers to have all packages directly under package/, so I've moved tstools there as well.
package/multimedia/tstools/Config.in line 2
Quoted 8 lines
package/multimedia/tstools/Config.in new file +2
-0@@ -0,0 +1,17 @@ +config BR2_PACKAGE_TSTOOLS + bool "tstools"
tstools wasn't building properly without largefile support, so I had to add a BR2_LARGEFILE dependency here.
package/multimedia/tstools/Config.in line 4
Quoted 2 lines
package/multimedia/tstools/Config.in new file +2
-0+ help +
This empty line shouldn't be there.
package/multimedia/tstools/Config.in line 17
Quoted 13 lines
package/multimedia/tstools/Config.in new file +13
-0+ 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. + + http://tstools.berlios.de/
The help text should be intended by one tab + two spaces.
package/multimedia/tstools/tstools-1_11-build-get-along-with-buildroot.patch
Quoted 1 line
package/multimedia/tstools/tstools-1_11-build-get-along-with-buildroot.patch +0
-0
Patches shouldn't contain the version of the package in their name.
package/multimedia/tstools/tstools.mk line 5
Quoted 11 lines
package/multimedia/tstools/tstools.mk new file +5
-0@@ -0,0 +1,27 @@ +############################################################# +# +# tstools +# +#############################################################
80 # are needed nowadays.
package/multimedia/tstools/tstools.mk line 9
Quoted 4 lines
package/multimedia/tstools/tstools.mk new file +4
-0+ +TSTOOLS_VERSION = 1_11 +TSTOOLS_SITE = https://tstools.googlecode.com/files/ +TSTOOLS_SOURCE = tstools-$(TSTOOLS_VERSION).tgz
Spacing should be done with spaces and not tabs.
package/multimedia/tstools/tstools.mk line 10
Quoted 1 line
package/multimedia/tstools/tstools.mk new file +1
-0+TSTOOLS_DEPENDENCIES = libpcap
I've tested the build, and libpcap was apparently not needed. Didn't you confuse that with some pcap.c/pcap.h source files?
package/multimedia/tstools/tstools.mk line 13
Quoted 3 lines
package/multimedia/tstools/tstools.mk new file +3
-0+TSTOOLS_INSTALL_STAGING = NO +TSTOOLS_INSTALL_IMAGES = NO +TSTOOLS_INSTALL_TARGET = YES
Not needed, that's the default.
TSTOOLS_LICENSE was missing.
package/multimedia/tstools/tstools.mk line 17
Quoted 4 lines
package/multimedia/tstools/tstools.mk new file +4
-0+ +define TSTOOLS_INSTALL_TARGET_CMDS + $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install +endef
Indentation should be done with one tab, and the build command should be before the install command.
package/multimedia/tstools/tstools.mk line 25
Quoted 8 lines
package/multimedia/tstools/tstools.mk new file +8
-0+ +define TSTOOLS_BUILD_CMDS + $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define TSTOOLS_CLEAN_CMDS + $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) clean +endef
I've removed the clean command, since we're considering getting rid of it, and most of our packages do not implement it anyway.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/1 tstools: fix build failure in parallel (-j) build
This patch fix the nightly build failure caused by tstools. It is back ported from recent upstream commit
0e8463ea1dc55f566a88bb3df29cf3d5f23cc326
Once the upstream update the download page with more recent source tarball, this will no be ino longer needed.
---
...stools-001-build-get-along-with-buildroot.patch | 40 +++ ...ools-002-build-fix-parallel-build-failure.patch | 331 +++++++++++++++++++++ .../tstools-build-get-along-with-buildroot.patch | 40 --- 3 files changed, 371 insertions(+), 40 deletions(-) create mode 100644 package/tstools/tstools-001-build-get-along-with-buildroot.patch create mode 100644 package/tstools/tstools-002-build-fix-parallel-build-failure.patch delete mode 100644 package/tstools/tstools-build-get-along-with-buildroot.patch
package/tstools/tstools-001-build-get-along-with-buildroot.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 44f80bce0914d4d9c5e7486c7cdb521ba637b324 Mon Sep 17 00:00:00 2001 +From: Tzu-Jung Lee <[email protected]> +Date: Fri, 19 Jul 2013 22:45:18 +0800 +Subject: [PATCH] build: get along with buildroot + +Signed-off-by: Tzu-Jung Lee <[email protected]> +--- + Makefile | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/Makefile b/Makefile +index 2c3568e..98bb994 100644 +--- a/Makefile ++++ b/Makefile +@@ -34,12 +34,6 @@ SHELL = /bin/sh + .SUFFIXES: + .SUFFIXES: .c .o + +-ifdef CROSS_COMPILE +-CC = $(CROSS_COMPILE)gcc +-else +-CC = gcc +-endif +- + # Use WARN=1 periodically to get too many warnings... + ifdef WARN + WARNING_FLAGS = -Wall -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wconversion -Wmissing-prototypes -Wmissing-declarations -Wunreachable-code -Winline +@@ -452,3 +446,9 @@ test_lists: $(BINDIR)/test_nal_unit_list $(BINDIR)/test_es_unit_list + @echo +++ Testing ES unit lists + $(BINDIR)/test_es_unit_list + @echo +++ Test succeeded ++ ++.PHONY: install ++install: ++ @for i in $(PROGS); do \ ++ cp -f $$i $(DESTDIR)/usr/bin/; \ ++ done +-- +1.8.3.2 +
package/tstools/tstools-002-build-fix-parallel-build-failure.patch new file +331 -0
331 lines not on this page · raw message
package/tstools/tstools-build-get-along-with-buildroot.patch deleted +0 -40
@@ -1,40 +0,0 @@ -From 44f80bce0914d4d9c5e7486c7cdb521ba637b324 Mon Sep 17 00:00:00 2001 -From: Tzu-Jung Lee <[email protected]> -Date: Fri, 19 Jul 2013 22:45:18 +0800 -Subject: [PATCH] build: get along with buildroot - -Signed-off-by: Tzu-Jung Lee <[email protected]> ---- - Makefile | 12 ++++++------ - 1 file changed, 6 insertions(+), 6 deletions(-) - -diff --git a/Makefile b/Makefile -index 2c3568e..98bb994 100644 ---- a/Makefile -+++ b/Makefile -@@ -34,12 +34,6 @@ SHELL = /bin/sh - .SUFFIXES: - .SUFFIXES: .c .o - --ifdef CROSS_COMPILE --CC = $(CROSS_COMPILE)gcc --else --CC = gcc --endif -- - # Use WARN=1 periodically to get too many warnings... - ifdef WARN - WARNING_FLAGS = -Wall -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wconversion -Wmissing-prototypes -Wmissing-declarations -Wunreachable-code -Winline -@@ -452,3 +446,9 @@ test_lists: $(BINDIR)/test_nal_unit_list $(BINDIR)/test_es_unit_list - @echo +++ Testing ES unit lists - $(BINDIR)/test_es_unit_list - @echo +++ Test succeeded -+ -+.PHONY: install -+install: -+ @for i in $(PROGS); do \ -+ cp -f $$i $(DESTDIR)/usr/bin/; \ -+ done --- -1.8.3.2 -
Signature · 1 line
1.8.3.2