summaryrefslogtreecommitdiff
path: root/graphics/freetype2
diff options
context:
space:
mode:
authorminskim <minskim>2006-07-23 14:37:08 +0000
committerminskim <minskim>2006-07-23 14:37:08 +0000
commit18d0dc86cc5918bbc01118c2ee1a5bceb9da4b90 (patch)
treef6907aa6da747bd5d39797854bd97f761fceb43e /graphics/freetype2
parenta6fe28bc46d61ebdd42ed48d16866e0e85e32fd2 (diff)
downloadpkgsrc-18d0dc86cc5918bbc01118c2ee1a5bceb9da4b90.tar.gz
Link against the Carbon library if the framework is available. This fixes
PR 33858. Bump PKGREVISION.
Diffstat (limited to 'graphics/freetype2')
-rw-r--r--graphics/freetype2/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/graphics/freetype2/Makefile b/graphics/freetype2/Makefile
index a6315cbef1c..1e7644ee7ae 100644
--- a/graphics/freetype2/Makefile
+++ b/graphics/freetype2/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.52 2006/05/29 22:05:21 tron Exp $
+# $NetBSD: Makefile,v 1.53 2006/07/23 14:37:08 minskim Exp $
DISTNAME= freetype-2.2.1
+PKGREVISION= 1
PKGNAME= ${DISTNAME:S/-/2-/}
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=freetype/} \
@@ -25,6 +26,10 @@ BUILD_DIRS= ${WRKSRC}
CONFIGURE_ARGS+= --includedir=${PREFIX}/include
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"