summaryrefslogtreecommitdiff
path: root/fonts/fontconfig
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-03-29 05:43:28 +0000
committerjlam <jlam@pkgsrc.org>2004-03-29 05:43:28 +0000
commit6d92080aa240757729992f43156b2924bbda71c4 (patch)
tree2684bb3d4a41538be1b78668954f44c69a49033d /fonts/fontconfig
parent82cd68d38a1d8bd0262376d4a40e4c201e6c55b3 (diff)
downloadpkgsrc-6d92080aa240757729992f43156b2924bbda71c4.tar.gz
Match the template builtin.mk file in bsd.builtin.mk, and make the two
packages that use builtin.mk files (graphics/xpm and pkgtools/x11-links) use the new format correctly.
Diffstat (limited to 'fonts/fontconfig')
-rw-r--r--fonts/fontconfig/builtin.mk24
1 files changed, 17 insertions, 7 deletions
diff --git a/fonts/fontconfig/builtin.mk b/fonts/fontconfig/builtin.mk
index 3a832e349bd..b8184f41ea8 100644
--- a/fonts/fontconfig/builtin.mk
+++ b/fonts/fontconfig/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.1 2004/03/10 17:57:14 jlam Exp $
+# $NetBSD: builtin.mk,v 1.2 2004/03/29 05:43:30 jlam Exp $
_FONTCONFIG_FONTCONFIG_H= ${X11BASE}/include/fontconfig/fontconfig.h
_X11_TMPL= ${X11BASE}/lib/X11/config/X11.tmpl
@@ -31,15 +31,20 @@ _FONTCONFIG_REVISION!= \
_FONTCONFIG_VERSION= \
${_FONTCONFIG_MAJOR}.${_FONTCONFIG_MINOR}.${_FONTCONFIG_REVISION}
BUILTIN_PKG.fontconfig= fontconfig-${_FONTCONFIG_VERSION}
-MAKEFLAGS+= BUILTIN_PKG.fontconfig=${BUILTIN_PKG.fontconfig}
+BUILDLINK_VARS+= BUILTIN_PKG.fontconfig
. endif
. endif
-MAKEFLAGS+= IS_BUILTIN.fontconfig=${IS_BUILTIN.fontconfig}
-.endif
+BUILDLINK_VARS+= IS_BUILTIN.fontconfig
+.endif # IS_BUILTIN.fontconfig
-CHECK_BUILTIN.fontconfig?= no
-.if !empty(CHECK_BUILTIN.fontconfig:M[yY][eE][sS])
-USE_BUILTIN.fontconfig= yes
+.if defined(USE_BUILTIN.zlib) && !empty(USE_BUILTIN.zlib:M[nN][oO])
+USE_BUILTIN.fontconfig= no
+.endif
+.if defined(USE_BUILTIN.freetype2) && !empty(USE_BUILTIN.freetype2:M[nN][oO])
+USE_BUILTIN.fontconfig= no
+.endif
+.if defined(USE_BUILTIN.expat) && !empty(USE_BUILTIN.expat:M[nN][oO])
+USE_BUILTIN.fontconfig= no
.endif
.if !defined(USE_BUILTIN.fontconfig)
@@ -60,6 +65,9 @@ USE_BUILTIN.fontconfig!= \
. endif
.endif # USE_BUILTIN.fontconfig
+CHECK_BUILTIN.fontconfig?= no
+.if !empty(CHECK_BUILTIN.fontconfig:M[nN][oO])
+
.if !empty(USE_BUILTIN.fontconfig:M[nN][oO])
BUILDLINK_DEPENDS.fontconfig+= fontconfig>=2.1nb2
BUILDLINK_DEPENDS.freetype2+= freetype2>=2.1.3
@@ -73,3 +81,5 @@ USE_BUILTIN.expat= yes
USE_BUILTIN.freetype2= yes
USE_BUILTIN.zlib= yes
.endif
+
+.endif # CHECK_BUILTIN.fontconfig