Commit graph

81 commits

Author SHA1 Message Date
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
jmmv
ab17dd00b3 PKGCONFIG_OVERRIDE is relative to WRKSRC. 2004-02-14 18:26:26 +00:00
jlam
ec993afa1a LIBTOOL_OVERRIDE and SHLIBTOOL_OVERRIDE are now lists of shell globs
relative to ${WRKSRC}.  Remove redundant LIBTOOL_OVERRIDE settings that
are automatically handled by the default setting in bsd.pkg.mk.
2004-02-14 17:21:32 +00:00
jlam
d2b62c66fb Create a new variable PREFER_NATIVE that has the opposite semantics
as PREFER_PKGSRC.  Preferences are determined by the most specific
instance of the package in either PREFER_PKGSRC or PREFER_NATIVE.  If
a package is specified in neither or in both variables, then PREFER_PKGSRC
has precedence over PREFER_NATIVE.
2004-02-12 02:35:06 +00:00
jlam
1edfa505ed Reorganize code so that any dependencies are checked as part of deciding
whether the software is built-in or not.  This facilitates implementing
the forthcoming PKGSRC_NATIVE variable.
2004-02-12 01:59:37 +00:00
reed
7baa7e4a1d Raise BUILDLINK_DEPENDS.freetype2 to at least 2.1.3.
Even 2.0.9 is not good enough for newer fontconfig; for example,
gtk2 won't buildlink correctly (and will use older X version of
include/freetype2/freetype/ftbdf.h) and libfontconfig needs
FT_Get_BDF_Property which is not defined.

No PKGREVISION bump is needed, because would not even build in
first place.
2004-02-09 20:20:43 +00:00
seb
a45e4752ed bsd.pkg.mk adds RPATH_FLAG to CONFIGURE_ENV so no need
to add it here.
2004-02-07 10:46:10 +00:00
jlam
7699290f10 If we're passing through MAKEFLAGS variables whose values may contain
spaces, use the :Q modifier instead of double-quoting the value.  This
avoids breakage when executing the just-in-time su targets.
2004-02-06 19:04:24 +00:00
jlam
317cc72791 Make PREFER_PKGSRC just yes/no or a list of packages. This makes it
simpler to understand.
2004-02-05 07:17:14 +00:00
jlam
e7133cac25 Rename BUILDLINK_PREFER_PKGSRC to PREFER_PKGSRC so that we can use its
value outside of buildlink-related files.
2004-02-05 07:06:15 +00:00
jlam
07a9d8dfb2 Support a new global variable:
BUILDLINK_PREFER_PKGSRC
	This variable determines whether or not to prefer the pkgsrc
	versions of software that is also present in the base system.

	This variable is multi-state:
		defined, or "yes"	always prefer the pkgsrc versions
		not defined, or "no"	only use the pkgsrc versions if
					needed by dependency requirements

	This can also take a list of packages for which to prefer the
	pkgsrc-installed software.  The package names may be found by
	consulting the value added to BUILDLINK_PACKAGES in the
	buildlink[23].mk files for that package.
2004-02-05 06:58:02 +00:00
grant
59daad6697 replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make. 2004-01-24 15:46:42 +00:00
jlam
01a5abff01 Support BUILDLINK_DEPENDS.<pkg> being a list of values. 2004-01-24 03:12:31 +00:00
jlam
1e9c78c32d Make sure that <freetype/freetype.h> is found. Also if we use the
XFree86-supplied freetype2, then set USE_X11.
2004-01-24 01:46:16 +00:00
jlam
6ff48e076b bl3ify 2004-01-05 11:53:39 +00:00
jlam
d279e6f535 Use S/+$// instead of C/\+$// to save a backslash. Very highly
recommended by seb :)
2004-01-05 11:05:44 +00:00
jlam
c9ff27d270 Sow BUILDLINK_USE_BUILTIN.<pkg> and reap _NEED_<PKG> variables. 2004-01-05 09:31:31 +00:00
jlam
47bb2aae5f Re-arrange to match example buildlink3.mk file in bsd.buildlink3.mk. 2004-01-04 23:34:04 +00:00
adam
be4fc71def Back to 2.1.5 2003-12-19 13:45:59 +00:00
adam
21b5805b7e CHANGES BETWEEN 2.1.7 and 2.1.6:
- Updated  to newest  libtool  version, fixing  build problems  on
      various platforms.
    - On  Unix  platforms,  `make  install' didn't  copy  the  correct
      `ftconfig.h' file.

CHANGES BETWEEN 2.1.6 and 2.1.5:
    - The PFR  font driver didn't  load kerning tables  correctly, and
      the functions in FT_PFR_H didn't work at all.
    - Type 1 font  files in  binary format  (PFB) with  an end-of-file
      indicator weren't accepted by the FreeType engine.
    - Fonts which contain /PaintType  and /StrokeWidth no longer cause
      a segfault.  This bug has been introduced in version 2.1.5.
    - Fonts  loaded  with   FT_LOAD_RENDER  no  longer  cause  strange
      results.  This bug has been introduced in version 2.1.5.
    - Some  Windows   (bitmap)  FNT/FON  files   couldn't  be  handled
      correctly.
    - The internal  module API  has been heavily  changed in  favor of
      massive simplifications within the font engine.
    - The PostScript  parser has been enhanced to  handle comments and
      strings   correctly.   Additionally,   more  syntax   forms  are
      recognized.
    - Added the  optional unpatented hinting system  for TrueType.
    - There  is now  a guard  in the  public header  files  to protect
      against inclusion of freetype.h from FreeType 1.
    - Direct inclusion of freetype.h  and other public header files no
      longer works.  You have to use the documented scheme
          #include <ft2build.h>
          #include FT_FREETYPE_H
      to load freetype.h with  a symbolic name.  This protects against
      renaming  of public  header  files (which  shouldn't happen  but
      actually  has, avoiding two  public header  files with  the same
      name).
2003-12-18 11:28:42 +00:00
grant
d007a14df0 add -I${BUILDLINK_PREFIX.freetype2}/include/freetype2 to CPPFLAGS so
that packages can find header files in freetype/.
2003-10-30 12:28:56 +00:00
reed
61904ea21c Use correct freetype-config (just in case system has another in path). 2003-10-28 18:55:36 +00:00
jlam
57635c2e5d Match the buildlink3.mk guidelines set out in revision 1.22 of
bsd.buildlink3.mk.
2003-09-30 10:18:57 +00:00
jlam
f339438669 Conform to latest buildlink3.mk guidelines using *_BUILDLINK3_MK guards
to protect more parts of buildlink3.mk files against multiple inclusion.
2003-09-30 00:42:32 +00:00
adam
e9858718e4 PKGCONFIG_OVERRIDE added 2003-09-15 08:48:41 +00:00
jlam
0aa210c78e Provide definitions for BUILDLINK_PREFIX.<pkg> when the dependency may be
satisfied by a base system (X11R6) component.
2003-09-14 01:47:51 +00:00
jlam
c74a02ee07 Need to use :C instead of :S to get the "pop" action to work properly. 2003-09-13 23:21:19 +00:00
adam
1db4d5a465 LATEST CHANGES BETWEEN 2.1.5 and 2.1.4
I. IMPORTANT BUG FIXES
    - Parsing the /CIDFontName field now removes the leading slash to
      be in sync with other font drivers.
    - gzip support was buggy. Some fonts could not be read.
    - Fonts which have nested subglyphs more than one level deep no
      longer cause a segfault.
    - Creation of synthetic cmaps for fonts in CFF format was broken
      partially.
    - Numeric font dictionary entries for synthetic fonts are no longer
      overwritten.
    - The font matrix wasn't applied to the advance width for Type1, CID,
      and CFF fonts. This caused problem when loading certain synthetic
      Type 1 fonts like "Helvetica Narrow"
    - The test for the charset registry in BDF and PCF fonts is now
      case-insensitive.
    - FT_Vector_Rotate rotating sometimes returned strange values due to
      rounding errors.
    - The PCF driver now returns the correct number of glyphs (including
      an artificial `notdef' glyph at index 0).
    - FreeType now supports buggy CMaps which are contained in many CJK
      fonts from Dynalab.
    - Opening an invalid font on a Mac caused a segfault due to
      double-freeing memory.
    - BDF fonts with more than 32768 glyphs weren't supported properly.

  II. IMPORTANT CHANGES
    - Accessing bitmap font formats has been synchronized.  To do that
      the FT_Bitmap_Size structure has been extended to contain new
      fields `size', `x_ppem', and `y_ppem'.
    - The FNT driver now returns multiple faces, not multiple strikes.
    - The `psnames' module has been updated to the Adobe Glyph List
      version 2.0.
    - The `psnames' module now understands `uXXXX[X[X]]' glyph names.
    - The algorithm for guessing the font style has been improved.
    - For fonts in sfnt format, root->height is no longer increased if
      the line gap is zero.  There exist fonts (containing e.g. form
      drawing characters) which intentionally have a zero line gap value.
    - ft_glyph_bbox_xxx flags are now deprecated in favour of
      FT_GLYPH_BBOX_XXX.
    - ft_module_xxx flags are now deprecated in favour of FT_MODULE_XXX.
    - FT_ENCODING_MS_{SJIS,GB2312,BIG5,WANSUNG,JOHAB} are now deprecated
      in favour of FT_ENCODING_{SJIS,GB2312,GIB5,WANSONG,JOHAB} -- those
      encodings are not specific to Microsoft.

  III. MISCELLANEOUS
    - The autohinter has been further improved; for example, `m' glyphs
      now retain its vertical symmetry.
    - Partial support of Mac fonts on non-Mac platforms.
    - `make refdoc' (after first `make') builds the HTML documentation.
      You need Python for this.
    - The make build system should now work more reliably on DOS-like
      platforms.
    - Support for EMX gcc and Watson C/C++ compilers on MS-DOS has been
      added.
    - Better VMS build support.
    - Support for the pkg-config package by providing a `freetype.pc'
      file.
    - New configure option --with-old-mac-fonts for Darwin.
    - Some source files have been renamed (mainly to fit into the 8.3
      naming scheme).
2003-09-13 08:32:18 +00:00
jlam
440bc402a1 Move BUILDLINK_CHECK_BUILTIN.<pkg> documentation into bsd.buildlink3.mk. 2003-09-05 11:39:02 +00:00
jlam
54f69b4eda Add some buildlink3.mk files needed by x11-links>=0.13. 2003-09-02 07:12:16 +00:00
jschauma
61fd174813 On IRIX, we need to create a .libs directory, so that the linker doesn't
fail.  This makes this package compile and install cleanly under Irix.
From PR pkg/22570 by Bas van Oostveen.  Thanks!
2003-08-24 16:31:36 +00:00
martti
ee90b572a6 COMMENT should start with a capital letter. 2003-07-21 16:45:54 +00:00
grant
4083b24390 s/netbsd.org/NetBSD.org/ 2003-07-17 21:31:04 +00:00
wiz
51832d2e6c Comment out sourceforge master site -- contains different tarball for
2.1.4 with same contents. Still, gives a checksum mismatch.
Noted by Christopher Richards in relation with PR 21191.
2003-04-17 07:19:51 +00:00
wiz
69ef771841 Update to 2.1.4, provided by Christopher Richards in PR 21191.
Extract of changes:
    - a fix in the Gzip stream reader, it couldn't read certain .gz files
      properly due to a small typo. In certain cases, FreeType could also
      loop endlessly when trying to load tiny gzipped files.
    - certain fonts couldn't be loaded by 2.1.3 because they lacked a
      Unicode charmap (e.g. SYMBOL.TTF). FreeType erroneously rejected
      them.
    - the CFF loader was modified to accept fonts which only
      contain a subset of their reference charset. This prevented the
      correct use of PDF-embedded fonts.
    - the logic to detect Unicode charmaps has been modified. this is required
      to support fonts which include both 16-bit and 32-bit charmaps (like
      very recent asian ones) using the new 10 and 12 SFNT formats.
    - the TrueType loader now limits the depth of composite glyphs. This is
      necessary to prevent broken fonts to break the engine by blowing the
      stack with recursive glyph definitions.
    - the CMap cache is now capable of managing UCS-4 character codes that
      are mapped through extended charmaps in recent TrueType/OpenType fonts
    - the cache sub-system now properly manages out-of-memory conditions,
      instead of blindly reporting them to the caller. This means that it
      will try to empty the cache before restarting its allocations to see
      if that can help.
    - the PFR driver didn't return the list of available embedded bitmaps
      properly.

    - David Chester contributed some enhancements to the auto-hinter that
      significantly increase the quality of its output. The Postscript hinter
      was also improved in several ways..
    - the FT_RENDER_MODE_LIGHT render mode was implemented
    - a new API, called FT_Get_BDF_Property has been added to FT_BDF_H to
      retrieve BDF properties from BDF _and_ PCF font files. THIS IS STILL
      EXPERIMENTAL, since it hasn't been properly tested yet.
    - a Windows FNT specific API has been added, mostly to access font
      headers. This is used by Wine
    - TrueType tables without a "hmtx" table are now tolerated when an
      incremental interface is used. This happens for certain Type42 fonts
      passed from Ghostscript to FreeType.
    - the PFR font driver is now capable of returning the font family and
      style names when they're available (instead of the sole "FontID"). This
      is performed by parsing an *undocumented* portion of the font file !!
2003-04-16 08:53:45 +00:00
dillo
830413cb62 fix two bugs in freetype-config that prevent it from working outside
of pkgsrc:
- place -I${LOCALBASE}/freetype2 before -I${LOCALBASE}, since
  otherwise freetype 1 headers might be used
- add -Wl,${RPATH_FLAG}

bump pkgrevision
2003-03-21 22:25:50 +00:00
wiz
6d6bf8d2bd If we depend on the package, depend on the latest version
after a library major bump.
2002-12-24 05:48:28 +00:00
wiz
896d3a455a Update to 2.1.3. Changes are too many to list here, for the most interesting
one see http://www.freetype.org/freetype2/2.1.3-explained.html .
2002-12-24 00:04:16 +00:00
jlam
903c7eec09 Create a dummy libtool archive if we use the built-in freetype2 library
from the XFree86 distribution.  This avoids problems with libtool finding
libfreetype.la if graphics/freetype2 is installed as well.  This addresses
PR 19496 by Bill Sommerfeld and reported independently by Steve Bellovin
on the netbsd-users mailing list.
2002-12-23 02:06:07 +00:00
heinz
622ba2a34e Makes awk expression work with XFree 4.1.0 (which has no FREETYPE_PATCH
in freetype.h).
2002-10-19 19:05:39 +00:00
jlam
26ef830f98 Unused. 2002-10-08 09:59:30 +00:00
jlam
368120b32f If we're using the built-in freetype2, then USE_X11 is implied. 2002-10-08 09:57:32 +00:00
jlam
424cd4584d Create an appropriate freetype2 package name for the built-in freetype2
distributed with XFree86 4.x.  This package name is used to check against
BUILDLINK_DEPENDS.freetype2 to see if we need to install the pkgsrc
freetype2 or if the built-in one is sufficient.
2002-10-08 09:32:33 +00:00
jlam
c0427e08c8 Don't prohibit building freetype2 even if it's distributed with XFree86 as
we may need to install a newer freetype2 to satisfy a package dependency.
2002-10-08 09:25:58 +00:00
jlam
f8791d0d40 Back out previous...we were actually just using the wrong *.in script;
we want the buildlink2 one.
2002-09-26 20:24:08 +00:00
wiz
fe8c5210e6 Fix replacement freetype2-config script on X3.3.6 machines. 2002-09-26 17:35:09 +00:00