Commit graph

151 commits

Author SHA1 Message Date
drochner
99f40f2dfe update to 2.3.12
changes:
- For  `FT_Open_Face',  new  parameters  are  available  to ignore
  preferred family names: FT_PARAM_TAG_IGNORE_PREFERRED_FAMILY and
  FT_PARAM_TAG_IGNORE_PREFERRED_SUBFAMILY.
- Support  for  incremental  font  loading  (controlled  with  the
  FT_CONFIG_OPTION_INCREMENTAL macro) is now active by default.
- Better support for vertical metrics.
- Various minor bug fixes.
2010-02-18 21:28:45 +00:00
tnn
853746f566 ensure "freetype-config --libs" emits a run path. 2009-11-24 11:26:50 +00:00
drochner
ef3efa6c0f update to 2.3.11
This is a bugfix release for the 2.3 series, which brings considerable
improvements for b/w rasterizing of hinted TrueType fonts at
small sizes. All users should upgrade.
2009-11-23 12:01:58 +00:00
tnn
796d5278e3 freetype2's .pc file requests linkage with -lz, so pull in zlib's bl3.mk 2009-07-21 12:00:41 +00:00
joerg
3a3c07bc30 Remove @dirrm entries from PLISTs 2009-06-14 17:59:04 +00:00
tnn
c6d42e19d1 patch-[a-d]: Upstream patches for CVE-2009-0946.
Bump PKGREVISION.
2009-05-02 19:44:51 +00:00
drochner
100c2f9088 update to 2.3.9
changes:
-important bugfixes
-improved CID support

There was an ABI breakage between 2.3.7 and 2.3.8 which was reverted
in 2.3.9. The public 'PS_FontInfoRec' structure was expanded and
then shrunk. Applications compiled against 2.3.8 should work fine
with 2.3.9. Applications compiled against the new 2.3.9 can
theoretically exhibit problems if run against a 2.3.8 binary, if
some PS_FontInfo stuff is used. See the freetype release notes
for details. I didn't find any suspects for now. If one is found,
it should be changed to require 2.3.9, and PKGREV bumped.
2009-04-16 20:26:25 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
drochner
3009ab9b01 update to 2.3.8
changes:
-improvements for fonts in an SFNT wrapper (used on Mac)
-FT_MulFix is now an inlined function; by default, assembler code
 is provided for x86 and ARM.  See FT_CONFIG_OPTION_INLINE_MULFIX
 and FT_CONFIG_OPTION_NO_ASSEMBLER (in ftoption.h) for more
-handling of `tricky' fonts has been generalized and changed slightly
-API additions
-bugfixes
2009-01-27 19:29:32 +00:00
cube
403e256ff6 Merge cube-native-xorg, so that pkgsrc-current can be used with the native
X.Org found in NetBSD-current.

Thanks a lot to all who helped, especially Matthias Scheler who did
repeated tests on Mac OS X and older versions of NetBSD to make sure the
support for those platforms wouldn't be broken (or at least, not fatally,
as I would still expect a few hiccups here and there, because there is
only so much one can test in such limited time).

On the infrastructure side, this branch brings pkgconfig-builtin.mk, in
order to write very easily new builtin.mk files.  It can actually handle
more than just pkgconfig files, but it will provide a version if it finds
such a file.  x11.builtin.mk has also been made more useful and now all
existing (and future!) native-X11-related builtin.mk files should include
it.
2008-10-05 21:36:32 +00:00
tnn
fcb758cc51 Update to freetype2-2.3.7.
This is a bugfix release for the 2.3 series which provides some important
fixes for bugs which were introduced in version 2.3.6. Additionally, native
bytecode hinting for TrueType fonts has been improved.
2008-07-14 03:55:29 +00:00
drochner
dc684544cd apply a fix from upstream CVS:
* src/cff/cffobjs.c (cff_face_init): Compute final
`dict->units_per_em' value before assigning it to
`cffface->units_per_EM'.  Otherwise, CFFs without subfonts are be
scaled incorrectly if the font matrix is non-standard.  This fixes
Savannah bug #23630

This fixes the problem that text set in a font embedded as type 1C subset
was rendered unreadably small.
bump PKGREVISION
2008-07-08 15:44:36 +00:00
drochner
ccc18ba10e update to 2.3.6
This fixes some integer overflow/memory corruption/heap overflow
security problems: CVE-2008-1806, CVE-2008-1807, CVE-2008-1808

