From c00c0628963f4ce2c25e6b468efb7fdd1bce7c66 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Mon, 13 Jul 2020 08:42:40 +1000 Subject: [PATCH] New package: lightspark-0.8.3 --- common/shlibs | 2 ++ srcpkgs/lightspark/files/avmplus.patch | 22 +++++++++++++++++++ srcpkgs/lightspark/template | 29 ++++++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 srcpkgs/lightspark/files/avmplus.patch create mode 100644 srcpkgs/lightspark/template diff --git a/common/shlibs b/common/shlibs index 26a6259f6d2..5e457439399 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4040,3 +4040,5 @@ libndr-samba4.so samba-libs-4.13.2_1 libsmb-transport-samba4.so samba-libs-4.13.2_1 libutil-cmdline-samba4.so samba-libs-4.13.2_1 libwinbind-client-samba4.so samba-libs-4.13.2_1 +libdolphinvcs.so.5 dolphin-plugins-20.04.2_1 +liblightspark.so.0.8 lightspark-0.8.3_1 diff --git a/srcpkgs/lightspark/files/avmplus.patch b/srcpkgs/lightspark/files/avmplus.patch new file mode 100644 index 00000000000..da3987df097 --- /dev/null +++ b/srcpkgs/lightspark/files/avmplus.patch @@ -0,0 +1,22 @@ +--- AVMPI/MMgcPortUnix.cpp 2020-07-13 19:29:31.368000000 +1000 ++++ AVMPI/MMgcPortUnix.cpp 2020-07-13 19:30:14.934000000 +1000 +@@ -46,7 +46,7 @@ + #define FLUSHWIN() + #endif + +-#if defined linux && !defined VMCFG_MIPS && !defined VMCFG_ARM && !defined ANDROID ++#if defined linux && defined __GLIBC__ && !defined VMCFG_MIPS && !defined VMCFG_ARM && !defined ANDROID + #include + #define HAVE_BACKTRACE + #endif +--- core/exec.cpp 2020-07-13 19:31:28.076000000 +1000 ++++ core/exec.cpp 2020-07-13 19:31:36.176000000 +1000 +@@ -806,7 +806,7 @@ + failure: + AvmCore* core = env->core(); + env->toplevel()->throwTypeError(kCheckTypeFailedError, core->atomToErrorString(atom), core->toErrorString(t)); +- return unreachableAtom; ++ return 0; + } + + // Coerce an argument to an expected type, but keep it represented as Atom. diff --git a/srcpkgs/lightspark/template b/srcpkgs/lightspark/template new file mode 100644 index 00000000000..25064c8f787 --- /dev/null +++ b/srcpkgs/lightspark/template @@ -0,0 +1,29 @@ +# Template file for 'lightspark' +pkgname=lightspark +version=0.8.3 +revision=1 +build_style=cmake +hostmakedepends="nasm pkg-config gettext" +makedepends="MesaLib-devel glew-devel libcurl-devel ffmpeg-devel pcre-devel + librtmp-devel cairo-devel SDL2-devel SDL2_mixer-devel libjpeg-turbo-devel + pango-devel liblzma-devel glibmm-devel" +short_desc="Open source flash player implementation" +maintainer="fosslinux " +license="LGPL-3.0-or-later" +homepage="https://lightspark.github.io" +distfiles="https://github.com/lightspark/lightspark/archive/${version}.tar.gz" +checksum=5276818e6d78ddf12a9304bc8c2ceeec0ca0759a99d56a4521e1fdc06893b1bd + +if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + makedepends+=" libatomic-devel" + configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic" +fi + +post_extract() { + # Remove build script that we are using for the CMake directory + rm build +} + +do_check() { + : # Requires a dumb piece of proprietary software that isn't even avaliable +}