pkgsrc/graphics/freetype2/Makefile

67 lines
1.7 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.88 2012/10/06 14:10:50 asau Exp $
DISTNAME= freetype-2.4.10
PKGNAME= ${DISTNAME:S/-/2-/}
CATEGORIES= graphics
2011-03-11 13:28:03 +01:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=freetype/}
EXTRACT_SUFX= .tar.bz2
2003-07-17 23:31:04 +02:00
MAINTAINER= rh@NetBSD.org
HOMEPAGE= http://www.freetype.org/
COMMENT= Font rendering engine and library API
LICENSE= gnu-gpl-v2
2004-01-05 12:53:39 +01:00
PKG_INSTALLATION_TYPES= overwrite pkgviews
2004-08-05 04:51:09 +02:00
USE_LIBTOOL= yes
USE_TOOLS+= grep gmake
2004-08-05 04:51:09 +02:00
GNU_CONFIGURE= yes
CONFIGURE_DIRS= builds/unix
BUILD_DIRS= .
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
2004-08-05 04:51:09 +02:00
.include "../../mk/bsd.options.mk"
# subpixel (lcd) rendering, patent issues
.if !empty(PKG_OPTIONS:Msubpixel)
CFLAGS+= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING
.endif
2004-08-05 04:51:09 +02:00
# 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 "../../archivers/bzip2/buildlink3.mk"
2005-06-14 17:44:14 +02:00
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"