mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[devel] Updated contrib/pngminim project to work with the new pnglibconf.h
This commit is contained in:
@@ -1,23 +1,17 @@
|
||||
|
||||
# Get the source for the pngminus application
|
||||
cp ../../pngminus/pnm2png.c pnm2pngm.c
|
||||
|
||||
# Get the libpng sources
|
||||
cp ../../../*.h .
|
||||
cp ../../../*.c .
|
||||
|
||||
# Get the libpng scripts for building pnglibconf.h
|
||||
cp ../../../scripts/options.awk .
|
||||
cp ../../../scripts/pnglibconf.dfa .
|
||||
sed -e "s:scripts/::g" ../../../scripts/pnglibconf.mak > pnglibconf.mak
|
||||
#14+%
|
||||
# Remove libpng sources we won't use
|
||||
test -n "${PNGSRC}" || PNGSRC=../../..
|
||||
cp ${PNGSRC}/contrib/pngminus/pnm2png.c pnm2pngm.c
|
||||
cp "${PNGSRC}"/*.h .
|
||||
cp "${PNGSRC}"/*.c .
|
||||
rm example.c pngtest.c pngr*.c pngpread.c
|
||||
rm -f pnglibconf.h
|
||||
test -d scripts || mkdir scripts
|
||||
cp "${PNGSRC}"/scripts/pnglibconf.mak scripts
|
||||
cp "${PNGSRC}"/scripts/pnglibconf.dfa scripts
|
||||
cp "${PNGSRC}"/scripts/options.awk scripts
|
||||
# change the following if zlib is somewhere else
|
||||
test -n "${ZLIBSRC}" || ZLIBSRC="${PNGSRC}"/../zlib
|
||||
cp "${ZLIBSRC}"/*.h .
|
||||
cp "${ZLIBSRC}"/*.c .
|
||||
rm inf*.[ch]
|
||||
rm minigzip.c example.c gz*
|
||||
|
||||
# Get the zlib sources
|
||||
# Change the following 2 lines if zlib is somewhere else
|
||||
cp ../../../../zlib/*.h .
|
||||
cp ../../../../zlib/*.c .
|
||||
|
||||
# Remove zlib sources we won't use
|
||||
rm minigzip.c example.c inf*.[ch] gz*
|
||||
|
||||
Reference in New Issue
Block a user