summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorwiz <wiz>2009-03-11 21:58:52 +0000
committerwiz <wiz>2009-03-11 21:58:52 +0000
commite57b1b9d65d6cc4bbe3e7d5b30a078b7fb7efaaf (patch)
tree2151e7cb32113f20833c1b634a13957b5d1a5b84 /graphics
parentd166e1242e582a22c1d45d14cf304c0854673975 (diff)
downloadpkgsrc-e57b1b9d65d6cc4bbe3e7d5b30a078b7fb7efaaf.tar.gz
Fix freetype2 recognition, e.g. for native X.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/py-imaging/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/graphics/py-imaging/Makefile b/graphics/py-imaging/Makefile
index 821799cbc7c..2749ed75fb3 100644
--- a/graphics/py-imaging/Makefile
+++ b/graphics/py-imaging/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2009/02/09 21:09:20 joerg Exp $
+# $NetBSD: Makefile,v 1.33 2009/03/11 21:58:52 wiz Exp $
DISTNAME= Imaging-1.1.6
PKGNAME= ${PYPKGPREFIX}-imaging-1.1.6
@@ -15,6 +15,14 @@ DIST_SUBDIR= python
PYDISTUTILSPKG= yes
PY_PATCHPLIST= yes
+FREETYPE_ROOT= "${BUILDLINK_PREFIX.freetype2}/lib","${BUILDLINK_PREFIX.freetype2}/include"
+
+SUBST_CLASSES= ft2
+SUBST_SED.ft2= -e "s;FREETYPE_ROOT = None;FREETYPE_ROOT = ${FREETYPE_ROOT:Q};"
+SUBST_FILES.ft2= setup.py
+SUBST_MESSAGE.ft2= Fixing path to freetype2.
+SUBST_STAGE.ft2= pre-configure
+
INSTALLATION_DIRS= ${PYINC}/PIL
post-install: