--- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/05_ext/tk.txz/old/Tix-20161018/PlamoBuild.Tix-8.4.3 2016-10-18 10:32:24.000000000 +0900 @@ -1,15 +1,19 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/tix/Tix8.4.3-src.tar.gz + http://ftp.slackware.com/pub/slackware/slackware-14.0/source/tcl/tix/tix.tcl8.5.patch.gz + http://ftp.slackware.com/pub/slackware/slackware-14.0/source/tcl/tix/tix.soname.patch.gz + http://downloads.sourceforge.net/tcl/tcl8.6.6-src.tar.gz + http://downloads.sourceforge.net/tcl/tk8.6.6-src.tar.gz" +pkgbase=Tix +vers=8.4.3 arch=`uname -m` -build=P1 -src=$pkgbase-$vers -patchfiles="" +build=P3 +src=$pkgbase$vers +patchfiles="tix.tcl8.5.patch.gz tix.soname.patch.gz" OPT_CONFIG="" -DOCS="README" +DOCS="license.terms README.txt ChangeLog" ###################################################################### fscheck() { @@ -233,6 +237,35 @@ esac done done + cd $W/tcl8.6.6 + if [ $arch == x86_64 ] ; then + cp -p unix/configure{,.orig} + cat <<- "EOF" | patch unix/configure + 18923c18923 + < TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)' + --- + > TCL_LIBRARY='$(prefix)/lib64/tcl$(VERSION)' + 19053,19054c19053,19054 + < elif test "$prefix/lib" != "$libdir"; then + < TCL_PACKAGE_PATH="${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}" + --- + > elif test "$prefix/lib64" != "$libdir"; then + > TCL_PACKAGE_PATH="${libdir} ${prefix}/lib64 ${TCL_PACKAGE_PATH}" + 19056c19056 + < TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}" + --- + > TCL_PACKAGE_PATH="${prefix}/lib64 ${TCL_PACKAGE_PATH}" + EOF + fi + cd $W/tcl8.6.6/unix + ./configure --prefix=/usr --libdir=/usr/$libdir --enable-threads + cd $W/tk8.6.6 + if [ $arch == x86_64 ] ; then + cp -p unix/configure{,.orig} + sed -i '/^TK_LIBRARY=/s@lib@lib64@g' unix/configure + fi + cd $W/tk8.6.6/unix + ./configure --prefix=/usr --libdir=/usr/$libdir --enable-threads for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then @@ -244,7 +277,8 @@ 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]} + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + CPPFLAGS="-DUSE_INTERP_RESULT" fi done fi @@ -272,11 +306,18 @@ make install DESTDIR=$P fi done + chown -R root.root $P/usr/$libdir/Tix$vers/{pref,bitmaps} + chmod -R g-w $P/usr/$libdir/Tix$vers/bitmaps + rmdir $P/usr/$libdir/Tix$vers/html + install -d $P/usr/share/man/mann + install -m 644 man/*.n $P/usr/share/man/mann touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/Tix$vers + touch -t `date '+%m%d0900'` $P/usr/$libdir/Tix$vers for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -294,9 +335,21 @@ fi ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done + cp -a $S/docs $docdir/$src + find $docdir/$src/docs -type d -exec chmod 755 {} \; + find $docdir/$src/docs -type f -exec chmod 644 {} \; + chown -R root.root $docdir/$src/docs + cp -p $S/{index,ABOUT}.html $docdir/$src + chmod 644 $docdir/$src/{index,ABOUT}.html + chown root.root $docdir/$src/{index,ABOUT}.html + mv $docdir/$src/{docs,{index,ABOUT}.html} $C + mv $docdir/$src/{license.terms,README.txt,ChangeLog,$myname}.gz $C + mv $C/{docs,{index,ABOUT}.html} $docdir/$src + mv $C/{license.terms,README.txt,ChangeLog,$myname}.gz $docdir/$src + touch -r $S $docdir/$src convert - 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 cvpf $pkg.tar -C $P usr/$libdir/Tix$vers + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/mann | tail -n+2` tar rvpf $pkg.tar -C $P usr/share/doc/$src touch -t `date '+%m%d0900'` $pkg.tar ; xz $pkg.tar ; touch $pkg.tar.xz mv $pkg.tar.xz $pkg.txz