diff --git a/emulators/lightspark/Makefile b/emulators/lightspark/Makefile new file mode 100644 index 000000000000..70f515c7f963 --- /dev/null +++ b/emulators/lightspark/Makefile @@ -0,0 +1,27 @@ +PORTNAME= lightspark +DISTVERSION= 0.8.6.1 +CATEGORIES= emulators + +MAINTAINER= dinoex@FreeBSD.org +COMMENT= Alternative Flash Player implementation +WWW= http://lightspark.github.io/ + +LICENSE= GPLv3 + +BUILD_DEPENDS= nasm:devel/nasm +LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \ + libcurl.so:ftp/curl \ + libfreetype.so:print/freetype2 \ + libSDL2_mixer-2.0.so:audio/sdl2_mixer + +USES= cmake gnome jpeg localbase:ldflags pkgconfig sdl +USE_GITHUB= yes +USE_GL= gl glew +USE_GNOME= cairo glib20 pango +USE_SDL= mixer2 sdl2 + +USE_GCC= yes + +CMAKE_OFF= ENABLE_RTMP + +.include diff --git a/emulators/lightspark/distinfo b/emulators/lightspark/distinfo new file mode 100644 index 000000000000..d87c6da7d062 --- /dev/null +++ b/emulators/lightspark/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1679250563 +SHA256 (lightspark-lightspark-0.8.6.1_GH0.tar.gz) = cd7fe85aefa1688dd2a16c18cc3e60fcba7b81b96a9aa3abe5841f5238b11c65 +SIZE (lightspark-lightspark-0.8.6.1_GH0.tar.gz) = 5419194 diff --git a/emulators/lightspark/files/patch-src_backends_urlutils.cpp b/emulators/lightspark/files/patch-src_backends_urlutils.cpp new file mode 100644 index 000000000000..cd2e23835f23 --- /dev/null +++ b/emulators/lightspark/files/patch-src_backends_urlutils.cpp @@ -0,0 +1,14 @@ +--- src/backends/urlutils.cpp.orig 2023-03-19 19:00:45 UTC ++++ src/backends/urlutils.cpp +@@ -33,7 +33,11 @@ + #ifdef __MINGW32__ + #include + #else ++#if defined(__FreeBSD__) ++#include ++#else + #include ++#endif + #endif + + using namespace lightspark; diff --git a/emulators/lightspark/files/patch-src_parsing_tags.cpp b/emulators/lightspark/files/patch-src_parsing_tags.cpp new file mode 100644 index 000000000000..70273b7febd2 --- /dev/null +++ b/emulators/lightspark/files/patch-src_parsing_tags.cpp @@ -0,0 +1,14 @@ +--- src/parsing/tags.cpp.orig 2023-03-19 19:03:13 UTC ++++ src/parsing/tags.cpp +@@ -24,7 +24,11 @@ + #ifdef __MINGW32__ + #include + #else ++#if defined(__FreeBSD__) ++#include ++#else + #include ++#endif + #endif + #include "scripting/abc.h" + #include "parsing/tags.h" diff --git a/emulators/lightspark/files/patch-src_swf.cpp b/emulators/lightspark/files/patch-src_swf.cpp new file mode 100644 index 000000000000..74b62e1b86ef --- /dev/null +++ b/emulators/lightspark/files/patch-src_swf.cpp @@ -0,0 +1,10 @@ +--- src/swf.cpp.orig 2023-03-19 18:51:21 UTC ++++ src/swf.cpp +@@ -19,6 +19,7 @@ + + #include + #include ++#include + #include "backends/security.h" + #include "scripting/abc.h" + #include "scripting/flash/events/flashevents.h"