Commits

Anonymous committed 9688a9f

Update mediastreamer to 2.9.0

Signed-off-by: Lee Pak Hong <benreilly@vector.Linux.net>

Comments (0)

Files changed (1)

var/vabs/mediastreamer/src/mediastreamer.SlackBuild

 # AUTHORS = 
 
 NAME="mediastreamer"            #Enter package Name!
-VERSION=${VERSION:-"2.8.2"}      #Enter package Version!
+VERSION=${VERSION:-"2.9.0"}      #Enter package Version!
 VER=$(echo $VERSION|sed 's/-/_/') #this fixes - in version
 VL_PACKAGER=${VL_PACKAGER:-"hata_ph"}   #Enter your Name!
-LINK=${LINK:-"http://download.savannah.gnu.org/releases/linphone/mediastreamer/mediastreamer-2.8.2.tar.gz"}  #Enter URL for package here!
+LINK=${LINK:-"http://download.savannah.gnu.org/releases/linphone/$NAME/$NAME-$VERSION.tar.gz"}  #Enter URL for package here!
 
 
 #SYSTEM VARIABLES
 #----------------------------------------------------------------------------
-BUILDNUM=${BUILDNUM:-"3"}
+BUILDNUM=${BUILDNUM:-"1"}
 VL_VERSION=${VL_VERSION:-"$(ls /var/log/packages/|grep vlconfig2|cut -d "-" -f4|cut -c 2-5)"}
 BUILD=${BUILD:-"$BUILDNUM""$VL_VERSION"}
 ARCH=${ARCH:-"$(uname -m)"}
 LDFLAG_OPTIONS=${LDFLAG_OPTIONS:-""}
 ADDRB=${ADDRB:-"json-c >= 0.9"} #Add deps that need to be added to the slack-required file here
 EXRB=${EXRB:-""} #Add deps that need to be excluded from the slack-required file here
-MAKEDEPENDS=${MAKEDEPENDS:-"ortp json-c ortp pulseaudio ffmpeg"} #Add deps needed TO BUILD this package here.
+MAKEDEPENDS=${MAKEDEPENDS:-"ortp"} #Add deps needed TO BUILD this package here.
 #----------------------------------------------------------------------------
 
+# DO NOT EXECUTE if NORUN is set to 1
+if [ "$NORUN" != "1" ]; then
 
 #SETUP PACKAGING ENVIRONMENT
 #--------------------------------------------
 
 # Put any Patches into a patches folder in the src dir
 #-----------------------------------------------------
-for i in $CWD/patches/*;do
-	patch -p1 <$i
-done
+#for i in $CWD/patches/*;do
+#	patch -p1 <$i
+#done
 #-----------------------------------------------------
-patch -p1 -i "${srcdir}"/mediastreamer-ffmpeg.patch
+#patch -p1 -i "${srcdir}"/mediastreamer-ffmpeg.patch
+
 
 #SET PERMISSIONS
 #-----------------------------------------
 # correct path and that it will work seamlessly within the KDE environment.
 #
 #-----------------------------------------------------------------------
-./autogen.sh
+
 echo "Configuring source..."
-./configure \
-  --prefix=/usr \
+./configure --prefix=/usr \
   --libdir=/usr/lib${LIBDIRSUFFIX} \
-  --docdir=/usr/doc \
+  --infodir=/usr/info \
+  --docdir=/usr/doc/${NAME}-${VERSION} \
+  --htmldir=/usr/doc/${NAME}-${VERSION}/html \
+  --sysconfdir=/etc \
+  --localstatedir=/var \
   --mandir=/usr/man \
-  --disable-static \
-  --enable-ipv6 \
-  --disable-vp8 \
-  --enable-alsa \
+  --disable-debug \
+  --disable-strict \
   --enable-external-ortp \
-  --enable-truespeech \
+  --enable-alsa \
+  --enable-ipv6 \
   --enable-video \
+  --disable-vp8 \
+  --program-prefix="" \
+  --program-suffix="" \
   --build=$CONFIGURE_TRIPLET \
   $CONFIG_OPTIONS || exit 1
 
 
 
 mkdir -p $PKG/usr/doc/$NAME-$VERSION
-cp -a ANNOUNCE* AUTHORS* BUGS* COPYING* ChangeLog* CHANGELOG* Credits* DEVELOPERS \
-LICENSE* MANIFEST PROVENANCE README* TODO* Exception_to_GPL_for_Qt.txt \
+cp -a ABOUT* AUTHORS* COPYING* ChangeLog* INSTALL NEWS README \
 $PKG/usr/doc/$NAME-$VERSION
 cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild
 
 cd $CWD
 echo "Cleaning up temp files..." && rm -rf $TMP
 echo "Package Complete"
+fi
 #--------------------------------------------------------------
 
 # vim: set tabstop=4 shiftwidth=4 foldmethod=marker : ##