Work around x11-links lossage with native X on NetBSD 5.

x11-links rejects xf86vidmodeproto because it's too old according
to the pkgsrc X xf86vidmodeproto bl3 file (which is at best dubious
logic) and doesn't link it. Then the .pc file isn't available, so
this package's configure script silently fails running pkg-config
and sets XVIDTUNE_LIBS to empty. The build then fails at link time
because no X libs at all have been requested. Fix it by feeding in
the result of running the same pkg-config invocation outside
pkgsrc. The fact that the native xf86vidmode is "too old" does not
itself break the package.
Changes 5.5.25:
* The --safe-mode server option now is deprecated and will be removed in MySQL
  5.6.
* Performance: InnoDB: Improved the algorithm related to adaptive flushing.
  This fix increases the rate of flushing in cases where compression is used
  and the data set is larger than the buffer pool, leading to eviction.
* InnoDB: In a transaction using the REPEATABLE READ isolation level, an UPDATE
  or DELETE statement for an InnoDB table could sometimes overlook rows
  recently committed by other transactions. As explained in Section 14.3.9.2,
  “Consistent Nonlocking Reads”, DML statements within a REPEATABLE READ
  transaction apply to rows committed by other transactions, even if a query
  could not see those rows.
* InnoDB: The Innodb_buffer_pool_pages_flushed status variable was incorrectly
  set to twice the value it should be. Its value should never exceed the value
  of Innodb_pages_written.
* InnoDB: The error handling and message was improved for attempting to create
  a foreign key with a column referencing itself. The message suggested
  a potential problem with the data dictionary, when no such problem existed.
* InnoDB: The CHECK TABLE statement could fail for a large InnoDB table due to
  a timeout value of 2 hours. For typical storage devices, the issue could
  occur for tables that exceeded approximately 200 or 350 GB, depending on I/O
  speed. The fix relaxes the locking performed on the table being checked,
  which makes the timeout less likely. It also makes InnoDB recognize the
  syntax CHECK TABLE QUICK, which avoids the possibility of the timeout
  entirely.
* Replication: It was theoretically possible for concurrent execution of more
  than one instance of SHOW BINLOG EVENTS to crash the MySQL Server.
* Replication: Statements using AUTO_INCREMENT, LAST_INSERT_ID(), RAND(), or
  user variables could be applied in the wrong context on the slave when using
  statement-based replication and replication filtering server options (see
  Section 16.2.3, “How Servers Evaluate Replication Filtering Rules”).
* Replication: An INSERT into a table that has a composite primary key that
  includes an AUTO_INCREMENT column that is not the first column of this
  composite key is not safe for statement-based binary logging or replication.
  Such statements are now marked as unsafe and fail with an error when using
  the STATEMENT binary logging format. For more information, see Section
  16.1.2.3, “Determination of Safe and Unsafe Statements in Binary Logging”, as
  well as Section 16.4.1.1, “Replication and AUTO_INCREMENT”.
Updated databases/mysql55 to 5.5.25
Fix broken build.

(1) With gcc 4.5, cpp does not fold lines separated by a escaped
newline in the output. Therefore when nasd_rpcgen runs its rpc
definitions through cpp, what comes out contains syntax errors. The
parser then reports these with SIGSEGV. First fix the cpp plumbing to
use the cpp tool wrapper during build, and then have it use -traditional.

(2) On amd64, roughly half the build thinks it's actually i386. Patch
the other half to agree. This may not turn out to work, but it does
build instead of dumping out bizarre compile errors.
require bsd.prefs.mk before conditional check.
Refer the user to MAME package for chdman and other utilities.
Add RCS Id.
Update to 0.0.7:

v0.0.7 (2012-06-02):

     * Extraction and listing of Unix symbolic links is now supported.
     * Decompression code for the "old" PMarc archive algorithm (-pm1-) has
       been added.
     * Support has been added for Unix LHA level 0 header extended areas
       (so level 0 archives with Unix metadata are now listed and extracted
       correctly).
     * The Unix permissions field in the list output for directory entries
       has been fixed.
     * The library header files have been fixed so that they can be included
       in C++ code.
     * The LHADecoder interface, for extracting raw compressed data, has been
       added to the public header files.
     * The Unix LHA test archives have been regenerated and improved.
     * A "ghost testing" tool has been added for testing ghost compression
       algorithms such as -pm1-.
     * The list output tests have been fixed to be repeatable regardless of
       the current date.
     * Build of the fuzzer tool has been fixed.

