pkgsrc/graphics/freetype2/Makefile
adam a91f894248 freetype2: updated to 2.10.4
FreeType 2.10.4

This is an emergency release, fixing a severe vulnerability in embedded PNG bitmap handling (see here for more).

All users should update immediately.


FreeType 2.10.3

This is a maintenance release, having better support for TrueType glyphs with overlapping contours. See the list of changes for more details.

A warning for distribution maintainers: Version 2.10.3 and later may break the build of ghostscript, due to ghostscript's use of a withdrawn macro that wasn't intended for external usage.
2020-10-21 08:26:08 +00:00

62 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.121 2020/10/21 08:26:08 adam Exp $
DISTNAME= freetype-2.10.4
PKGNAME= ${DISTNAME:S/-/2-/}
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=freetype/}
MASTER_SITES+= http://download.savannah.gnu.org/releases/freetype/
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.freetype.org/
COMMENT= Font rendering engine and library API
LICENSE= gnu-gpl-v2
USE_LIBTOOL= yes
USE_TOOLS+= grep gmake pkg-config
GNU_CONFIGURE= yes
CONFIGURE_DIRS= builds/unix
BUILD_DIRS= .
CONFIGURE_ARGS+= --includedir=${PREFIX}/include
CONFIGURE_ARGS+= --enable-shared
CONFIGURE_ARGS+= --with-harfbuzz=no
CONFIGURE_ENV+= ac_cv_path_GREP=${GREP:Q} ac_cv_path_EGREP=${EGREP:Q}
# Remove this when all dependent packages have switched to pkg-config
CONFIGURE_ARGS+= --enable-freetype-config
.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"
.include "options.mk"
# 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
CONFIGURE_ENV.OpenBSD+= ac_cv_func_mmap_fixed_mapped=no
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
CONFIGURE_ENV+= CC_BUILD=${NATIVE_CC:Q}
.endif
post-configure:
cd ${WRKSRC} && ${LN} -f -s builds/unix/unix.mk config.mk
.if ${OPSYS} == "IRIX"
${MKDIR} ${WRKSRC}/.libs
.endif
.include "../../archivers/bzip2/buildlink3.mk"
# Avoid creating a fake zlib.pc, because if it does
# we will add a Requires for it to our .pc file
CHECK_BUILTIN.zlib:=yes
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"