--- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/05_ext/tk.txz/old/itk-20161016/PlamoBuild.itk-3.4 2016-10-16 15:08:06.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/05_ext/tk.txz/itk/itk3.4-20080207.tar.bz2 + http://downloads.sourceforge.net/tcl/tcl8.5.10-src.tar.gz + http://downloads.sourceforge.net/tcl/tk8.5.10-src.tar.gz" +pkgbase=itk +vers=3.4 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P2 +src=itk$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="license.terms CHANGES ChangeLog INCOMPATIBLE README TODO" ###################################################################### fscheck() { @@ -233,6 +235,35 @@ esac done done + cd $W/tcl8.5.10 + if [ $arch == x86_64 ] ; then + cp -p unix/configure{,.orig} + cat <<- "EOF" | patch unix/configure + 18772c18772 + < TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)' + --- + > TCL_LIBRARY='$(prefix)/lib64/tcl$(VERSION)' + 18894,18895c18894,18895 + < 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}" + 18897c18897 + < TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}" + --- + > TCL_PACKAGE_PATH="${prefix}/lib64 ${TCL_PACKAGE_PATH}" + EOF + fi + cd $W/tcl8.5.10/unix + ./configure --prefix=/usr --libdir=/usr/$libdir --enable-threads + cd $W/tk8.5.10 + if [ $arch == x86_64 ] ; then + cp -p unix/configure{,.orig} + sed -i '/^TK_LIBRARY=/s@lib@lib64@g' unix/configure + fi + cd $W/tk8.5.10/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 +275,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]} \ + --with-itcl=/usr/$libdir fi done fi @@ -277,6 +309,8 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_libdir $P/usr/$libdir/itk$vers + touch -t `date '+%m%d0900'` $P/usr/$libdir/itk$vers for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -295,8 +329,9 @@ ( cd $docdir ; find ${src[$i]} -type d -exec touch -r $W/{} {} \; ) done 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/itk$vers + 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/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