v0.0.6 (2012-05-17):

     * When the -w option is used during extraction, the path specified
       is now first created if it does not already exist.
     * The command line tool now exits with a failure return code if an
       error occurs during extraction.
     * A "catch-all" header file (lhasa.h) has been added.
     * The public header files installed with the library can now be
       included and used externally.
     * A pkgconfig file is now installed as part of the library
       (thanks Jan Engelhardt).
     * Make targets have been added for building Doxygen documentation
       and including them as part of the distribution.
Updated archivers/lhasa to 0.0.7
Update py-pip to 1.1.
Based on PR 46531 by Wen Heping.
* convert to use python/egg.mk.

1.1 (2012-02-16)
----------------

* Fixed issue #326 - don't crash when a package's setup.py emits UTF-8 and
  then fails. Thanks Marc Abramowitz.

* Added ``--target`` option for installing directly to arbitrary directory.
  Thanks Stavros Korokithakis.

* Added support for authentication with Subversion repositories. Thanks
  Qiangning Hong.

* Fixed issue #315 - ``--download`` now downloads dependencies as well.
  Thanks Qiangning Hong.

* Errors from subprocesses will display the current working directory.
  Thanks Antti Kaihola.

* Fixed issue #369 - compatibility with Subversion 1.7. Thanks Qiangning
  Hong. Note that setuptools remains incompatible with Subversion 1.7; to
  get the benefits of pip's support you must use Distribute rather than
  setuptools.

* Fixed issue #57 - ignore py2app-generated OS X mpkg zip files in finder.
  Thanks Rene Dudfield.

* Fixed issue #182 - log to ~/Library/Logs/ by default on OS X framework
  installs. Thanks Dan Callahan for report and patch.

* Fixed issue #310 - understand version tags without minor version ("py3")
  in sdist filenames. Thanks Stuart Andrews for report and Olivier Girardot for
  patch.

* Fixed issue #7 - Pip now supports optionally installing setuptools
  "extras" dependencies; e.g. "pip install Paste[openid]". Thanks Matt Maker
  and Olivier Girardot.

* Fixed issue #391 - freeze no longer borks on requirements files with
  --index-url or --find-links. Thanks Herbert Pfennig.

* Fixed issue #288 - handle symlinks properly. Thanks lebedov for the patch.

* Fixed issue #49 - pip install -U no longer reinstalls the same versions of
  packages. Thanks iguananaut for the pull request.

* Removed ``-E`` option and ``PIP_RESPECT_VIRTUALENV``; both use a
  restart-in-venv mechanism that's broken, and neither one is useful since
  every virtualenv now has pip inside it.

* Fixed issue #366 - pip throws IndexError when it calls `scraped_rel_links`

* Fixed issue #22 - pip search should set and return a userful shell status code

* Fixed issue #351 and #365 - added global ``--exists-action`` command line
  option to easier script file exists conflicts, e.g. from editable
  requirements from VCS that have a changed repo URL.
Updated devel/py-pip to 1.1
pear-Auth_SASL-1.0.6 [pkg/46533], pear-DB-1.7.14 [pkg/46534],
txt2man-1.5.6 [pkg/46535], yabasic-2.763 [pkg/46532]
+ libXft-2.3.1, libvisio-0.0.17, py-simplejson-2.5.2, qemu-1.1.0
  [wip], vala-0.17.1.
Add comments (only) about shlib versioning.

Note that the shlib-name-changing-on-minor-releases issue has been
raised upstream.
Update to 1.1.1:

1.1.1:
This minor maintenance release fixes several build configuration and
compiler warning issues.

1.1.0:
This release adds support for finding the encoding data-files in
using the standard autoconf macros provided by X.Org's fontutil.m4.
The precedence is now (first found is used):
	--with-encodingsdir=<pathname>
	encodings subdirectory of fontrootdir found via:
	       --with-fontrootdir
	       pkg-config --variable=fontrootdir fontutil
	       ${datadir}/fonts/X11

It also converts to using standard libc memory allocation functions,
and provides the usual recent build configuration improvements and
janitorial cleanups.
Updated fonts/libfontenc to 1.1.1
Update to 1.1.0:
This minor feature release adds support for the 'ExtraLight' and 'Heavy'
weights in Type 1 fonts generated by FontForge, and recognizes the fonts
from the Culmus project <http://culmus.sourceforge.net>, mapping them to
the XLFD foundry name "culmus".
Updated fonts/mkfontscale to 1.1.0
Update to 1.0.4:
This minor maintenance release fixes a pile of issues found by static
analysis & compiler warnings, along with build configuration improvements
and cleanup of the library's exported symbol list.
Updated x11/libFS to 1.0.4