Commit graph

126 commits

Author SHA1 Message Date
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
jlam
585534220c Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:
USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
2005-05-22 20:07:36 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
agc
6a7b384635 Add RMD160 digests 2005-02-24 08:45:01 +00:00
gavan
379fd5f6e9 Force detection of grep and egrep by the configure script.
Unfortunately, configure doesn't always manage to correctly pick up these
values from GREP and EGREP, so we pass them in as cached values. This way,
configure still doesn't always print them correctly, but they end up in
config.status, which is the end goal.

This solves the problem where on Solaris, configure detects the wrong grep
and worse still, fails to detect a suitable egrep at all.
2005-02-09 12:13:58 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
jlam
1a280185e1 Mechanical changes to package PLISTs to make use of LIBTOOLIZE_PLIST.
All library names listed by *.la files no longer need to be listed
in the PLIST, e.g., instead of:

	lib/libfoo.a
	lib/libfoo.la
	lib/libfoo.so
	lib/libfoo.so.0
	lib/libfoo.so.0.1

one simply needs:

	lib/libfoo.la

and bsd.pkg.mk will automatically ensure that the additional library
names are listed in the installed package +CONTENTS file.

Also make LIBTOOLIZE_PLIST default to "yes".
2004-09-22 08:09:14 +00:00
jlam
9d5426ff76 Change the way that legacy USE_* and FOO_USE_* options are converted
into the bsd.options.mk framework.  Instead of appending to
${PKG_OPTIONS_VAR}, it appends to PKG_DEFAULT_OPTIONS.  This causes
the default options to be the union of PKG_DEFAULT_OPTIONS and any
old USE_* and FOO_USE_* settings.

