--- admin/PlamoBuild-template-20170415 2017-04-15 12:25:32.000000000 +0900 +++ plamo/05_ext/AV.txz/libvpx/PlamoBuild.libvpx-v1.3.0 2017-05-16 20:22:08.000000000 +0900 @@ -1,18 +1,18 @@ #!/bin/sh ###################################################################### -url="" +url="https://download.videolan.org/contrib/vpx/libvpx-v1.3.0.tar.bz2" verify= digest= commitid= -pkgbase= -vers= +pkgbase=libvpx +vers=v1.3.0 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-runtime-cpu-detect --enable-shared" +DOCS="README PATENTS CHANGELOG AUTHORS LICENSE" template=20170415 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -36,12 +36,13 @@ if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done apply_patches + cd $B + cp -p build/make/configure.sh{,.orig} + sed -i '/CROSS=/s@arm-.*-@@' build/make/configure.sh for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -x configure ] ; then - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + ./configure --prefix=/usr --libdir=/usr/$libdir ${OPT_CONFIG[$i]} fi done fi @@ -64,6 +65,8 @@ make install DESTDIR=$P fi done + chown -R root.root $P/usr/{bin,$libdir,include} + touch $P/usr/{bin,$libdir{,/pkgconfig}}/* touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -72,8 +75,11 @@ setup_docdir convert_links tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` - tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir ! -name pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/include/vpx tar rvpf $pkg.tar -C $P usr/share/doc/$src + tar rvpf $pkg.tar -C $P install/doinst.sh touch -t `date '+%m%d0900'` $pkg.tar ; xz $pkg.tar ; touch $pkg.tar.xz mv $pkg.tar.xz $pkg.txz cleanup