summaryrefslogtreecommitdiff
path: root/fonts
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
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')
-rw-r--r--fonts/Xft2/builtin.mk23
-rw-r--r--fonts/fontconfig/builtin.mk24
2 files changed, 32 insertions, 15 deletions
diff --git a/fonts/Xft2/builtin.mk b/fonts/Xft2/builtin.mk
index cd06112318e..5727d71f458 100644
--- a/fonts/Xft2/builtin.mk
+++ b/fonts/Xft2/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 $
_X11_TMPL= ${X11BASE}/lib/X11/config/X11.tmpl
@@ -47,7 +47,7 @@ _XF86_VERSION= ${_XF86_MAJOR}.${_XF86_MINOR}
_XF86_VERSION= ${_XF86_MAJOR}.${_XF86_MINOR}.${_XF86_TEENY}
. endif
. endif
-MAKEFLAGS+= _XF86_VERSION=${_XF86_VERSION}
+BUILDLINK_VARS+= _XF86_VERSION
. endif
. for _xrender_version_ in ${_XFT2_VERSIONS}
. for _pattern_ in ${_XFT2_${_xrender_version_}}
@@ -58,15 +58,17 @@ _XFT2_VERSION?= ${_xrender_version_}
. endfor
_XFT2_VERSION?= 0.0
BUILTIN_PKG.Xft2= Xft2-${_XFT2_VERSION}
-MAKEFLAGS+= BUILTIN_PKG.Xft2=${BUILTIN_PKG.Xft2}
+BUILDLINK_VARS+= BUILTIN_PKG.Xft2
. endif
. endif
-MAKEFLAGS+= IS_BUILTIN.Xft2=${IS_BUILTIN.Xft2}
-.endif
+BUILDLINK_VARS+= IS_BUILTIN.Xft2
+.endif # IS_BUILTIN.Xft2
-CHECK_BUILTIN.Xft2?= no
-.if !empty(CHECK_BUILTIN.Xft2:M[yY][eE][sS])
-USE_BUILTIN.Xft2= yes
+.if defined(USE_BUILTIN.fontconfig) && !empty(USE_BUILTIN.fontconfig:M[nN][oO])
+USE_BUILTIN.Xft2= no
+.endif
+.if defined(USE_BUILTIN.Xrender) && !empty(USE_BUILTIN.Xrender:M[nN][oO])
+USE_BUILTIN.Xft2= no
.endif
.if !defined(USE_BUILTIN.Xft2)
@@ -87,6 +89,9 @@ USE_BUILTIN.Xft2!= \
. endif
.endif # USE_BUILTIN.Xft2
+CHECK_BUILTIN.Xft2?= no
+.if !empty(CHECK_BUILTIN.Xft2:M[nN][oO])
+
.if !empty(USE_BUILTIN.Xft2:M[nN][oO])
BUILDLINK_DEPENDS.Xft2+= Xft2>=2.1nb1
.endif
@@ -98,3 +103,5 @@ BUILDLINK_FILES.Xft2+= lib/pkgconfig/xft.pc
USE_BUILTIN.Xrender= yes
USE_BUILTIN.fontconfig= yes
.endif
+
+.endif # CHECK_BUILTIN.Xft2
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