2012-10-06 16:10:39 +02:00
|
|
|
# $NetBSD: Makefile,v 1.88 2012/10/06 14:10:50 asau Exp $
|
2000-11-27 15:42:19 +01:00
|
|
|
|
2012-07-02 18:48:24 +02:00
|
|
|
DISTNAME= freetype-2.4.10
|
2006-05-30 00:05:21 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/-/2-/}
|
2000-11-27 15:42:19 +01:00
|
|
|
CATEGORIES= graphics
|
2011-03-11 13:28:03 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=freetype/}
|
2002-12-24 01:04:16 +01:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2000-11-27 15:42:19 +01:00
|
|
|
|
2003-07-17 23:31:04 +02:00
|
|
|
MAINTAINER= rh@NetBSD.org
|
2000-11-27 15:42:19 +01:00
|
|
|
HOMEPAGE= http://www.freetype.org/
|
2003-07-21 18:45:54 +02:00
|
|
|
COMMENT= Font rendering engine and library API
|
2010-12-26 20:16:15 +01:00
|
|
|
LICENSE= gnu-gpl-v2
|
2000-11-27 15:42:19 +01:00
|
|
|
|
2004-01-05 12:53:39 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2004-08-05 04:51:09 +02:00
|
|
|
USE_LIBTOOL= yes
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= grep gmake
|
2004-08-05 04:51:09 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2010-12-26 20:16:15 +01:00
|
|
|
CONFIGURE_DIRS= builds/unix
|
|
|
|
BUILD_DIRS= .
|
2002-08-25 20:38:05 +02:00
|
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include
|
2009-11-24 12:26:50 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-shared
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= ac_cv_path_GREP=${GREP:Q} ac_cv_path_EGREP=${EGREP:Q}
|
2000-11-27 15:42:19 +01:00
|
|
|
|
2006-07-23 16:37:08 +02:00
|
|
|
.if exists(/System/Library/Frameworks/Carbon.framework)
|
|
|
|
LDFLAGS+= -framework Carbon
|
|
|
|
.endif
|
|
|
|
|
2004-02-14 19:26:26 +01:00
|
|
|
PKGCONFIG_OVERRIDE= builds/unix/freetype2.in
|
2000-11-27 15:42:19 +01:00
|
|
|
|
2003-08-24 18:31:36 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2004-06-15 09:29:00 +02:00
|
|
|
.include "../../mk/compiler.mk"
|
2003-08-24 18:31:36 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.freetype2
|
2010-07-20 13:44:15 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= subpixel
|
2005-05-31 12:01:36 +02:00
|
|
|
|
2004-08-05 04:51:09 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2010-07-20 13:44:15 +02:00
|
|
|
# subpixel (lcd) rendering, patent issues
|
2007-03-20 16:20:33 +01:00
|
|
|
.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*)
|
2004-06-15 09:29:00 +02:00
|
|
|
CFLAGS+= -fno-strict-aliasing
|
|
|
|
.endif
|
|
|
|
|
2005-10-12 06:43:26 +02:00
|
|
|
# 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
|
|
|
|
|
2007-08-01 18:20:42 +02:00
|
|
|
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
|
|
|
|
CONFIGURE_ENV+= CC_BUILD=${NATIVE_CC:Q}
|
|
|
|
.endif
|
|
|
|
|
2002-08-25 20:38:05 +02:00
|
|
|
post-configure:
|
|
|
|
cd ${WRKSRC} && ${LN} -s builds/unix/unix.mk config.mk
|
2003-08-24 18:31:36 +02:00
|
|
|
.if ${OPSYS} == "IRIX"
|
|
|
|
${MKDIR} ${WRKSRC}/.libs
|
|
|
|
.endif
|
2000-11-27 15:42:19 +01:00
|
|
|
|
2011-11-01 06:57:41 +01:00
|
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
2005-06-14 17:44:14 +02:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2000-11-27 15:42:19 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|