--- admin/PlamoBuild-template-20170415 2017-04-15 12:25:32.000000000 +0900 +++ plamo/04_xapps/ghostscript.txz/ghostscript/PlamoBuild.ghostscript-9.15 2017-04-21 19:32:53.000000000 +0900 @@ -1,18 +1,19 @@ #!/bin/sh ###################################################################### -url="" +url="http://downloads.ghostscript.com/public/old-gs-releases/ghostscript-9.15.tar.bz2" verify= digest= commitid= -pkgbase= -vers= +pkgbase=ghostscript +vers=9.15 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" -OPT_CONFIG="" -DOCS="README" +OPT_CONFIG="--enable-contrib --disable-compile-inits + --with-system-libtiff" +DOCS="DroidSansFallback.NOTICE LICENSE" template=20170415 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -44,14 +45,21 @@ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi done + cd ijs + ./autogen.sh + ./configure --prefix=/usr --libdir=/usr/$libdir \ + --enable-shared --disable-static fi if [ $opt_build -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} if [ -f Makefile ] ; then make + make so fi done + cd ijs + make fi if [ $opt_package -eq 1 ] ; then root_priv @@ -62,18 +70,50 @@ cd ${B[$i]} if [ -f Makefile ] ; then make install DESTDIR=$P + make soinstall DESTDIR=$P fi done + cd ijs + touch {$P/usr/bin,$mandir/man1}/dummy + make install DESTDIR=$P + rm {$P/usr/bin,$mandir/man1}/dummy + ln -s $vers/Resource $P/usr/share/ghostscript + cat <<- "EOF" >> $P/usr/share/ghostscript/Resource/Init/cidfmap + + /Ryumin-Light << /FileType /TrueType /Path (/usr/share/ghostscript/fonts/ipam.ttf) /CSI [(Japan1) 6] >> ; + /GothicBBB-Medium << /FileType /TrueType /Path (/usr/share/ghostscript/fonts/ipag.ttf) /CSI [(Japan1) 6] >> ; + /Ryumin-Medium /Ryumin-Light ; + /HeiseiMin-W3 /Ryumin-Light ; + /HeiseiKakuGo-W5 /GothicBBB-Medium ; + /Kochi-Mincho /Ryumin-Light ; + /Kochi-Gothic /GothicBBB-Medium ; + /Adobe-Japan1 /Ryumin-Light ; + /Adobe-Japan2 /Ryumin-Light ; + /FutoMinA101-Bold /Ryumin-Light ; + /FutoGoB101-Bold /GothicBBB-Medium ; + /GothicMB101-hea /GothicBBB-Medium ; + /ShinGo-Bold /GothicBBB-Medium ; + EOF touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + gzip_dir $mandir/de/man1 setup_docdir convert_links + prune_symlink $P/usr/share/ghostscript + touch -t `date '+%m%d0900'` $P/usr/share/ghostscript + prune_symlink $mandir/de/man1 tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | 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 `cd $P ; find usr/include -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P usr/share/ghostscript 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/de/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