diff options
author | B. Watson <yalhcru@gmail.com> | 2017-03-10 16:38:02 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-03-18 06:58:55 +0700 |
commit | d0577df5dd4dd7e9a377f90a9f036eb0d8f19df4 (patch) | |
tree | 2be2a06d535d6b78a53a4a3d43ee578dd3bf5d1a /libraries/gnonlin/gnonlin.SlackBuild | |
parent | 73d5f834cc53d0b76c35b34d4320c128147a2a73 (diff) | |
download | slackbuilds-d0577df5dd4dd7e9a377f90a9f036eb0d8f19df4.tar.gz |
libraries/gnonlin: New maintainer, add legacy gst0 support.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/gnonlin/gnonlin.SlackBuild')
-rw-r--r-- | libraries/gnonlin/gnonlin.SlackBuild | 100 |
1 files changed, 89 insertions, 11 deletions
diff --git a/libraries/gnonlin/gnonlin.SlackBuild b/libraries/gnonlin/gnonlin.SlackBuild index 0decfffdd5..732ceef1d7 100644 --- a/libraries/gnonlin/gnonlin.SlackBuild +++ b/libraries/gnonlin/gnonlin.SlackBuild @@ -2,8 +2,11 @@ # Slackware build script for gnonlin +# Formerly maintained by: # Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org +# Now maintained by B. Watson (yalhcru@gmail.com) + # Copyright 2010-2011 Binh Nguyen <binhvng@gmail.com> # All rights reserved. # @@ -24,14 +27,23 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20170310 bkw: +# - take over maintenance +# - i486 => i586 +# - add option to build API docs (off by default) +# - include legacy gnonlin-0.10.17 plugins for gstreamer0, which is +# what's required for jokosher (modern gnonlin is gstreamer1 only). +# - BUILD=2 + PRGNAM=gnonlin VERSION=${VERSION:-1.4.0} -BUILD=${BUILD:-1} +OLDVER=${OLDVER:-0.10.17} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -42,8 +54,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -56,10 +68,42 @@ else LIBDIRSUFFIX="" fi -set -eu +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT + +# First, the 'legacy' gstreamer0 stuff. +cd $TMP +rm -rf $PRGNAM-$OLDVER +tar xvf $CWD/$PRGNAM-$OLDVER.tar.bz2 +cd $PRGNAM-$OLDVER +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 {} \; + +CFLAGS="$SLKCFLAGS" \ +./configure \ + "$DOCOPT" \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --localedir=/usr/share/locale \ + --disable-static \ + --enable-shared \ + --build=$ARCH-slackware-linux + +make #V=1 +make install-strip DESTDIR=$PKG + +# Now, the modern gnonlin gstreamer1 stuff. cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.xz @@ -73,6 +117,7 @@ find -L . \ CFLAGS="$SLKCFLAGS" \ ./configure \ + "$DOCOPT" \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ @@ -85,19 +130,52 @@ CFLAGS="$SLKCFLAGS" \ --enable-shared \ --build=$ARCH-slackware-linux -make V=1 -make install DESTDIR=$PKG +make #V=1 +make install-strip DESTDIR=$PKG -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 +DOC="${DOC:-no}" +if [ "$DOC" = "yes" ]; then + DOCOPT="--enable-gtk-doc" + WITHDOC="with" +else + WITHDOC="without" +fi + +CFLAGS="$SLKCFLAGS" \ +./configure \ + "$DOCOPT" \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --localedir=/usr/share/locale \ + --disable-static \ + --enable-shared \ + --build=$ARCH-slackware-linux + +make #V=1 +make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING* ChangeLog INSTALL NEWS README RELEASE \ + +# /usr/share/gtk-doc/html is the standard place for gtk-doc stuff, but +# let's symlink it into our docdir as well. +# The version number in the HTML doc path doesn't match VERSION, so: +if [ "$DOC" = "yes" ]; then + DOCVER="$( echo $PKG/usr/share/gtk-doc/html/$PRGNAM-* | sed 's,.*-,,' )" + ln -s ../../share/gtk-doc/html/$PRGNAM-$DOCVER \ + $PKG/usr/doc/$PRGNAM-$VERSION/html +fi + +cp -a AUTHORS COPYING ChangeLog NEWS README RELEASE \ $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 +sed "s,@WITHDOC@,$WITHDOC," $CWD/slack-desc > $PKG/install/slack-desc cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |