--- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/05_ext/tk.txz/old/tk-20161016/PlamoBuild.tk-8.5.10 2016-10-16 10:07:13.000000000 +0900 @@ -1,15 +1,16 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/tcl/tk8.5.10-src.tar.gz" +pkgbase=tk +vers=8.5.10 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P2 +src=tk$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-threads" +DOCS="changes ChangeLog.2002 README ChangeLog license.terms + ChangeLog.2004" ###################################################################### fscheck() { @@ -233,8 +234,13 @@ esac done done + cd $B + if [ $arch == x86_64 ] ; then + cp -p unix/configure{,.orig} + sed -i '/^TK_LIBRARY=/s@lib@lib64@g' unix/configure + fi for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/unix if [ -f Makefile ] ; then make clean fi @@ -250,7 +256,7 @@ fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/unix if [ -f Makefile ] ; then make fi @@ -267,11 +273,14 @@ if [ -d $C ] ; then rm -rf $C ; fi ; mkdir -p $C touch $W/i.st ; sleep 1 for i in `seq 0 $((${#B[@]} - 1))` ; do - cd ${B[$i]} + cd ${B[$i]}/unix if [ -f Makefile ] ; then - make install DESTDIR=$P + make install DESTDIR=$P install-private-headers fi done + ln -s wish8.5 $P/usr/bin/wish + mv $P/usr/bin/{wish8.5,wish} $C + mv $C/{wish8.5,wish} $P/usr/bin touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -296,8 +305,14 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/tk8.5 + tar rvpf $pkg.tar -C $P usr/$libdir/{libtk8.5.so,tkConfig.sh,libtkstub8.5.a} + 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/man/man1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man3 | tail -n+2` + 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 + 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 read -p "Do you want to keep work files? [y/N] " ans