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

Added new package gpac v2.2.1 #6004

Merged
merged 2 commits into from
Feb 8, 2024
Merged
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
28 changes: 28 additions & 0 deletions cross/gpac/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
PKG_NAME = gpac
PKG_VERS = 2.2.1
PKG_REV = 1
PKG_EXT = tar.gz
PKG_DIST_NAME = v$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/gpac/gpac/archive
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

HOMEPAGE = https://gpac.io
COMMENT = Home of MP4Box.
LICENSE = LGPLv2

# incompatible toolchain
UNSUPPORTED_ARCHS = $(PPC_ARCHS) $(ARMv5_ARCHS) $(ARMv7L_ARCHS)

DEPENDS = cross/zlib

CONFIGURE_ARGS = --enable-pic
CONFIGURE_ARGS += --extra-cflags="-Wno-pointer-sign"

PRE_COMPILE_TARGET = gpac_precompile

include ../../mk/spksrc.cross-cc.mk

.PHONY: gpac_precompile
gpac_precompile:
@echo "#define GPAC_GIT_REVISION \"$(PKG_REV) (SynoCommunity)\"" > $(WORK_DIR)/$(PKG_DIR)/include/gpac/revision.h
11 changes: 11 additions & 0 deletions cross/gpac/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
bin:bin/MP4Box
bin:bin/gpac
lib:lib/gpac/gm_validator.so
lnk:lib/libgpac.so
lnk:lib/libgpac.so.12
lib:lib/libgpac.so.12.10.1
lnk:lib/libz.so
lnk:lib/libz.so.1
lib:lib/libz.so.1.2.13
rsc:share/gpac/
rsc:share/man/
3 changes: 3 additions & 0 deletions cross/gpac/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gpac-2.2.1.tar.gz SHA1 ad7189be7ee0540ab8187a982ea39a4266c0950d
gpac-2.2.1.tar.gz SHA256 8173ecc4143631d7f2c59f77e1144b429ccadb8de0d53a4e254389fb5948d8b8
gpac-2.2.1.tar.gz MD5 a1a4a6c7f1525431b211b5ba47253ed0
22 changes: 22 additions & 0 deletions cross/gpac/patches/001-configure.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--- configure
+++ configure
@@ -48,13 +48,13 @@ if test "$cxx_orig" = "" ; then
cxx_orig="g++"
fi

-ar="ar"
-ranlib="ranlib"
-make="make"
-strip="strip"
+ar="${AR:=ar}"
+ranlib="${RANLIB:=ranlib}"
+make="${MAKE:=make}"
+strip="${STRIP:=strip}"
pkg_config="pkg-config"
-windres="windres"
-readelf="readelf"
+windres="${WINDRES:=windres}"
+readelf="${READELF:=readelf}"
install="${INSTALL:=install}"
instflags="${INSTFLAGS:=-p}"
cpu=`uname -m`
11 changes: 11 additions & 0 deletions cross/gpac/patches/002-quickjs.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- src/quickjs/quickjs.c
+++ src/quickjs/quickjs.c
@@ -73,7 +73,7 @@

/* define to include Atomics.* operations which depend on the OS
threads */
-#if !defined(EMSCRIPTEN) && !defined(_MSC_VER) && !defined(GPAC_CONFIG_ANDROID) && !defined(__MINGW32__) && !defined(__CYGWIN__)
+#if !defined(EMSCRIPTEN) && !defined(_MSC_VER) && !defined(GPAC_CONFIG_ANDROID) && !defined(GPAC_NO_STDATOMIC) && !defined(__MINGW32__) && !defined(__CYGWIN__)
#define CONFIG_ATOMICS
#endif

19 changes: 19 additions & 0 deletions spk/gpac/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
SPK_NAME = gpac
SPK_VERS = 2.2.1
SPK_REV = 1

SPK_ICON = src/gpac.png

DEPENDS = cross/$(SPK_NAME)

MAINTAINER = wmanth
DISPLAY_NAME = GPAC
DESCRIPTION = GPAC is an open-source software dedicated to rich-media and broadcast technologies. It features the MP4 reference muxer MP4Box.
STARTABLE = no

HOMEPAGE = https://gpac.io
LICENSE = LGPLv2

SPK_COMMANDS = bin/gpac bin/MP4Box

include ../../mk/spksrc.spk.mk
Binary file added spk/gpac/src/gpac.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.