Commits

Anonymous committed 822e6b8

Update libvpx to 1.3.0

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

  • Participants
  • Parent commits ac9949d

Comments (0)

Files changed (1)

File var/vabs/libvpx/src/libvpx.SlackBuild

 # AUTHORS = 
 
 NAME="libvpx"            #Enter package Name!
-VERSION=${VERSION:-"v1.1.0"}      #Enter package Version!
+VERSION=${VERSION:-"1.3.0"}      #Enter package Version!
 VER=$(echo $VERSION|sed 's/-/_/') #this fixes - in version
 VL_PACKAGER=${VL_PACKAGER:-"stretchedthin"}   #Enter your Name!
-LINK=${LINK:-"https://webm.googlecode.com/files/${NAME}-${VERSION}.tar.bz2"}  #Enter URL for package here!
+LINK=${LINK:-"https://webm.googlecode.com/files/${NAME}-v${VERSION}.tar.bz2"}  #Enter URL for package here!
 
 
 #SYSTEM VARIABLES
 #----------------------------------------------------------------------------
-BUILDNUM=${BUILDNUM:-"2"}
+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)"}
 #EXTRACT SOURCES
 #-----------------------------------------------------
 echo "Extracting source..."
-tar xvf $CWD/$NAME-$VERSION.tar.* || exit 1
+tar xvf $CWD/$NAME-v${VERSION}.tar.* || exit 1
 #this moves whatever was extracted to the std dirname we are expecting
 mv * $NAME-$VERSION &> /dev/null 2>&1
 mkdir -p $PKG
 # Put any Patches here *NOTE this only works if all 
 # your patches use the -p1 strip option!
 #-----------------------------------------------------
-for i in $CWD/patches/*;do
-  patch -p1 <$i
-  mkdir -p $PKG/usr/doc/$NAME-$VERSION/patches/
-  cp $i $PKG/usr/doc/$NAME-$VERSION/patches/
-done
+#for i in $CWD/patches/*;do
+#  patch -p1 <$i
+#  mkdir -p $PKG/usr/doc/$NAME-$VERSION/patches/
+#  cp $i $PKG/usr/doc/$NAME-$VERSION/patches/
+#done
 #-----------------------------------------------------
  
  
 
 echo "Configuring source..."
 ./configure --prefix=/usr \
-  --libdir=/usr/lib${LIBDIRSUFFIX} \
-  --disable-debug-libs \
+	--libdir=/usr/lib${LIBDIRSUFFIX} \
+	--disable-debug-libs \
     --disable-debug \
     --enable-postproc \
     --enable-pic \
     --enable-vp8 \
     --enable-shared \
+    --enable-runtime-cpu-detect \
   $ARCHOPTS || exit 1
 
 make || exit 1
 
 
 mkdir -p $PKG/usr/doc/$NAME-$VERSION
-cp -a AUTHORS COPYING ChangeLog Credits MANIFEST README TODO \
+cp -a AUTHORS CHANGELOG LICENSE PATENTS README build-tmp/docs/html \
 $PKG/usr/doc/$NAME-$VERSION
 cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild