Index: Makefile
===================================================================
--- Makefile (nonexistent)
+++ Makefile (revision 5)
@@ -0,0 +1,270 @@
+
+COMPONENT_TARGETS = $(HARDWARE_S824L)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
+
+NEED_ABS_PATH = true
+COMPONENT_IS_3PP = true
+
+CREATE_PPC32_PACKAGE = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES = sources/packages/x/gst-plugins-bad
+
+REQUIRES = X11/libs/gst-plugins-bad/1.22.0
+REQUIRES += X11/libs/gst-plugins-base/1.22.0-ppc32
+REQUIRES += X11/libs/gtk+3/3.24.37-ppc32
+REQUIRES += X11/libs/cairo/1.17.8-ppc32
+REQUIRES += X11/libs/pango/1.50.12-ppc32
+REQUIRES += X11/libs/libva/2.17.0-ppc32
+REQUIRES += X11/libs/libxkbcommon/1.5.0-ppc32
+REQUIRES += X11/libs/vulkan/vulkan-loader/1.3.239.0-ppc32
+REQUIRES += dev/orc/0.4.33.1-ppc32
+REQUIRES += libs/libgudev/236-ppc32
+REQUIRES += libs/sbc/2.0-ppc32
+REQUIRES += libs/libwebp/1.2.2-ppc32
+REQUIRES += libs/libxml2/2.9.9-ppc32
+REQUIRES += libs/libusb/1.0.24-ppc32
+REQUIRES += media/gsm/1.0.22-ppc32
+REQUIRES += media/libass/0.17.0-ppc32
+REQUIRES += media/libavtp/0.2.0-ppc32
+REQUIRES += media/libdc1394/2.2.6-ppc32
+REQUIRES += media/libmodplug/0.8.9.0-ppc32
+REQUIRES += media/openh264/2.3.1-ppc32
+REQUIRES += media/openjpeg2/2.5.0-ppc32
+REQUIRES += media/opus/1.3.1-ppc32
+REQUIRES += media/rtmpdump/2.4.1-ppc32
+REQUIRES += media/libsndfile/1.0.28-ppc32
+REQUIRES += media/vo-aacenc/0.1.3-ppc32
+REQUIRES += media/vo-amrwbenc/0.1.3-ppc32
+REQUIRES += net/curl/7.75.0-ppc32
+REQUIRES += net/nettle/3.7.1-ppc32
+REQUIRES += app/bzip2/1.0.8-ppc32
+REQUIRES += Wayland/wayland/1.21.0-ppc32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version = 1.22.0
+tar_xz_archive = $(SRC_PACKAGE_PATH)/packages/x/gst-plugins-bad/gst-plugins-bad-$(version).tar.xz
+SRC_ARCHIVE = $(tar_xz_archive)
+SRC_DIR = $(TARGET_BUILD_DIR)/gst-plugins-bad-$(version)
+src_dir_name = gst-plugins-bad-$(version)
+doc_dir_name = gst-plugins-bad-$(version)
+src_done = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir = $(TARGET_BUILD_DIR)/build
+build_target = $(TARGET_BUILD_DIR)/.build_done
+install_target = $(TARGET_BUILD_DIR)/.install_done
+
+cross_file = $(TARGET_BUILD_DIR)/$(TARGET32)-cross
+
+
+####### Targets
+
+PKG_GROUP = xlibs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GSTP_BAD_32_PKG_NAME = gst-plugins-bad-x32
+GSTP_BAD_32_PKG_VERSION = 1.22.0
+GSTP_BAD_32_PKG_ARCH = $(PKGARCH)
+GSTP_BAD_32_PKG_DISTRO_NAME = $(DISTRO_NAME)
+GSTP_BAD_32_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
+GSTP_BAD_32_PKG_GROUP = $(PKG_GROUP)
+### |---handy-ruler-------------------------------|
+GSTP_BAD_32_PKG_SHORT_DESCRIPTION = bad set of GStreamer plugins
+GSTP_BAD_32_PKG_URL = $(BUG_URL)
+GSTP_BAD_32_PKG_LICENSE = LGPLv2.1
+GSTP_BAD_32_PKG_DESCRIPTION_FILE = $(TARGET_BUILD_DIR)/$(GSTP_BAD_32_PKG_NAME)-pkg-description
+GSTP_BAD_32_PKG_DESCRIPTION_FILE_IN = $(GSTP_BAD_32_PKG_NAME)-pkg-description.in
+GSTP_BAD_32_PKG_INSTALL_SCRIPT = $(GSTP_BAD_32_PKG_NAME)-pkg-install.sh
+
+GSTP_BAD_32_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GSTP_BAD_32_PKG_NAME)-package
+
+pkg_basename = $(GSTP_BAD_32_PKG_NAME)-$(GSTP_BAD_32_PKG_VERSION)-$(GSTP_BAD_32_PKG_ARCH)-$(GSTP_BAD_32_PKG_DISTRO_NAME)-$(GSTP_BAD_32_PKG_DISTRO_VERSION)
+
+pkg_archive = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature = $(call sign-name,$(pkg_archive))
+pkg_description = $(call desc-name,$(pkg_archive))
+products = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS = $(build_target)
+BUILD_TARGETS += $(install_target)
+
+PRODUCT_TARGETS = $(products)
+
+ROOTFS_TARGETS = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(GSTP_BAD_32_PKG)
+
+
+cpu_name = ppc
+endian = big
+
+
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --default-library=both
+else
+extra_configure_switches += --default-library=shared
+endif
+
+
+extra_configure_switches += -Dgst_play_tests=false
+extra_configure_switches += -Dgobject-cast-checks=disabled
+extra_configure_switches += -Dglib-asserts=disabled
+extra_configure_switches += -Dglib-checks=disabled
+extra_configure_switches += -Dextra-checks=disabled
+extra_configure_switches += -Dexamples=enabled
+
+extra_configure_switches += -Dorc=enabled
+extra_configure_switches += -Dwayland=enabled
+extra_configure_switches += -Dx11=enabled
+
+extra_configure_switches += -Ddvbsuboverlay=enabled
+extra_configure_switches += -Ddvdspu=disabled
+extra_configure_switches += -Dsiren=disabled
+
+extra_configure_switches += -Dopencv=disabled
+extra_configure_switches += -Dfluidsynth=disabled
+extra_configure_switches += -Dopenal=disabled
+extra_configure_switches += -Dqroverlay=disabled
+extra_configure_switches += -Dneon=disabled
+extra_configure_switches += -Dopenexr=disabled
+
+extra_configure_switches += -Dintrospection=disabled
+
+
+CFLAGS += -Wno-deprecated-declarations -Wno-dangling-pointer -Wno-maybe-uninitialized
+CFLAGS += -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-function
+
+CFLAGS += -I$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/glib-2.0/include
+
+TARGET_BIN_RPATH = /lib$(MULTILIB_PPC32_SUFFIX):/usr/lib$(MULTILIB_PPC32_SUFFIX)
+TARGET_LIB_RPATH = /lib$(MULTILIB_PPC32_SUFFIX):/usr/lib$(MULTILIB_PPC32_SUFFIX):/usr/lib/../lib$(MULTILIB_PPC32_SUFFIX)
+
+LDFLAGS += -Wl,-rpath,$(TARGET_BIN_RPATH)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+ $(UNPACK_SRC_ARCHIVE)
+ $(APPLY_PATCHES)
+ @touch $@
+
+$(build_target): $(src_done)
+ @mkdir -p $(build_dir)
+ @echo "" > $(cross_file)
+ @echo "[build_machine]" >> $(cross_file)
+ @echo "system = '$(shell uname -s | tr 'L' 'l')'" >> $(cross_file)
+ @echo "cpu_family = '$(shell uname -m)'" >> $(cross_file)
+ @echo "cpu = '$(shell uname -m)'" >> $(cross_file)
+ @echo "endian = '$(shell lscpu | grep Endian | tr -s ' ' | cut -f3 -d' ' | tr 'L' 'l')'" >> $(cross_file)
+ @echo "" >> $(cross_file)
+ @echo "[host_machine]" >> $(cross_file)
+ @echo "system = 'linux'" >> $(cross_file)
+ @echo "cpu_family = '$(cpu_name)'" >> $(cross_file)
+ @echo "cpu = '$(cpu_name)'" >> $(cross_file)
+ @echo "endian = '$(endian)'" >> $(cross_file)
+ @echo "" >> $(cross_file)
+ @echo "[target_machine]" >> $(cross_file)
+ @echo "system = 'linux'" >> $(cross_file)
+ @echo "cpu_family = '$(cpu_name)'" >> $(cross_file)
+ @echo "cpu = '$(cpu_name)'" >> $(cross_file)
+ @echo "endian = '$(endian)'" >> $(cross_file)
+ @echo "" >> $(cross_file)
+ @echo "[binaries]" >> $(cross_file)
+ @echo "c = '$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc'" >> $(cross_file)
+ @echo "cpp = '$(TOOLCHAIN_PATH)/bin/$(TARGET)-g++'" >> $(cross_file)
+ @echo "ar = '$(AR)'" >> $(cross_file)
+ @echo "strip = '$(STRIP)'" >> $(cross_file)
+ @echo "pkgconfig = 'pkg-config'" >> $(cross_file)
+ @echo "" >> $(cross_file)
+ @meson setup \
+ --prefix=/usr \
+ --libdir=lib$(MULTILIB_PPC32_SUFFIX) \
+ --libexecdir=/usr/libexec/32 \
+ --bindir=/usr/bin/32 \
+ --sbindir=/usr/sbin/32 \
+ --includedir=/usr/include \
+ --datadir=/usr/share \
+ --mandir=/usr/share/man \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --buildtype=release \
+ -Dc_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) $(CFLAGS)" | tr -s ' '`" \
+ -Dc_link_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) -m32 $(LDFLAGS)" | tr -s ' '`" \
+ -Dcpp_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) $(CFLAGS)" | tr -s ' '`" \
+ -Dcpp_link_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) -m32 $(LDFLAGS)" | tr -s ' '`" \
+ -Dtests=disabled \
+ $(extra_configure_switches) \
+ --cross-file=$(cross_file) $(SRC_DIR) $(build_dir)
+ @cd $(build_dir) && $(BUILD_ENVIRONMENT) ninja -v
+ @touch $@
+
+$(install_target): $(build_target)
+ @mkdir -p $(GSTP_BAD_32_PKG)
+ @cd $(build_dir) && $(env_sysroot) ninja install
+ @rm -rf $(GSTP_BAD_32_PKG)/usr/include
+ @rm -rf $(GSTP_BAD_32_PKG)/usr/share
+ # ======= Install the same to $(TARGET_DEST_DIR) =======
+ $(call install-into-devenv, $(GSTP_BAD_32_PKG))
+ # ======= tune pkg-config *.pc search path to the target destination for development =======
+ @( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/pkgconfig ; \
+ sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" gstreamer-bad-audio-?.?.pc gstreamer-codecparsers-?.?.pc \
+ gstreamer-cuda-?.?.pc gstreamer-insertbin-?.?.pc \
+ gstreamer-mpegts-?.?.pc gstreamer-photography-?.?.pc \
+ gstreamer-play-?.?.pc gstreamer-player-?.?.pc \
+ gstreamer-plugins-bad-?.?.pc gstreamer-sctp-?.?.pc \
+ gstreamer-transcoder-?.?.pc gstreamer-va-?.?.pc \
+ gstreamer-vulkan-?.?.pc gstreamer-vulkan-wayland-?.?.pc \
+ gstreamer-vulkan-xcb-?.?.pc gstreamer-wayland-?.?.pc \
+ gstreamer-webrtc-?.?.pc ; \
+ )
+ # ======= Strip binaries =======
+ @( cd $(GSTP_BAD_32_PKG); \
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+ )
+ifeq ($(__ENABLE_STATIC__),yes)
+ @( cd $(GSTP_BAD_32_PKG) ; \
+ find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+ )
+endif
+ @touch $@
+
+$(GSTP_BAD_32_PKG_DESCRIPTION_FILE): $(GSTP_BAD_32_PKG_DESCRIPTION_FILE_IN)
+ @cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature) : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(GSTP_BAD_32_PKG_DESCRIPTION_FILE) $(GSTP_BAD_32_PKG_INSTALL_SCRIPT)
+ @cp $(GSTP_BAD_32_PKG_DESCRIPTION_FILE) $(GSTP_BAD_32_PKG)/.DESCRIPTION
+ @cp $(GSTP_BAD_32_PKG_INSTALL_SCRIPT) $(GSTP_BAD_32_PKG)/.INSTALL
+ @$(BUILD_PKG_REQUIRES) $(GSTP_BAD_32_PKG)/.REQUIRES
+ @echo "pkgname=$(GSTP_BAD_32_PKG_NAME)" > $(GSTP_BAD_32_PKG)/.PKGINFO ; \
+ echo "pkgver=$(GSTP_BAD_32_PKG_VERSION)" >> $(GSTP_BAD_32_PKG)/.PKGINFO ; \
+ echo "arch=$(GSTP_BAD_32_PKG_ARCH)" >> $(GSTP_BAD_32_PKG)/.PKGINFO ; \
+ echo "distroname=$(GSTP_BAD_32_PKG_DISTRO_NAME)" >> $(GSTP_BAD_32_PKG)/.PKGINFO ; \
+ echo "distrover=$(GSTP_BAD_32_PKG_DISTRO_VERSION)" >> $(GSTP_BAD_32_PKG)/.PKGINFO ; \
+ echo "group=$(GSTP_BAD_32_PKG_GROUP)" >> $(GSTP_BAD_32_PKG)/.PKGINFO ; \
+ echo "short_description=\"$(GSTP_BAD_32_PKG_SHORT_DESCRIPTION)\"" >> $(GSTP_BAD_32_PKG)/.PKGINFO ; \
+ echo "url=$(GSTP_BAD_32_PKG_URL)" >> $(GSTP_BAD_32_PKG)/.PKGINFO ; \
+ echo "license=$(GSTP_BAD_32_PKG_LICENSE)" >> $(GSTP_BAD_32_PKG)/.PKGINFO
+ @$(PSEUDO) sh -c "cd $(GSTP_BAD_32_PKG) && \
+ chown -R root:root . && \
+ $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: PATCHES
===================================================================
Index: gst-plugins-bad-x32-pkg-description.in
===================================================================
--- gst-plugins-bad-x32-pkg-description.in (nonexistent)
+++ gst-plugins-bad-x32-pkg-description.in (revision 5)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+gst-plugins-bad-x32: gst-plugins-bad-x32 @VERSION@ (bad set of GStreamer plugins)
+gst-plugins-bad-x32:
+gst-plugins-bad-x32: GStreamer Bad Plug-ins is a set of plug-ins that aren't tested
+gst-plugins-bad-x32: well enough, or the code is not of good enough quality. They might
+gst-plugins-bad-x32: be close to being good quality, but they're missing something - be
+gst-plugins-bad-x32: it a good code review, some documentation, a set of tests, a real
+gst-plugins-bad-x32: live maintainer, or some actual wide use.
+gst-plugins-bad-x32:
+gst-plugins-bad-x32: gst-plugins-bad packages the bad plugins with licenses that are
+gst-plugins-bad-x32: free enough to ship.
+gst-plugins-bad-x32:
Index: gst-plugins-bad-x32-pkg-install.sh
===================================================================
--- gst-plugins-bad-x32-pkg-install.sh (nonexistent)
+++ gst-plugins-bad-x32-pkg-install.sh (revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1: the new package version
+pre_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+post_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_update() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_update() {
+ post_install
+}
+
+# arg 1: the old package version
+pre_remove() {
+ /bin/true
+}
+
+# arg 1: the old package version
+post_remove() {
+ /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*
Property changes on: gst-plugins-bad-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: .
===================================================================
--- . (nonexistent)
+++ . (revision 5)
Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~