other changes:
-new function `FT_Get_CID_Registry_Ordering_Supplement' gives
 access to  those fields in a CID-keyed font
-code  to validate  the new  `MATH' OpenType  table
-API for cmap 14 support
-A new face flag FT_FACE_FLAG_CID_KEYED
-misc bugfixes and other improvements
2008-06-11 10:35:21 +00:00
tron
a593e6f099 Backout last change. It breaks the build on system which use a builtin
"freetype2" and provide a "freetype2.pc" (e.g. Mac OS X Leopard or
any uptodate Linux distribution).
2008-04-24 11:18:13 +00:00
jnemeth
710220f19b fake up a freetype2.pc file for configure scripts that want it 2008-04-24 01:11:15 +00:00
wiz
f21edafa37 Remove Ex-MASTER_SITEs. From Zafer Aydogan. 2007-12-02 12:05:00 +00:00
joerg
ede3ad6e6b Pass down native compiler using CC_BUILD when cross-compiling. 2007-08-01 16:20:42 +00:00
drochner
b1558ffc40 update to 2.3.5
changes:
-Some subglyphs in TrueType fonts were handled incorrectly due to
 a missing graphics state reinitialization.
-Large .Z files  (as distributed with some X11  packages) weren't
 handled correctly, making FreeType increase the heap stack in an
 endless loop.
-A large  number of  bugs have  been fixed  to avoid  crashes and
 endless loops with invalid fonts.