This fixes PR pkg/26590.
2004-08-22 19:32:51 +00:00
jlam
23d49c1ad9 Convert to use bsd.options.mk. 2004-08-05 02:51:09 +00:00
jlam
3b561c5b17 Remove unused patch. It was patching the configure script to substitute
for @RPATH_FLAG@, but that didn't exist anywhere in the sources.
2004-08-05 02:50:37 +00:00
adam
1a376d7c4a Changes 2.1.9:
I. IMPORTANT BUG FIXES

    - The function  `FT_Get_CharMap_Index' was only declared,  without
      any  real  code.   For  consistency,  it  has  been  renamed  to
      `FT_Get_Charmap_Index'.   (This function is needed  to implement
      cmap caches.)

    - `FT_Outline_Get_BBox'  sometimes returned  incorrect values  for
      conic outlines (e.g., for TrueType fonts).

    - Handling of `bhed' table has been fixed.

    - The TrueType driver with enabled byte code interpreter sometimes
      returned artifacts due to incorrect rounding.  This bug has been
      introduced after version 2.1.4.

    - The BDF driver dropped the last glyph in the font.

    - The BDF driver now uses the DEFAULT_CHAR property (if available)
      to select a glyph shape for the undefined glyph.


  II. IMPORTANT CHANGES

    - George  Williams   contributed  code  to   handle  Apple's  font
      distortion technology found in GX fonts (`avar', `cvar', `fvar',
      and `gvar' tables;  the Multiple Masters  API has been  slightly
      extended to cope with the new functionality).

    - The `FT_GlyphSlotRec' structure has been extended:  The elements
      `lsb_delta' and  `rsb_delta' give the difference  between hinted
      and  unhinted  left and right  side bearings  if autohinting  is
      active.  Using those values can improve the inter-letter spacing
      considerably.   See the documentation of  `FT_GlyphSlotRec'  and
      the `ftstring' demo program how to use it.


  III. MISCELLANEOUS

    - A new  documentation file  `formats.txt' describes various  font
      formats supported (and not supported) by FreeType.
2004-08-02 12:30:01 +00:00
wiz
5a1ea1fb96 Remove references to buildlink2. 2004-07-06 22:51:34 +00:00
wiz
4237d54a34 Unused. 2004-07-06 22:41:15 +00:00
cube
e0f3a9c797 Apply patch from PR 25907 by Christopher Richards. This is probably the
best we can do until the code is actually fixed.  Advised by mrg.
2004-06-15 07:29:00 +00:00
recht
81113eb85f Reduce optimization level to -O on alpha to avoid compiler bugs.
patch provided by Joachim Kuebart in PR pkg/25742
2004-05-29 23:36:10 +00:00
grant
879d3c1c7e s/anti-aliased/anti-aliasing/ 2004-05-22 04:35:53 +00:00
wiz
7fc657494d Make it even more readable. 2004-05-19 10:39:59 +00:00
grant
cfa28d0c97 came here to nuke some whitespace and noticed that the text didn't
read very well, so nuke whitespace, improve text, | fmt 70 75
2004-05-19 09:24:57 +00:00
wiz
07aa9a0d15 Depend on freetype2>=2.1.8, since dependent packages have been adapted to
the new version.
2004-05-18 10:21:16 +00:00
grant
aa42432d2b freetype2 needs a GNUish egrep. 2004-05-15 11:17:14 +00:00
adam
bde1588a89 Changes 2.1.8:
* bug fixes

* Both  PCF  and BDF  drivers  now  handle  the SETWIDTH_NAME  and
  ADD_STYLE_NAME    properties.     Values    are   appended    to
  face->style_name; example: `Bold SemiCondensed'.

* The PCF driver now handles bitmap  fonts compressed with the LZW
  algorithm (extension .pcf.Z, compressed with `compress').

* A  new  API   function  `FT_Get_CMap_Language_ID'  (declared  in
  `tttables.h')  is  available  to   get  the  language  ID  of  a
  TrueType/SFNT cmap.

* The hexadecimal format of  data after the `StartData' command in
  CID-keyed Type 1 fonts is now supported.  While this can't occur
  in  file-based   fonts,  it  can   happen  in  document-embedded
  resources of PostScript documents.

* Embedded bitmaps in SFNT-based CFF fonts are now supported.

* A simple  API is  now available  to control  FreeType's  tracing
  mechanism if compiled  with FT_DEBUG_LEVEL_TRACE.   See the file
  `ftdebug.h' for more details.

* YAMATO Masatake contributed improved  handling of MacOS resource
  forks on non-MacOS platforms (for example, Linux can mount MacOS
  file systems).

* Support for MacOS has been improved; there is now a new function
  `FT_New_Face_From_FSSpec'  similar to `FT_New_Face'  except that
  it accepts an FSSpec instead of a path.

* The cache sub-system has been rewritten.
2004-04-27 14:59:49 +00:00
recht
3753e669e1 Add MKTTINTERP knob to enable the bytecode interpreter for TrueType fonts.
This closes PR 24935 by Martin Husemann.
2004-03-29 10:17:49 +00:00
jlam
6d92080aa2 Match the template builtin.mk file in bsd.builtin.mk, and make the two
packages that use builtin.mk files (graphics/xpm and pkgtools/x11-links)
use the new format correctly.
2004-03-29 05:43:28 +00:00
jlam
d0b4c54eb6 Split out the code that deals with checking whether the software is
built-in or not into a separate builtin.mk file.  The code to deal
checking for built-in software is much simpler to deal with in pkgsrc.

The buildlink3.mk file for a package will be of the usual format
regardless of the package, which makes it simpler for packagers to
update a package.

The builtin.mk file for a package must define a single yes/no variable
USE_BUILTIN.<pkg> that is used by bsd.buildlink3.mk to decide whether
to use the built-in software or to use the pkgsrc software.
2004-03-10 17:57:14 +00:00
recht
4de5532b13 Use tab instead of spaces for indentation to make pkglint happy. 2004-02-29 00:22:43 +00:00
jlam
bf6e059da4 Reorder some lines so that BUILDLINK_USE_BUILTIN.<pkg> set in the
environment overrides all other settings.
2004-02-18 16:35:27 +00:00