diff options
author | jlam <jlam@pkgsrc.org> | 2004-03-10 17:57:14 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-03-10 17:57:14 +0000 |
commit | d0b4c54eb698e718080690cf98ab5b8bbb4001e0 (patch) | |
tree | 1226d07b8f66083168895189decc88848b70903f /fonts | |
parent | 9d61fef8537aed11013bf556e319b2d8e398a11b (diff) | |
download | pkgsrc-d0b4c54eb698e718080690cf98ab5b8bbb4001e0.tar.gz |
Split out the code that deals with checking whether the software is
built-in or not into a separate builtin.mk file. The code to deal
checking for built-in software is much simpler to deal with in pkgsrc.
The buildlink3.mk file for a package will be of the usual format
regardless of the package, which makes it simpler for packagers to
update a package.
The builtin.mk file for a package must define a single yes/no variable
USE_BUILTIN.<pkg> that is used by bsd.buildlink3.mk to decide whether
to use the built-in software or to use the pkgsrc software.
Diffstat (limited to 'fonts')
-rw-r--r-- | fonts/Xft2/buildlink3.mk | 140 | ||||
-rw-r--r-- | fonts/Xft2/builtin.mk | 100 | ||||
-rw-r--r-- | fonts/fontconfig/buildlink3.mk | 120 | ||||
-rw-r--r-- | fonts/fontconfig/builtin.mk | 75 |
4 files changed, 195 insertions, 240 deletions
diff --git a/fonts/Xft2/buildlink3.mk b/fonts/Xft2/buildlink3.mk index 0614e079f96..2d0efbbf216 100644 --- a/fonts/Xft2/buildlink3.mk +++ b/fonts/Xft2/buildlink3.mk @@ -1,144 +1,22 @@ -# $NetBSD: buildlink3.mk,v 1.10 2004/02/29 00:22:43 recht Exp $ +# $NetBSD: buildlink3.mk,v 1.11 2004/03/10 17:57:14 jlam Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ XFT2_BUILDLINK3_MK:= ${XFT2_BUILDLINK3_MK}+ -.include "../../mk/bsd.prefs.mk" +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= Xft2 +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:NXft2} +BUILDLINK_PACKAGES+= Xft2 .if !empty(XFT2_BUILDLINK3_MK:M+) -BUILDLINK_PACKAGES+= Xft2 BUILDLINK_DEPENDS.Xft2+= Xft2>=2.1 BUILDLINK_PKGSRCDIR.Xft2?= ../../fonts/Xft2 -.endif # XFT2_BUILDLINK3_MK - -BUILDLINK_CHECK_BUILTIN.Xft2?= NO -_X11_TMPL= ${X11BASE}/lib/X11/config/X11.tmpl - -.if !defined(BUILDLINK_IS_BUILTIN.Xft2) -BUILDLINK_IS_BUILTIN.Xft2= NO -. if exists(${_X11_TMPL}) -_IS_BUILTIN.Xft2!= \ - if ${GREP} -q BuildXftLibrary ${_X11_TMPL}; then \ - ${ECHO} "YES"; \ - else \ - ${ECHO} "NO"; \ - fi -BUILDLINK_IS_BUILTIN.Xft2= ${_IS_BUILTIN.Xft2} -. if !empty(BUILDLINK_CHECK_BUILTIN.Xft2:M[nN][oO]) && \ - !empty(_IS_BUILTIN.Xft2:M[yY][eE][sS]) -# -# Create an appropriate package name for the built-in Xft2 distributed -# with the system. This package name can be used to check against -# BUILDLINK_DEPENDS.<pkg> to see if we need to install the pkgsrc version -# or if the built-in one is sufficient. -# -# Xft2 doesn't provide a method of discovering the version number of -# the software. Match up Xft2 versions with XFree86 versions for an -# approximate determination of the Xft2 version. -# -_XFT2_VERSIONS= 2.1.2 2.1.1 2.1.0 -_XFT2_2.1.0= 4.2.99.* 4.3 4.3.[0-9] 4.3.[0-9].* 4.3.[1-8][0-9]* 4.3.9[0-8]* -. if !defined(_XF86_VERSION) -_X11_CONFIG_VERSION_DEF= ${X11BASE}/lib/X11/config/version.def -. if !exists(${_X11_CONFIG_VERSION_DEF}) -_XF86_VERSION= 3.3 -. else -_XF86_MAJOR!= \ - ${AWK} '/\#define[ ]*XF86_VERSION_MAJOR/ { print $$3 }' \ - ${_X11_CONFIG_VERSION_DEF} -_XF86_MINOR!= \ - ${AWK} '/\#define[ ]*XF86_VERSION_MINOR/ { print $$3 }' \ - ${_X11_CONFIG_VERSION_DEF} -_XF86_PATCH!= \ - ${AWK} '/\#define[ ]*XF86_VERSION_PATCH/ { print $$3 }' \ - ${_X11_CONFIG_VERSION_DEF} -_XF86_SNAP!= \ - ${AWK} '/\#define[ ]*XF86_VERSION_SNAP/ { print $$3 }' \ - ${_X11_CONFIG_VERSION_DEF} -_XF86_TEENY= ${_XF86_PATCH}.${_XF86_SNAP} -. if !empty(_XF86_TEENY:M0.0) -_XF86_VERSION= ${_XF86_MAJOR}.${_XF86_MINOR} -. else -_XF86_VERSION= ${_XF86_MAJOR}.${_XF86_MINOR}.${_XF86_TEENY} -. endif -. endif -. endif -. for _xrender_version_ in ${_XFT2_VERSIONS} -. for _pattern_ in ${_XFT2_${_xrender_version_}} -. if !empty(_XF86_VERSION:M${_pattern_}) -_XFT2_VERSION?= ${_xrender_version_} -. endif -. endfor -. endfor -_XFT2_VERSION?= 0.0 -_XFT2_PKG= Xft2-${_XFT2_VERSION} - -BUILDLINK_IS_BUILTIN.Xft2?= YES -. for _depend_ in ${BUILDLINK_DEPENDS.Xft2} -. if !empty(BUILDLINK_IS_BUILTIN.Xft2:M[yY][eE][sS]) -BUILDLINK_IS_BUILTIN.Xft2!= \ - if ${PKG_ADMIN} pmatch '${_depend_}' ${_XFT2_PKG}; then \ - ${ECHO} "YES"; \ - else \ - ${ECHO} "NO"; \ - fi -. endif -. endfor -. endif -. endif -MAKEFLAGS+= BUILDLINK_IS_BUILTIN.Xft2=${BUILDLINK_IS_BUILTIN.Xft2} -.endif - -.if !empty(BUILDLINK_CHECK_BUILTIN.Xft2:M[yY][eE][sS]) -BUILDLINK_USE_BUILTIN.Xft2= YES -.endif +.include "../../fonts/fontconfig/buildlink3.mk" +.include "../../x11/Xrender/buildlink3.mk" -.if !defined(BUILDLINK_USE_BUILTIN.Xft2) -. if !empty(BUILDLINK_IS_BUILTIN.Xft2:M[yY][eE][sS]) -BUILDLINK_USE_BUILTIN.Xft2= YES -. else -BUILDLINK_USE_BUILTIN.Xft2= NO -. endif - -. if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \ - !empty(BUILDLINK_IS_BUILTIN.Xft2:M[yY][eE][sS]) -BUILDLINK_USE_BUILTIN.Xft2= YES -. endif -. if !empty(PREFER_PKGSRC:M[yY][eE][sS]) -BUILDLINK_USE_BUILTIN.Xft2= NO -. endif -. if !empty(PREFER_NATIVE:MXft2) && \ - !empty(BUILDLINK_IS_BUILTIN.Xft2:M[yY][eE][sS]) -BUILDLINK_USE_BUILTIN.Xft2= YES -. endif -. if !empty(PREFER_PKGSRC:MXft2) -BUILDLINK_USE_BUILTIN.Xft2= NO -. endif -.endif - -.if !empty(BUILDLINK_USE_BUILTIN.Xft2:M[nN][oO]) -BUILDLINK_DEPENDS.Xft2+= Xft2>=2.1nb1 -. if !empty(BUILDLINK_DEPTH:M+) -BUILDLINK_DEPENDS+= Xft2 -. endif -.endif - -.if !empty(BUILDLINK_USE_BUILTIN.Xft2:M[yY][eE][sS]) -BUILDLINK_USE_BUILTIN.fontconfig= yes -BUILDLINK_USE_BUILTIN.Xrender= yes -.endif - -.if !empty(XFT2_BUILDLINK3_MK:M+) -. if !empty(BUILDLINK_USE_BUILTIN.Xft2:M[yY][eE][sS]) -BUILDLINK_PREFIX.Xft2= ${X11BASE} -BUILDLINK_FILES.Xft2+= lib/pkgconfig/xft.pc -. endif -USE_X11= yes -. if !empty(BUILDLINK_CHECK_BUILTIN.Xft2:M[nN][oO]) -. include "../../fonts/fontconfig/buildlink3.mk" -. include "../../x11/Xrender/buildlink3.mk" -. endif .endif # XFT2_BUILDLINK3_MK BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/fonts/Xft2/builtin.mk b/fonts/Xft2/builtin.mk new file mode 100644 index 00000000000..cd06112318e --- /dev/null +++ b/fonts/Xft2/builtin.mk @@ -0,0 +1,100 @@ +# $NetBSD: builtin.mk,v 1.1 2004/03/10 17:57:14 jlam Exp $ + +_X11_TMPL= ${X11BASE}/lib/X11/config/X11.tmpl + +.if !defined(IS_BUILTIN.Xft2) +IS_BUILTIN.Xft2= no +. if exists(${_X11_TMPL}) +IS_BUILTIN.Xft2!= \ + if ${GREP} -q BuildXftLibrary ${_X11_TMPL}; then \ + ${ECHO} "yes"; \ + else \ + ${ECHO} "no"; \ + fi +. if !empty(IS_BUILTIN.Xft2:M[yY][eE][sS]) +# +# Create an appropriate package name for the built-in Xft2 distributed +# with the system. This package name can be used to check against +# BUILDLINK_DEPENDS.<pkg> to see if we need to install the pkgsrc version +# or if the built-in one is sufficient. +# +# Xft2 doesn't provide a method of discovering the version number of +# the software. Match up Xft2 versions with XFree86 versions for an +# approximate determination of the Xft2 version. +# +_XFT2_VERSIONS= 2.1.2 2.1.1 2.1.0 +_XFT2_2.1.0= 4.2.99.* 4.3 4.3.[0-9] 4.3.[0-9].* 4.3.[1-8][0-9]* 4.3.9[0-8]* +. if !defined(_XF86_VERSION) +_X11_CONFIG_VERSION_DEF= ${X11BASE}/lib/X11/config/version.def +_XF86_VERSION= 3.3 +. if exists(${_X11_CONFIG_VERSION_DEF}) +_XF86_MAJOR!= \ + ${AWK} '/\#define[ ]*XF86_VERSION_MAJOR/ { print $$3 }' \ + ${_X11_CONFIG_VERSION_DEF} +_XF86_MINOR!= \ + ${AWK} '/\#define[ ]*XF86_VERSION_MINOR/ { print $$3 }' \ + ${_X11_CONFIG_VERSION_DEF} +_XF86_PATCH!= \ + ${AWK} '/\#define[ ]*XF86_VERSION_PATCH/ { print $$3 }' \ + ${_X11_CONFIG_VERSION_DEF} +_XF86_SNAP!= \ + ${AWK} '/\#define[ ]*XF86_VERSION_SNAP/ { print $$3 }' \ + ${_X11_CONFIG_VERSION_DEF} +_XF86_TEENY= ${_XF86_PATCH}.${_XF86_SNAP} +. if !empty(_XF86_TEENY:M0.0) +_XF86_VERSION= ${_XF86_MAJOR}.${_XF86_MINOR} +. else +_XF86_VERSION= ${_XF86_MAJOR}.${_XF86_MINOR}.${_XF86_TEENY} +. endif +. endif +MAKEFLAGS+= _XF86_VERSION=${_XF86_VERSION} +. endif +. for _xrender_version_ in ${_XFT2_VERSIONS} +. for _pattern_ in ${_XFT2_${_xrender_version_}} +. if !empty(_XF86_VERSION:M${_pattern_}) +_XFT2_VERSION?= ${_xrender_version_} +. endif +. endfor +. endfor +_XFT2_VERSION?= 0.0 +BUILTIN_PKG.Xft2= Xft2-${_XFT2_VERSION} +MAKEFLAGS+= BUILTIN_PKG.Xft2=${BUILTIN_PKG.Xft2} +. endif +. endif +MAKEFLAGS+= IS_BUILTIN.Xft2=${IS_BUILTIN.Xft2} +.endif + +CHECK_BUILTIN.Xft2?= no +.if !empty(CHECK_BUILTIN.Xft2:M[yY][eE][sS]) +USE_BUILTIN.Xft2= yes +.endif + +.if !defined(USE_BUILTIN.Xft2) +USE_BUILTIN.Xft2?= ${IS_BUILTIN.Xft2} + +. if defined(BUILTIN_PKG.Xft2) +USE_BUILTIN.Xft2= yes +. for _depend_ in ${BUILDLINK_DEPENDS.Xft2} +. if !empty(USE_BUILTIN.Xft2:M[yY][eE][sS]) +USE_BUILTIN.Xft2!= \ + if ${PKG_ADMIN} pmatch '${_depend_}' ${BUILTIN_PKG.Xft2}; then \ + ${ECHO} "yes"; \ + else \ + ${ECHO} "no"; \ + fi +. endif +. endfor +. endif +.endif # USE_BUILTIN.Xft2 + +.if !empty(USE_BUILTIN.Xft2:M[nN][oO]) +BUILDLINK_DEPENDS.Xft2+= Xft2>=2.1nb1 +.endif + +.if !empty(USE_BUILTIN.Xft2:M[yY][eE][sS]) +BUILDLINK_PREFIX.Xft2= ${X11BASE} +BUILDLINK_FILES.Xft2+= lib/pkgconfig/xft.pc + +USE_BUILTIN.Xrender= yes +USE_BUILTIN.fontconfig= yes +.endif diff --git a/fonts/fontconfig/buildlink3.mk b/fonts/fontconfig/buildlink3.mk index f39cfb4e8c9..5ceb235e08f 100644 --- a/fonts/fontconfig/buildlink3.mk +++ b/fonts/fontconfig/buildlink3.mk @@ -1,121 +1,23 @@ -# $NetBSD: buildlink3.mk,v 1.14 2004/02/19 19:12:26 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.15 2004/03/10 17:57:14 jlam Exp $ -BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ FONTCONFIG_BUILDLINK3_MK:= ${FONTCONFIG_BUILDLINK3_MK}+ -.include "../../mk/bsd.prefs.mk" +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= fontconfig +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nfontconfig} +BUILDLINK_PACKAGES+= fontconfig .if !empty(FONTCONFIG_BUILDLINK3_MK:M+) -BUILDLINK_PACKAGES+= fontconfig BUILDLINK_DEPENDS.fontconfig+= fontconfig>=1.0.1 BUILDLINK_PKGSRCDIR.fontconfig?= ../../fonts/fontconfig -.endif # FONTCONFIG_BUILDLINK3_MK - -BUILDLINK_CHECK_BUILTIN.fontconfig?= NO - -_FONTCONFIG_FONTCONFIG_H= ${X11BASE}/include/fontconfig/fontconfig.h -_X11_TMPL= ${X11BASE}/lib/X11/config/X11.tmpl -.if !defined(BUILDLINK_IS_BUILTIN.fontconfig) -BUILDLINK_IS_BUILTIN.fontconfig= NO -. if exists(${_FONTCONFIG_FONTCONFIG_H}) && exists(${_X11_TMPL}) -_IS_BUILTIN.fontconfig!= \ - if ${GREP} -q BuildFontconfigLibrary ${_X11_TMPL}; then \ - ${ECHO} "YES"; \ - else \ - ${ECHO} "NO"; \ - fi -BUILDLINK_IS_BUILTIN.fontconfig= ${_IS_BUILTIN.fontconfig} -. if !empty(BUILDLINK_CHECK_BUILTIN.fontconfig:M[nN][oO]) && \ - !empty(_IS_BUILTIN.fontconfig:M[yY][eE][sS]) -# -# Create an appropriate package name for the built-in fontconfig distributed -# with the system. This package name can be used to check against -# BUILDLINK_DEPENDS.<pkg> to see if we need to install the pkgsrc version -# or if the built-in one is sufficient. -# -_FONTCONFIG_MAJOR!= \ - ${AWK} '/\#define[ ]*FC_MAJOR/ { print $$3 }' \ - ${_FONTCONFIG_FONTCONFIG_H} -_FONTCONFIG_MINOR!= \ - ${AWK} '/\#define[ ]*FC_MINOR/ { print $$3 }' \ - ${_FONTCONFIG_FONTCONFIG_H} -_FONTCONFIG_REVISION!= \ - ${AWK} '/\#define[ ]*FC_REVISION/ { print $$3 }' \ - ${_FONTCONFIG_FONTCONFIG_H} -_FONTCONFIG_VERSION= \ - ${_FONTCONFIG_MAJOR}.${_FONTCONFIG_MINOR}.${_FONTCONFIG_REVISION} -_FONTCONFIG_PKG= fontconfig-${_FONTCONFIG_VERSION} - -BUILDLINK_IS_BUILTIN.fontconfig?= YES -. for _depend_ in ${BUILDLINK_DEPENDS.fontconfig} -. if !empty(BUILDLINK_IS_BUILTIN.fontconfig:M[yY][eE][sS]) -BUILDLINK_IS_BUILTIN.fontconfig!= \ - if ${PKG_ADMIN} pmatch '${_depend_}' ${_FONTCONFIG_PKG}; then \ - ${ECHO} "YES"; \ - else \ - ${ECHO} "NO"; \ - fi -. endif -. endfor -. endif -. endif -MAKEFLAGS+= \ - BUILDLINK_IS_BUILTIN.fontconfig=${BUILDLINK_IS_BUILTIN.fontconfig} -.endif - -.if !empty(BUILDLINK_CHECK_BUILTIN.fontconfig:M[yY][eE][sS]) -BUILDLINK_USE_BUILTIN.fontconfig= YES -.endif +.include "../../devel/zlib/buildlink3.mk" +.include "../../graphics/freetype2/buildlink3.mk" +.include "../../textproc/expat/buildlink3.mk" -.if !defined(BUILDLINK_USE_BUILTIN.fontconfig) -. if !empty(BUILDLINK_IS_BUILTIN.fontconfig:M[yY][eE][sS]) -BUILDLINK_USE_BUILTIN.fontconfig= YES -. else -BUILDLINK_USE_BUILTIN.fontconfig= NO -. endif - -. if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \ - !empty(BUILDLINK_IS_BUILTIN.fontconfig:M[yY][eE][sS]) -BUILDLINK_USE_BUILTIN.fontconfig= YES -. endif -. if !empty(PREFER_PKGSRC:M[yY][eE][sS]) -BUILDLINK_USE_BUILTIN.fontconfig= NO -. endif -. if !empty(PREFER_NATIVE:Mfontconfig) && \ - !empty(BUILDLINK_IS_BUILTIN.fontconfig:M[yY][eE][sS]) -BUILDLINK_USE_BUILTIN.fontconfig= YES -. endif -. if !empty(PREFER_PKGSRC:Mfontconfig) -BUILDLINK_USE_BUILTIN.fontconfig= NO -. endif -.endif - -.if !empty(BUILDLINK_USE_BUILTIN.fontconfig:M[nN][oO]) -BUILDLINK_DEPENDS.fontconfig+= fontconfig>=2.1nb2 -BUILDLINK_DEPENDS.freetype2+= freetype2>=2.1.3 -. if !empty(BUILDLINK_DEPTH:M+) -BUILDLINK_DEPENDS+= fontconfig -. endif -.endif - -.if !empty(BUILDLINK_USE_BUILTIN.fontconfig:M[yY][eE][sS]) -BUILDLINK_USE_BUILTIN.zlib= yes -BUILDLINK_USE_BUILTIN.freetype2= yes -BUILDLINK_USE_BUILTIN.expat= yes -.endif - -.if !empty(FONTCONFIG_BUILDLINK3_MK:M+) -. if !empty(BUILDLINK_USE_BUILTIN.fontconfig:M[yY][eE][sS]) -BUILDLINK_PREFIX.fontconfig= ${X11BASE} -BUILDLINK_FILES.fontconfig+= lib/pkgconfig/fontconfig.pc -. endif -USE_X11= yes -. if !empty(BUILDLINK_CHECK_BUILTIN.fontconfig:M[nN][oO]) -. include "../../devel/zlib/buildlink3.mk" -. include "../../graphics/freetype2/buildlink3.mk" -. include "../../textproc/expat/buildlink3.mk" -. endif .endif # FONTCONFIG_BUILDLINK3_MK BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/fonts/fontconfig/builtin.mk b/fonts/fontconfig/builtin.mk new file mode 100644 index 00000000000..3a832e349bd --- /dev/null +++ b/fonts/fontconfig/builtin.mk @@ -0,0 +1,75 @@ +# $NetBSD: builtin.mk,v 1.1 2004/03/10 17:57:14 jlam Exp $ + +_FONTCONFIG_FONTCONFIG_H= ${X11BASE}/include/fontconfig/fontconfig.h +_X11_TMPL= ${X11BASE}/lib/X11/config/X11.tmpl + +.if !defined(IS_BUILTIN.fontconfig) +IS_BUILTIN.fontconfig= no +. if exists(${_FONTCONFIG_FONTCONFIG_H}) && exists(${_X11_TMPL}) +IS_BUILTIN.fontconfig!= \ + if ${GREP} -q BuildFontconfigLibrary ${_X11_TMPL}; then \ + ${ECHO} "yes"; \ + else \ + ${ECHO} "no"; \ + fi +. if !empty(IS_BUILTIN.fontconfig:M[yY][eE][sS]) +# +# Create an appropriate package name for the built-in fontconfig distributed +# with the system. This package name can be used to check against +# BUILDLINK_DEPENDS.<pkg> to see if we need to install the pkgsrc version +# or if the built-in one is sufficient. +# +_FONTCONFIG_MAJOR!= \ + ${AWK} '/\#define[ ]*FC_MAJOR/ { print $$3 }' \ + ${_FONTCONFIG_FONTCONFIG_H} +_FONTCONFIG_MINOR!= \ + ${AWK} '/\#define[ ]*FC_MINOR/ { print $$3 }' \ + ${_FONTCONFIG_FONTCONFIG_H} +_FONTCONFIG_REVISION!= \ + ${AWK} '/\#define[ ]*FC_REVISION/ { print $$3 }' \ + ${_FONTCONFIG_FONTCONFIG_H} +_FONTCONFIG_VERSION= \ + ${_FONTCONFIG_MAJOR}.${_FONTCONFIG_MINOR}.${_FONTCONFIG_REVISION} +BUILTIN_PKG.fontconfig= fontconfig-${_FONTCONFIG_VERSION} +MAKEFLAGS+= BUILTIN_PKG.fontconfig=${BUILTIN_PKG.fontconfig} +. endif +. endif +MAKEFLAGS+= IS_BUILTIN.fontconfig=${IS_BUILTIN.fontconfig} +.endif + +CHECK_BUILTIN.fontconfig?= no +.if !empty(CHECK_BUILTIN.fontconfig:M[yY][eE][sS]) +USE_BUILTIN.fontconfig= yes +.endif + +.if !defined(USE_BUILTIN.fontconfig) +USE_BUILTIN.fontconfig?= ${IS_BUILTIN.fontconfig} + +. if defined(BUILTIN_PKG.fontconfig) +USE_BUILTIN.fontconfig= yes +. for _depend_ in ${BUILDLINK_DEPENDS.fontconfig} +. if !empty(USE_BUILTIN.fontconfig:M[yY][eE][sS]) +USE_BUILTIN.fontconfig!= \ + if ${PKG_ADMIN} pmatch '${_depend_}' ${BUILTIN_PKG.fontconfig}; then \ + ${ECHO} "yes"; \ + else \ + ${ECHO} "no"; \ + fi +. endif +. endfor +. endif +.endif # USE_BUILTIN.fontconfig + +.if !empty(USE_BUILTIN.fontconfig:M[nN][oO]) +BUILDLINK_DEPENDS.fontconfig+= fontconfig>=2.1nb2 +BUILDLINK_DEPENDS.freetype2+= freetype2>=2.1.3 +.endif + +.if !empty(USE_BUILTIN.fontconfig:M[yY][eE][sS]) +BUILDLINK_PREFIX.fontconfig= ${X11BASE} +BUILDLINK_FILES.fontconfig+= lib/pkgconfig/fontconfig.pc + +USE_BUILTIN.expat= yes +USE_BUILTIN.freetype2= yes +USE_BUILTIN.zlib= yes +.endif |