diff options
author | Jeremy Hansen <jebrhansen+github@gmail.com> | 2024-07-08 19:34:55 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-07-11 09:17:14 +0700 |
commit | 75e57be421e634f834222359eaef8573d7e8c509 (patch) | |
tree | 2d67baabbe8853f1bc77645298832484649a7de6 /multimedia/gpac | |
parent | ea61805da27e4012d997385ee2cb9a87ce1b27c2 (diff) |
multimedia/gpac: Version bump to 2.4.0 + new maintainer
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/gpac')
-rw-r--r-- | multimedia/gpac/README | 20 | ||||
-rw-r--r-- | multimedia/gpac/doinst.sh | 9 | ||||
-rw-r--r-- | multimedia/gpac/gpac.SlackBuild | 52 | ||||
-rw-r--r-- | multimedia/gpac/gpac.info | 12 | ||||
-rw-r--r-- | multimedia/gpac/slack-desc | 2 |
5 files changed, 47 insertions, 48 deletions
diff --git a/multimedia/gpac/README b/multimedia/gpac/README index 1e7c8f82a25d0..6d07145d61aab 100644 --- a/multimedia/gpac/README +++ b/multimedia/gpac/README @@ -1,6 +1,16 @@ -GPAC is mainly used to package multimedia content for local or -streaming playback. GPAC includes MP4Box utility which lets packaging -of various audio and video codecs into mp4 container. +GPAC is an open-source multimedia framework focused on modularity and +standards compliance. GPAC provides tools to process, inspect, package, +stream, playback and interact with media content. Such content can be +any combination of audio, video, subtitles, metadata, scalable +graphics, encrypted media, 2D/3D graphics and ECMAScript. -Optional dependencies include the following: wxPython, js, faad2, -ffmpeg, xvidcore, jack, xulrunner and xmlrpc-c. +GPAC is best-known for its wide MP4/ISOBMFF capabilities and is popular +among video enthusiasts, academic researchers, standardization bodies, +and professional broadcasters. + +GPAC also features MP4Box, a multimedia swiss-army knife. + +Optional dependencies available on SBo: faad2, xvidcore, jack + +Optional dependencies not yet available on SBo: openhevc, freenect, +opensvcdecoder, platinumupnp diff --git a/multimedia/gpac/doinst.sh b/multimedia/gpac/doinst.sh new file mode 100644 index 0000000000000..65c7e2eeb9aa5 --- /dev/null +++ b/multimedia/gpac/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/multimedia/gpac/gpac.SlackBuild b/multimedia/gpac/gpac.SlackBuild index 3d47f2be9d53f..34249ff0be8e5 100644 --- a/multimedia/gpac/gpac.SlackBuild +++ b/multimedia/gpac/gpac.SlackBuild @@ -5,6 +5,7 @@ # Copyright (c) 2007-2017, Nishant Limbachia, Hoffman Estates, IL, USA # (nishant _AT_ mnspace _DOT_ net) +# Copyright 2024 Jeremy Hansen <jebrhansen+SBo@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -28,7 +29,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM="gpac" -VERSION=${VERSION:-1.0.1} +VERSION=${VERSION:-2.4.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -41,9 +42,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -64,60 +62,39 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" fi -### wxwidgets support -if [ "${WX_SUPPORT:-no}" = "no" ]; then - wx_option="--disable-wx" -else - wx_option="--enable-wx" -fi - -if [ "${AMR:-no}" = "no" ]; then - amr_option="--disable-amr" -else - amr_option="--enable-amr" -fi - rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -fR $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION -chown -R root.root . +chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# configure doesn't have --libdir option. -sed -i "s/^libdir=\".*\"$/libdir=\"lib$LIBDIRSUFFIX\"/" configure - +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ - --disable-opt \ - --enable-pic \ - --enable-pulseaudio \ - --cpu=${ARCH} \ - --extra-cflags="$SLKCFLAGS" \ - $wx_option \ - $amr_option - -make -j1 + --cpu=$ARCH \ + --enable-pic +make make install DESTDIR=$PKG make install-lib DESTDIR=$PKG -### remove $PKG/usr/share/gpac directory -### only contains gpac.mp4 file which -### doesn't seem to play with mplayer -#rm -fr $PKG/usr/share - find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -125,11 +102,14 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING Changelog README.md \ +cp -a \ + COPYING Changelog README.md SECURITY.md \ $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/multimedia/gpac/gpac.info b/multimedia/gpac/gpac.info index 9b1adc7085f8b..53d299443968d 100644 --- a/multimedia/gpac/gpac.info +++ b/multimedia/gpac/gpac.info @@ -1,10 +1,10 @@ PRGNAM="gpac" -VERSION="1.0.1" -HOMEPAGE="http://gpac.wp.mines-telecom.fr" -DOWNLOAD="https://github.com/gpac/gpac/archive/v1.0.1/gpac-1.0.1.tar.gz" -MD5SUM="52f6711e43a8d271ebec0c2ea2afab4a" +VERSION="2.4.0" +HOMEPAGE="https://gpac.io/" +DOWNLOAD="https://github.com/gpac/gpac/archive/refs/tags/v2.4.0/gpac-2.4.0.tar.gz" +MD5SUM="de748e69984cd8b3b695347a3c9ae4d6" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Nishant Limbachia" -EMAIL="nishant@mnspace.net" +MAINTAINER="Jeremy Hansen" +EMAIL="jebrhansen+SBo@gmail.com" diff --git a/multimedia/gpac/slack-desc b/multimedia/gpac/slack-desc index 18c37d222c95a..cbe60de5c99da 100644 --- a/multimedia/gpac/slack-desc +++ b/multimedia/gpac/slack-desc @@ -16,4 +16,4 @@ gpac: of presentation for MPEG4/VRML/X3D through mozilla SpiderMonkey gpac: javascript engine. GPAC also features MP4Box, a multimedia gpac: swiss-army knife. gpac: -gpac: Website : http://gpac.wp.institut-telecom.fr/ +gpac: Website : https://gpac.io/ |