This port implements support for loading and using PNG images with
Tcl/Tk. Although other extensions such as Img also add support for PNG
images, I wanted something that was lightweight, did not depend on libpng,
and which would be suitable for inclusion in the Tk core, as Tk does not
currently support any image formats natively that take advantage of its
internal support for alpha blending, and alpha antialiasing and drop shadows
really go a long way toward beautifying Tk applications.
At this time, the package supports reading images from files or binary
data. Base64 decoding is supported as of version 0.6. Exporting images
to PNG format is not supported yet.
The package supports the full range of color types, channels and bit
depths from 1 bit black & white to 16 bit per channel full color
with alpha (64 bit RGBA) and interlacing. Ancillary "chunks" such
as gamma, color profile, and text fields are ignored, although they
are checked at a minimum for correct CRC.
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
The vast majority of pkg-descr files had the following format when they
had both lines:
Author: ...
WWW: ....
So standardize on that, and move them to the end of the file when necessary.
Also fix some more whitespace, and remove more "signature tags" of varying
forms, like -- name, etc.
s/AUTHOR/Author/
A few other various formatting issues
- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead
PR: 157936
Submitted by: myself
Exp-runs by: pav
Approved by: pav
Add port graphics/tkpng:
This port implements support for loading and using PNG images with
Tcl/Tk. Although other extensions such as Img also add support for PNG
images, I wanted something that was lightweight, did not depend on libpng,
and which would be suitable for inclusion in the Tk core, as Tk does not
currently support any image formats natively that take advantage of its
internal support for alpha blending, and alpha antialiasing and drop shadows
really go a long way toward beautifying Tk applications.
At this time, the package supports reading images from files or binary
data. Base64 decoding is supported as of version 0.6. Exporting images
to PNG format is not supported yet.
The package supports the full range of color types, channels and bit
depths from 1 bit black & white to 16 bit per channel full color
with alpha (64 bit RGBA) and interlacing. Ancillary "chunks" such
as gamma, color profile, and text fields are ignored, although they
are checked at a minimum for correct CRC.
WWW: http://www.muonics.com/FreeStuff/TkPNG/
Author: Michael Kirkham <mikek@muonics.com>