These programs convert between textual and binary representations of numbers.
ascii2binary reads input consisting of textual representations of numbers
separated by whitespace and produces as output the binary equivalents. The type
and precision of the binary output is selected using command line flags.
binary2ascii reads input consisting of binary numbers and converts them to
their textual representation. Command line flags specify the type and size
of the binary numbers and provide control over the format of the output.
Unsigned integers may be written out in binary, octal, decimal, or hexadecimal.
Signed integers may be written out only in binary or decimal. Floating point
numbers may be written out only decimal, either in standard or scientific
notation. (If you want to examine the binary representation of floating point
numbers, just treat the input as a sequence of unsigned characters.)
The two programs are useful for generating test data, for inspecting binary
files, and for interfacing programs that generate textual output to programs
that require binary input and conversely. They can also be useful when it is
desired to reformat numbers.
converters/ascii2binary: Modernize port
* Utilize more helpers
* Define LICENSE_FILE
* Fold separate patch into port Makefile
* Adjust Makefile to follow Porters Handbook more closely
PR: 284673
Approved by: maintainter timeout, 2+ weeks
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 )
Remove libintl.so.9 compatibility link that was added in r374303 to
prevent massive PORTREVISION bumps. Bump dependent ports that have not
been bumped since.
- 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
Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.
To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.
To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.
Changes to Mk/*:
- Add runtime detection magic in bsd.port.mk
(Only the first 15 lines of the commit message are shown above )
Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).
PR: ports/124340
Submitted by: edwin@
Approved by: portmgr (pav)
ascii2binary and binary2ascii convert between textual and binary
representations of numbers.
The two programs are useful for generating test data, for inspecting binary
files, and for interfacing programs that generate textual output to programs
that require binary input and conversely. They can also be useful when it is
desired to reformat numbers.
WWW: http://billposer.org/Software/a2b.html