mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
multimedia/gpac: Version bump to 2.4.0 + new maintainer
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
ea61805da2
commit
75e57be421
5 changed files with 47 additions and 48 deletions
|
@ -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
|
||||
|
|
9
multimedia/gpac/doinst.sh
Normal file
9
multimedia/gpac/doinst.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue