CHANGES BETWEEN 2.4.1 and 2.4.2 I. IMPORTANT BUG FIXES - A stack overflow in CFF Type2 CharStrings interpreter is fixed. - Handling Type 42 font deallocation was broken; additionally, the library is now more robust against malformed Type 42 fonts. II. MISCELLANEOUS - Two new functions, `FT_Reference_Library' (in FT_MODULE_H) and `FT_Reference_Face' (in FT_FREETYPE_H), have been added to simplify life-cycle management. A counter gets initialized to 1 at the time an FT_Library (or FT_Face) structure is created. The two new functions increment the respective counter. `FT_Done_Library' and `FT_Done_Face' then only destroy a library or face if the counter is 1, otherwise they simply decrement the counter.
66 lines
1.7 KiB
Makefile
66 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.74 2010/08/08 16:06:02 tnn Exp $
|
|
|
|
DISTNAME= freetype-2.4.2
|
|
PKGNAME= ${DISTNAME:S/-/2-/}
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=freetype/} \
|
|
ftp://ring.aist.go.jp/pub/graphics/freetype/freetype2/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= rh@NetBSD.org
|
|
HOMEPAGE= http://www.freetype.org/
|
|
COMMENT= Font rendering engine and library API
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= grep gmake
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_DIRS= ${WRKSRC}/builds/unix
|
|
BUILD_DIRS= ${WRKSRC}
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include
|
|
CONFIGURE_ARGS+= --enable-shared
|
|
CONFIGURE_ENV+= ac_cv_path_GREP=${GREP:Q} ac_cv_path_EGREP=${EGREP:Q}
|
|
|
|
.if exists(/System/Library/Frameworks/Carbon.framework)
|
|
LDFLAGS+= -framework Carbon
|
|
.endif
|
|
|
|
PKGCONFIG_OVERRIDE= builds/unix/freetype2.in
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.include "../../mk/compiler.mk"
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.freetype2
|
|
PKG_SUPPORTED_OPTIONS= subpixel
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
# subpixel (lcd) rendering, patent issues
|
|
.if !empty(PKG_OPTIONS:Msubpixel)
|
|
CFLAGS+= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING
|
|
.endif
|
|
|
|
# source code breaks strict aliasing in gcc>=2.95
|
|
.if !empty(CC_VERSION:Mgcc-[3-9]*) || !empty(CC_VERSION:Mgcc-2.95*)
|
|
CFLAGS+= -fno-strict-aliasing
|
|
.endif
|
|
|
|
# tell configure not to use unix-specific version of ftsystem.c on OpenBSD
|
|
.if ${OPSYS} == "OpenBSD"
|
|
CONFIGURE_ENV+= ac_cv_func_mmap_fixed_mapped=no
|
|
.endif
|
|
|
|
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
|
|
CONFIGURE_ENV+= CC_BUILD=${NATIVE_CC:Q}
|
|
.endif
|
|
|
|
post-configure:
|
|
cd ${WRKSRC} && ${LN} -s builds/unix/unix.mk config.mk
|
|
.if ${OPSYS} == "IRIX"
|
|
${MKDIR} ${WRKSRC}/.libs
|
|
.endif
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|