-API extensions for caching, TT handling
-autohinter improvement for non-Latin scripts
-Support for Windows FON files in PE format
2007-07-06 18:16:28 +00:00
tron
83a2d61224 Apply patch from CVS repository to fix the security vulnerability
reported in CVE-2007-2754. Bump package revision.
2007-05-19 16:24:48 +00:00
drochner
533830deed update to 2.3.4
changes:
-includes security fixes for bdf font handling (was patched in pkgsrc)
-fixes for truetype butecode interpreter
2007-04-10 16:55:31 +00:00
drochner
100be868e2 pull in a patch from freetype CVS:
* src/bdf/bdflib.c (setsbit, sbitset): Handle values >= 128
  gracefully.
  (_bdf_set_default_spacing): Increase `name' buffer size to 256 and
  issue an error for longer names.
  (_bdf_parse_glyphs): Limit allowed number of glyphs in font to the
  number of code points in Unicode.

This fixes CVE-2007-1351.
2007-04-05 16:29:38 +00:00
drochner
8a0b265fe9 Now that Joerg has patched out the real culprit, my poor workaround
is not necessary anymore.
2007-03-24 12:49:08 +00:00
joerg
e1f1e57afb DragonFly's /bin/sh is far from being happy about the stand-alone
backtick used for asthetic reasons.
2007-03-23 22:09:18 +00:00
drochner
92aacdf3ef update to 2.3.2
This switches to the new stable branch. There are too many API additions
and other changes to list here -- see the changelog.
Some notes:
-There is an unpatented hinter built in per default. The "truetype"
 pkgsrc option does still enable another one -- the documentation here
 is inconsistent, so I've left this alone for now. I couldn't find
 a visible effect with my fonts on my display.
-New pkgsrc option "subpixel". Enables subpixel rendering for LCDs.
 Not default because there are patent issues.
-There is sone strange effect of the CONFIG_SHELL environment valiable
 on the "configure" script. Worked around this by overriding the
 env var in the pkg Makefile. Someone understanding shell quoting might
 be able to locate the underlying problem.
2007-03-20 15:20:33 +00:00
joerg
8e7838bc28 DESTDIR support. 2006-11-03 22:19:54 +00:00
joerg
4d98ef21f6 Add two patches to work around issues from CVE-2006-3467. Patches are
directly from FreeType CVS. Bump revision.
2006-08-22 18:43:50 +00:00
minskim
6020698c60 Link against the Carbon library if the framework is available. This fixes
PR 33858.

Bump PKGREVISION.
2006-07-23 14:37:08 +00:00
jlam
c16221a4db Change the format of BUILDLINK_ORDER to contain depth information as well,
and add a new helper target and script, "show-buildlink3", that outputs
a listing of the buildlink3.mk files included as well as the depth at
which they are included.

For example, "make show-buildlink3" in fonts/Xft2 displays:

	zlib
	fontconfig
	    iconv
	    zlib
	    freetype2
	    expat
	freetype2
	Xrender
	    renderproto
2006-07-08 23:10:35 +00:00
jlam
9430e49307 Track information in a new variable BUILDLINK_ORDER that informs us
of the order in which buildlink3.mk files are (recursively) included
by a package Makefile.
2006-07-08 22:38:58 +00:00
tron
a2b1f32b35 Remove stale checksum for "patch-aa". Problem pointed out by Dave Sainty. 2006-05-31 10:24:54 +00:00
tron
0d188c9d61 Update "freetype2" package to version 2.2.1. Changes since version 2.1.10
include:
- security fixes for SA20100
- version 2.2 no longer exposes its internals
- various improvements in font handling
2006-05-29 22:05:21 +00:00
rillig
96fc47c14f Aligned the last line of the buildlink3.mk files with the first line, so
that they look nicer.
2006-04-12 10:26:59 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
jlam
d71a98aa8e Avoid extra stat() calls by not repeatedly checking whether a file
exists on the disk -- we can just check whether a variable defined by
find-files.mk is "__nonexistent__" or not.
2006-03-30 18:06:17 +00:00
reed
a0a19a25a2 Add another directory to the Cflags variable in the
pkg-config file.

This fixes problem where non-pkgsrc software builds using this info
can also find the ft2build.h header. (Not noticed in pkgsrc itself
because that include file is already known.)

This is also done in upstream version in the 2.2 release candidates.
The commit log message upstream is:
    builds/unix/freetype2.in (CFlags): Add missing directory.

Bump PKGREVISION.
2006-02-25 00:35:41 +00:00
wiz
387183aeac Do not remove share/aclocal, it's in the *dist files. 2006-02-16 18:09:27 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
rillig
45fa737dcf Tobias Nygren said in PR 31387 that the work-around for a gcc compiler
bug on netbsd-*-alpha is not needed anymore. Fixes PR 31387.
2005-11-19 14:11:30 +00:00
rillig
c3a57e19bf Explicitly set BUILD_DIRS to show that it is different from CONFIGURE_DIRS. 2005-11-04 11:01:08 +00:00
hiramatsu
1efdbdb178 Force to use src/base/ftsystem.c instead of of builds/unix/ftsystem.c
because it doesn't work properly on OepnBSD.
2005-10-12 04:43:26 +00:00
wiz
5c11268df7 Remove some more *LEGACY* settings that are over a month old and
thus were before 2005Q3.
2005-10-05 13:29:49 +00:00
adam
d451dbaf63 Changes 2.1.10:
I. IMPORTANT BUG FIXES
    - The size comparison for BDF and PCF files could fail sometimes.
    - Some  CFF files  were still not  loaded  correctly.   Patch from
      Derek Noonburg.
    - The stroker still had some serious bugs.
    - FreeType didn't properly parse empty Type 1 glyphs.
    - An unbound dynamic buffer growth was fixed in the PFR loader.
    - Several bugs have been fixed in the cache sub-system.
    - The auto-hinter didn't work properly for fonts without a Unicode
      charmap -- it even refused to load the glyphs.
  II. IMPORTANT CHANGES
    - Many fixes have been applied to drastically reduce the amount of
      heap   memory   used   by   FreeType,   especially   when  using
      memory-mapped font files  (which is the default on Unix  systems
      which support them).
    - The auto-hinter  has been replaced with a new module, called the
      `auto-fitter'.  It consumes  less memory  than its  predecessor,
      and it is  prepared to support non-latin scripts  better in next
      releases.
    - George Williams  contributed code to read  kerning data from PFM
      files.
  III. MISCELLANEOUS
    - The BDF driver  no longer converts  all returned bitmaps  with a
      depth of 2bpp or 4bpp to a depth of 8bpp.
    - A new option `--ftversion' has been  added to freetype-config to
      return the FreeType version.
    - The  memory  debugger  has  been  updated   to  dump  allocation
      statistics on  all allocation  sources in the library.
2005-06-30 13:01:28 +00:00
adam
7deb88ff57 Makefile cleanup to close PR#30492 2005-06-14 15:44:14 +00:00
jlam
08c60ab83d Coalesce the common makefile code in the builtin.mk file that inspect
the X11 distribution using imake into mk/buildlink3/imake-check.mk.
imake-check.mk calls out to a helper shell script mk/buildlink3/imake-check
that generates the required Imakefiles and runs imake.  Remove the
now extraneous builtin-imake.mk files as the builtin.mk files can now
contain the name of the imake symbol to check.
2005-06-03 19:12:49 +00:00
jlam
c85165ac07 Only check for the existence of the first word of ${IMAKE} since it may
contain a command plus arguments.  We use the standard idiom to extract
the first word of a list stored in a make variable:

	VAR_CMD=	${VAR:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}

XXX This can be replaced with a more succinct use of variable modifiers
XXX when we update the bootstrap bmake to match the latest NetBSD make
XXX sources, i.e.:
XXX
XXX	VAR_CMD=	${VAR:[1]}
2005-06-03 17:02:36 +00:00
jlam
88aeda0672 Don't require a read-write pkgsrc tree when invoking imake. We avoid
this requirement by using TMPDIR as the read-write location demanded
by using imake.
2005-06-03 16:03:09 +00:00
jlam
7debfabe11 Use IMAKE_MAKE instead of MAKE to process the makefile generated by imake. 2005-06-01 18:33:02 +00:00
jlam
95fd1f6ec9 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
Several changes are involved since they are all interrelated.  These
changes affect about 1000 files.

The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk.  bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files.  Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred.  This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.

The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages.  Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc.  This modification is a nod toward LOCALBASE=/usr.  The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.

The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc.  The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.

The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files.  Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories.  These files are used as input
to imake since imake can't use stdin for that purpose.

The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead.  This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed.  Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries.  Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
2005-06-01 18:02:37 +00:00
dillo
f81ae835ad Packages have no business modifying PKG_DEFAULT_OPTIONS -- it's a
user settable variable.  Set PKG_SUGGESTED_OPTIONS instead.  Also,
make use of PKG_OPTIONS_LEGACY_VARS.

Reviewed by wiz.
2005-05-31 10:01:36 +00:00