# bmp2png/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] # 1. This package requires a version of "libpng" that provides the # legacy function "png_read_data". #--------------------------------------------------------------------- # 2. This package installs a modified version of Miyasaka Masaru's # "bmp2png" program. Specifically, it puts two wrappers around the # original program. One wrapper is named "bmp2png" and the other is # named "bmp2png-fast". # The "bmp2png" wrappers accept BMP-file arguments (as before). How- # ever, at the present time, they ignore everything else (including # option switches). # The specified BMP input files are converted to PNG output files (as # before). However, the "bmp2png" wrapper maximally-compresses the PNG # files. Specifically, it passes "-9" to the original program, then # runs PNG output files through an external PNG compression utility # named "optipng". # The "bmp2png" wrapper also preserves timestamps. I.e., PNG output # files have the same timestamps as the corresponding BMP input files. # The PNG output files are stored in the same directories as the BMP # input files (as before). # The "bmp2png-fast" wrapper is almost identical to the "bmp2png" # wrapper, but it doesn't run "optipng". Therefore, it runs faster but # produces larger output files. #--------------------------------------------------------------------- # 3. This package also installs Miyasaka Masaru's "png2bmp" program. # Note: Presently, no wrapper is used for "png2bmp". #--------------------------------------------------------------------- [buildtimes] 00.00 hours (or 000.03 minutes) - HP EliteBook 8560w 32GB RAM 00.00 hours (or 000.05 minutes) - 2021 L.A. dedi box: 6x2 CPU 32GB RAM 00.00 hours (or 000.05 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.00 hours (or 000.05 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.00 hours (or 000.17 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB RAM #--------------------------------------------------------------------- [settings] configure = none dontfind = libpng12, libpng exepack = yes license = See "license.txt" under installed tree revision = 1.62 setpaths = libpng14 tmpsize = 1M unpack = none #--------------------------------------------------------------------- [depends] infozip libpng14 optipng # Used by one wrapper at runtime #--------------------------------------------------------------------- [build] BINDIR=$PKGDIR_PROD/bin DOCDIR=$PKGDIR_PROD/doc mkdir -p $BINDIR $DOCDIR SPCMISC=$PKGDIR_SPECIAL/misc SPCWRAP=$PKGDIR_SPECIAL/wrappers mkdir tmp cd tmp unzip -o $PKGDIR_MASTER/b2p162s.zip tree2unixtext --run cp -p $SPCMISC/license.txt $DOCDIR/ cp -p README $DOCDIR/readme.txt cd bmp2png make -f makefile.lin cp -p bmp2png png2bmp $BINDIR/ cd $BINDIR mv bmp2png bmp2png.bin cp -p $SPCWRAP/bmp2png.wrapper bmp2png chmod 755 bmp2png ln -s bmp2png bmp2png-fast #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = n/a url_home = http://cetus.sakura.ne.jp/softlab/b2p-home/ url_lfs = n/a url_tarball = http://cetus.sakura.ne.jp/softlab/b2p-home/\ archives/b2p162s.zip