Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: lightspark #23555

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions common/shlibs
Original file line number Diff line number Diff line change
Expand Up @@ -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
22 changes: 22 additions & 0 deletions srcpkgs/lightspark/files/avmplus.patch
Original file line number Diff line number Diff line change
@@ -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 <execinfo.h>
#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.
29 changes: 29 additions & 0 deletions srcpkgs/lightspark/template
Original file line number Diff line number Diff line change
@@ -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 <fosslinux@aussies.space>"
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
}