--- admin/PlamoBuild-template-20170713 2017-07-13 13:07:00.000000000 +0900 +++ plamo/05_ext/AV.txz/v4l_utils/PlamoBuild.v4l_utils-0.8.4 2018-04-13 15:31:38.000000000 +0900 @@ -1,19 +1,20 @@ #!/bin/sh ###################################################################### -url="" +url="http://linuxtv.org/downloads/v4l-utils/v4l-utils-0.8.4.tar.bz2" verify= digest= branch= commitid= -pkgbase= -vers= +pkgbase=v4l_utils +vers=0.8.4 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P2 +src=v4l-utils-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="COPYING COPYING.LIB ChangeLog INSTALL README README.lib + README.lib-multi-threading TODO" template=20170713 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -37,6 +38,23 @@ if [ -d ${B[$i]} ] ; then rm -rf ${B[$i]} ; fi ; cp -a ${S[$i]} ${B[$i]} done apply_patches + cd $B + cp -p lib/libv4lconvert/jpeg_memsrcdest.c{,.orig} + cat <<- "EOF" | patch lib/libv4lconvert/jpeg_memsrcdest.c + 27c27 + < #if JPEG_LIB_VERSION < 80 + --- + > #if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED) + EOF + cp -p lib/libv4lconvert/jpeg_memsrcdest.h{,.orig} + cat <<- "EOF" | patch lib/libv4lconvert/jpeg_memsrcdest.h + 2a3,4 + > #if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED) + > + 9a12,13 + > + > #endif + EOF for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -x configure ] ; then @@ -50,7 +68,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make + make PREFIX=/usr LIBDIR=/usr/$libdir fi done fi @@ -62,7 +80,7 @@ for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P PREFIX=/usr LIBDIR=/usr/$libdir fi done touch $W/i.et @@ -70,11 +88,26 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/libv4l + touch -t `date '+%m%d0900'` $P/usr/$libdir/libv4l 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/sbin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/libv4l + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -maxdepth 1 -name libv4lc*` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir -maxdepth 1 -name libv4l[21]*` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/applications | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/icons/hicolor/scalable/apps | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find etc -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find lib/udev/rules.d | 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 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