pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
fontconfig-32: compat32 package for fontconfig
Module Name: pkgsrc-wip
Committed By: Naveen Narayanan <zerous@nocebo.space>
Pushed By: zerous
Date: Fri Jul 19 11:28:16 2019 +0200
Changeset: d07bbdbb3633282075b88a13a4046775d74350f5
Added Files:
fontconfig-32/=2.18:
fontconfig-32/=2.4.11:
fontconfig-32/Applying
fontconfig-32/DEINSTALL
fontconfig-32/DESCR
fontconfig-32/Extracting
fontconfig-32/Full
fontconfig-32/INSTALL
fontconfig-32/Makefile
fontconfig-32/Overriding
fontconfig-32/PLIST
fontconfig-32/Patching
fontconfig-32/TODO
fontconfig-32/Verifying
fontconfig-32/buildlink3.mk
fontconfig-32/builtin.mk
fontconfig-32/distinfo
fontconfig-32/extract-message
fontconfig-32/files/30-pkgsrc-aliases.conf
fontconfig-32/patch-message
fontconfig-32/patches/patch-aa
fontconfig-32/patches/patch-ac
fontconfig-32/patches/patch-af
fontconfig-32/patches/patch-configure
fontconfig-32/patches/patch-scandir.c
fontconfig-32/patches/patch-src_fccharset.c
fontconfig-32/patches/patch-src_fcfreetype.c
fontconfig-32/patches/patch-src_fcftint.h
fontconfig-32/patches/patch-src_fcint.h
fontconfig-32/patches/patch-src_fcstat.c
fontconfig-32/patches/patch-test_test-migration.c
fontconfig-32/tools-message
Log Message:
fontconfig-32: compat32 package for fontconfig
Fontconfig is a library for configuring and customizing font access.
This package is intended to crosscompile fontconfig for i386 on amd64.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d07bbdbb3633282075b88a13a4046775d74350f5
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
fontconfig-32/=2.18: | 0
fontconfig-32/=2.4.11: | 0
fontconfig-32/Applying | 0
fontconfig-32/DEINSTALL | 9 +
fontconfig-32/DESCR | 24 +
fontconfig-32/Extracting | 0
fontconfig-32/Full | 0
fontconfig-32/INSTALL | 10 +
fontconfig-32/Makefile | 111 +++++
fontconfig-32/Overriding | 0
fontconfig-32/PLIST | 509 ++++++++++++++++++++++
fontconfig-32/Patching | 0
fontconfig-32/TODO | 1 +
fontconfig-32/Verifying | 0
fontconfig-32/buildlink3.mk | 22 +
fontconfig-32/builtin.mk | 84 ++++
fontconfig-32/distinfo | 17 +
fontconfig-32/extract-message | 0
fontconfig-32/files/30-pkgsrc-aliases.conf | 9 +
fontconfig-32/patch-message | 0
fontconfig-32/patches/patch-aa | 43 ++
fontconfig-32/patches/patch-ac | 21 +
fontconfig-32/patches/patch-af | 16 +
fontconfig-32/patches/patch-configure | 71 +++
fontconfig-32/patches/patch-scandir.c | 142 ++++++
fontconfig-32/patches/patch-src_fccharset.c | 13 +
fontconfig-32/patches/patch-src_fcfreetype.c | 16 +
fontconfig-32/patches/patch-src_fcftint.h | 19 +
fontconfig-32/patches/patch-src_fcint.h | 37 ++
fontconfig-32/patches/patch-src_fcstat.c | 46 ++
fontconfig-32/patches/patch-test_test-migration.c | 15 +
fontconfig-32/tools-message | 0
32 files changed, 1235 insertions(+)
diffs:
diff --git a/fontconfig-32/=2.18: b/fontconfig-32/=2.18:
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/fontconfig-32/=2.4.11: b/fontconfig-32/=2.4.11:
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/fontconfig-32/Applying b/fontconfig-32/Applying
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/fontconfig-32/DEINSTALL b/fontconfig-32/DEINSTALL
new file mode 100644
index 0000000000..2e11944bba
--- /dev/null
+++ b/fontconfig-32/DEINSTALL
@@ -0,0 +1,9 @@
+# $NetBSD: DEINSTALL,v 1.1 2006/09/17 18:20:20 joerg Exp $
+
+VARBASE="@VARBASE@"
+
+case ${STAGE} in
+DEINSTALL)
+ ${RM} -rf ${VARBASE}/cache/fontconfig
+ ;;
+esac
diff --git a/fontconfig-32/DESCR b/fontconfig-32/DESCR
new file mode 100644
index 0000000000..25ed08a8fb
--- /dev/null
+++ b/fontconfig-32/DESCR
@@ -0,0 +1,24 @@
+Fontconfig is a library for configuring and customizing font access.
+
+Fontconfig can:
+* discover new fonts when installed automatically, removing a common
+ source of configuration problems.
+* perform font name substitution, so that appropriate alternative fonts
+ can be selected if fonts are missing.
+* identify the set of fonts required to completely cover a set of
+ languages.
+* have GUI configuration tools built as it uses an XML-based
+ configuration file (though with autodiscovery, we believe this need is
+ minimized).
+* efficiently and quickly find the fonts you need among the set of fonts
+ you have installed, even if you have installed thousands of fonts,
+ while minimizing memory usage.
+* be used in concert with the X Render Extension and FreeType to
+ implement high quality, anti-aliased and subpixel rendered text on a
+ display.
+
+Fontconfig does not:
+* render the fonts themselves (this is left to FreeType or other
+ rendering mechanisms).
+* depend on the X Window System in any fashion, so that printer only
+ applications do not have such dependencies.
diff --git a/fontconfig-32/Extracting b/fontconfig-32/Extracting
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/fontconfig-32/Full b/fontconfig-32/Full
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/fontconfig-32/INSTALL b/fontconfig-32/INSTALL
new file mode 100644
index 0000000000..21123dee79
--- /dev/null
+++ b/fontconfig-32/INSTALL
@@ -0,0 +1,10 @@
+# $NetBSD: INSTALL,v 1.1 2006/09/17 18:20:20 joerg Exp $
+
+VARBASE="@VARBASE@"
+
+case ${STAGE} in
+POST-INSTALL)
+ ${MKDIR} ${VARBASE}/cache/fontconfig
+ ${PREFIX}/bin/fc-cache
+ ;;
+esac
diff --git a/fontconfig-32/Makefile b/fontconfig-32/Makefile
new file mode 100644
index 0000000000..28a4e03d59
--- /dev/null
+++ b/fontconfig-32/Makefile
@@ -0,0 +1,111 @@
+# $NetBSD: Makefile,v 1.115 2018/09/17 06:56:22 maya Exp $
+
+DISTNAME= fontconfig-2.13.1
+ABI= 32
+CATEGORIES= fonts
+MASTER_SITES= https://www.fontconfig.org/release/
+EXTRACT_SUFX= .tar.bz2
+PKGNAME= compat${ABI}_${DISTNAME}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://www.fontconfig.org/
+COMMENT= Library for configuring and customizing font access
+#LICENSE= x11?
+
+# https://bugs.freedesktop.org/show_bug.cgi?id=101280
+BUILD_DEPENDS+= gperf-[0-9]*:../../devel/gperf
+
+USE_LIBTOOL= yes
+USE_TOOLS+= gmake pkg-config msgfmt
+CFLAGS+= -m32
+GNU_CONFIGURE= yes
+GNU_CONFIGURE_PREFIX= ${PREFIX}/emul/netbsd32/
+CONFIGURE_ARGS+= --with-default-fonts=${LOCALBASE}/share/fonts/X11
+CONFIGURE_ARGS+= --with-expat-includes=${BUILDLINK_PREFIX.expat}/include
+CONFIGURE_ARGS+= --with-expat-lib=${BUILDLINK_PREFIX.expat}/lib
+CONFIGURE_ARGS+= --with-baseconfigdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --with-cache-dir=${VARBASE}/cache/fontconfig
+CONFIGURE_ARGS+= --enable-docs
+CONFIGURE_ENV+= HASDOCBOOK=no
+
+PKGCONFIG_OVERRIDE= fontconfig.pc.in
+
+PKG_SYSCONFSUBDIR= fontconfig
+
+.include "../../mk/compiler.mk"
+# Workaround for GCC 4.2 bug, http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46861
+# GCC 4.2 and -fPIC with visibility
+.if !empty(CC_VERSION:Mgcc-4.2.*)
+SUBST_CLASSES+= visibility
+SUBST_STAGE.visibility= pre-configure
+SUBST_MESSAGE.visibility= Removing visibility
+SUBST_FILES.visibility= src/makealias
+SUBST_SED.visibility= -e 's/__attribute((visibility("hidden")))//g'
+SUBST_SED.visibility+= -e 's/, visibility("default")//g'
+.endif
+
+.include "../../mk/bsd.prefs.mk"
+
+ADDFONTS= ${PREFIX}/share/fonts/urw,${PREFIX}/share/ghostscript/fonts,${PREFIX}/share/fonts/X11
+.if ${X11BASE} != ${LOCALBASE}
+ADDFONTS:= ${X11BASE}/lib/X11/fonts,${ADDFONTS}
+.else
+ADDFONTS:= ${LOCALBASE}/share/fonts/X11,${ADDFONTS}
+.endif
+
+.if ${OPSYS} == "Darwin"
+ADDFONTS:= ~/Library/Fonts,/Library/Fonts,/System/Library/Fonts,${ADDFONTS}
+CONFIGURE_ARGS+= --with-arch=${MACHINE_ARCH}
+.endif
+CONFIGURE_ARGS+= --with-add-fonts=${ADDFONTS}
+
+SUBST_CLASSES+= prefix
+SUBST_STAGE.prefix= post-build
+SUBST_FILES.prefix= conf.d/README
+SUBST_VARS.prefix= PREFIX
+
+EGDIR= ${PREFIX}/share/examples/fontconfig
+CONF_FILES= ${EGDIR}/fonts.conf ${PKG_SYSCONFDIR}/fonts.conf
+CONF_FILES+= ${EGDIR}/conf.d/README ${PKG_SYSCONFDIR}/conf.d/README
+
+TMPLDIR= ${PREFIX}/share/fontconfig/conf.avail
+MAKE_DIRS+= ${PKG_SYSCONFDIR}/conf.d
+# following list from ${WRKSRC}/conf.d/Makefile.am
+FC_STDCONF= 10-scale-bitmap-fonts.conf 10-hinting-full.conf \
+ 10-hinting-medium.conf 10-hinting-none.conf 10-hinting-slight.conf \
+ 20-unhint-small-vera.conf \
+ 30-metric-aliases.conf 40-nonlatin.conf \
+ 45-latin.conf 49-sansserif.conf 50-user.conf 51-local.conf \
+ 60-latin.conf 65-fonts-persian.conf 65-nonlatin.conf 69-unifont.conf \
+ 80-delicious.conf 90-synthetic.conf
+# pkgsrc addition
+FC_STDCONF+= 30-pkgsrc-aliases.conf
+.for f in ${FC_STDCONF}
+CONF_FILES+= ${TMPLDIR}/${f} ${PKG_SYSCONFDIR}/conf.d/${f}
+.endfor
+
+MAKE_DIRS+= ${VARBASE}/cache
+BUILD_DEFS+= VARBASE
+
+TEST_TARGET= check
+
+.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
+CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q}
+.endif
+
+pre-configure:
+ -cd ${BUILDLINK_X11_DIR:Q} && ${FIND} . -path "*fontconfig*" -type l -delete
+
+post-install:
+# ${INSTALL_DATA} ${FILESDIR}/30-pkgsrc-aliases.conf ${DESTDIR}${TMPLDIR}
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.if ${OPSYS} != "Darwin"
+.include "../../wip/libuuid-32/buildlink3.mk"
+.endif
+.include "../../devel/zlib/buildlink3.mk"
+BUILDLINK_API_DEPENDS.freetype2+= freetype2>=2.8.1
+.include "../../wip/freetype2-32/buildlink3.mk"
+.include "../../textproc/expat/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/fontconfig-32/Overriding b/fontconfig-32/Overriding
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/fontconfig-32/PLIST b/fontconfig-32/PLIST
new file mode 100644
index 0000000000..d57b1bd305
--- /dev/null
+++ b/fontconfig-32/PLIST
@@ -0,0 +1,509 @@
+@comment $NetBSD: PLIST,v 1.31 2018/09/02 20:30:43 wiz Exp $
+bin/fc-cache
+bin/fc-cat
+bin/fc-conflist
+bin/fc-list
+bin/fc-match
+bin/fc-pattern
+bin/fc-query
+bin/fc-scan
+bin/fc-validate
+include/fontconfig/fcfreetype.h
+include/fontconfig/fcprivate.h
+include/fontconfig/fontconfig.h
+lib/libfontconfig.la
+lib/pkgconfig/fontconfig.pc
+man/man1/fc-cache.1
+man/man1/fc-cat.1
+man/man1/fc-conflist.1
+man/man1/fc-list.1
+man/man1/fc-match.1
+man/man1/fc-pattern.1
+man/man1/fc-query.1
+man/man1/fc-scan.1
+man/man1/fc-validate.1
+man/man3/FcAtomicCreate.3
+man/man3/FcAtomicDeleteNew.3
+man/man3/FcAtomicDestroy.3
+man/man3/FcAtomicLock.3
+man/man3/FcAtomicNewFile.3
+man/man3/FcAtomicOrigFile.3
+man/man3/FcAtomicReplaceOrig.3
+man/man3/FcAtomicUnlock.3
+man/man3/FcBlanksAdd.3
+man/man3/FcBlanksCreate.3
+man/man3/FcBlanksDestroy.3
+man/man3/FcBlanksIsMember.3
+man/man3/FcCacheCopySet.3
+man/man3/FcCacheCreateTagFile.3
+man/man3/FcCacheDir.3
+man/man3/FcCacheNumFont.3
+man/man3/FcCacheNumSubdir.3
+man/man3/FcCacheSubdir.3
+man/man3/FcCharSetAddChar.3
+man/man3/FcCharSetCopy.3
+man/man3/FcCharSetCount.3
+man/man3/FcCharSetCoverage.3
+man/man3/FcCharSetCreate.3
+man/man3/FcCharSetDelChar.3
+man/man3/FcCharSetDestroy.3
+man/man3/FcCharSetEqual.3
+man/man3/FcCharSetFirstPage.3
+man/man3/FcCharSetHasChar.3
+man/man3/FcCharSetIntersect.3
+man/man3/FcCharSetIntersectCount.3
+man/man3/FcCharSetIsSubset.3
+man/man3/FcCharSetMerge.3
+man/man3/FcCharSetNew.3
+man/man3/FcCharSetNextPage.3
+man/man3/FcCharSetSubtract.3
+man/man3/FcCharSetSubtractCount.3
+man/man3/FcCharSetUnion.3
+man/man3/FcConfigAppFontAddDir.3
+man/man3/FcConfigAppFontAddFile.3
+man/man3/FcConfigAppFontClear.3
+man/man3/FcConfigBuildFonts.3
+man/man3/FcConfigCreate.3
+man/man3/FcConfigDestroy.3
+man/man3/FcConfigEnableHome.3
+man/man3/FcConfigFileInfoIterGet.3
+man/man3/FcConfigFileInfoIterInit.3
+man/man3/FcConfigFileInfoIterNext.3
+man/man3/FcConfigFilename.3
+man/man3/FcConfigGetBlanks.3
+man/man3/FcConfigGetCache.3
+man/man3/FcConfigGetCacheDirs.3
+man/man3/FcConfigGetConfigDirs.3
+man/man3/FcConfigGetConfigFiles.3
+man/man3/FcConfigGetCurrent.3
+man/man3/FcConfigGetFontDirs.3
+man/man3/FcConfigGetFonts.3
+man/man3/FcConfigGetRescanInterval.3
+man/man3/FcConfigGetSysRoot.3
+man/man3/FcConfigHome.3
+man/man3/FcConfigParseAndLoad.3
+man/man3/FcConfigParseAndLoadFromMemory.3
+man/man3/FcConfigReference.3
+man/man3/FcConfigSetCurrent.3
+man/man3/FcConfigSetRescanInterval.3
+man/man3/FcConfigSetSysRoot.3
+man/man3/FcConfigSubstitute.3
+man/man3/FcConfigSubstituteWithPat.3
+man/man3/FcConfigUptoDate.3
+man/man3/FcDefaultSubstitute.3
+man/man3/FcDirCacheClean.3
+man/man3/FcDirCacheCreateUUID.3
+man/man3/FcDirCacheDeleteUUID.3
+man/man3/FcDirCacheLoad.3
+man/man3/FcDirCacheLoadFile.3
+man/man3/FcDirCacheRead.3
+man/man3/FcDirCacheRescan.3
+man/man3/FcDirCacheUnlink.3
+man/man3/FcDirCacheUnload.3
+man/man3/FcDirCacheValid.3
+man/man3/FcDirSave.3
+man/man3/FcDirScan.3
+man/man3/FcFileIsDir.3
+man/man3/FcFileScan.3
+man/man3/FcFini.3
+man/man3/FcFontList.3
+man/man3/FcFontMatch.3
+man/man3/FcFontRenderPrepare.3
+man/man3/FcFontSetAdd.3
+man/man3/FcFontSetCreate.3
+man/man3/FcFontSetDestroy.3
+man/man3/FcFontSetList.3
+man/man3/FcFontSetMatch.3
+man/man3/FcFontSetPrint.3
+man/man3/FcFontSetSort.3
+man/man3/FcFontSetSortDestroy.3
+man/man3/FcFontSort.3
+man/man3/FcFreeTypeCharIndex.3
+man/man3/FcFreeTypeCharSet.3
+man/man3/FcFreeTypeCharSetAndSpacing.3
+man/man3/FcFreeTypeQuery.3
+man/man3/FcFreeTypeQueryAll.3
+man/man3/FcFreeTypeQueryFace.3
+man/man3/FcGetDefaultLangs.3
+man/man3/FcGetLangs.3
+man/man3/FcGetVersion.3
+man/man3/FcInit.3
+man/man3/FcInitBringUptoDate.3
+man/man3/FcInitLoadConfig.3
+man/man3/FcInitLoadConfigAndFonts.3
+man/man3/FcInitReinitialize.3
+man/man3/FcIsLower.3
+man/man3/FcIsUpper.3
+man/man3/FcLangGetCharSet.3
+man/man3/FcLangNormalize.3
+man/man3/FcLangSetAdd.3
+man/man3/FcLangSetCompare.3
+man/man3/FcLangSetContains.3
+man/man3/FcLangSetCopy.3
+man/man3/FcLangSetCreate.3
+man/man3/FcLangSetDel.3
+man/man3/FcLangSetDestroy.3
+man/man3/FcLangSetEqual.3
+man/man3/FcLangSetGetLangs.3
+man/man3/FcLangSetHasLang.3
+man/man3/FcLangSetHash.3
+man/man3/FcLangSetSubtract.3
+man/man3/FcLangSetUnion.3
+man/man3/FcMatrixCopy.3
+man/man3/FcMatrixEqual.3
+man/man3/FcMatrixInit.3
+man/man3/FcMatrixMultiply.3
+man/man3/FcMatrixRotate.3
+man/man3/FcMatrixScale.3
+man/man3/FcMatrixShear.3
+man/man3/FcNameConstant.3
+man/man3/FcNameGetConstant.3
+man/man3/FcNameGetObjectType.3
+man/man3/FcNameParse.3
+man/man3/FcNameRegisterConstants.3
+man/man3/FcNameRegisterObjectTypes.3
+man/man3/FcNameUnparse.3
+man/man3/FcNameUnregisterConstants.3
+man/man3/FcNameUnregisterObjectTypes.3
+man/man3/FcObjectSetAdd.3
+man/man3/FcObjectSetBuild.3
+man/man3/FcObjectSetCreate.3
+man/man3/FcObjectSetDestroy.3
+man/man3/FcPatternAdd-Type.3
+man/man3/FcPatternAdd.3
+man/man3/FcPatternAddWeak.3
+man/man3/FcPatternBuild.3
+man/man3/FcPatternCreate.3
+man/man3/FcPatternDel.3
+man/man3/FcPatternDestroy.3
+man/man3/FcPatternDuplicate.3
+man/man3/FcPatternEqual.3
+man/man3/FcPatternEqualSubset.3
+man/man3/FcPatternFilter.3
+man/man3/FcPatternFindIter.3
+man/man3/FcPatternFormat.3
+man/man3/FcPatternGet-Type.3
+man/man3/FcPatternGet.3
+man/man3/FcPatternGetWithBinding.3
+man/man3/FcPatternHash.3
+man/man3/FcPatternIterEqual.3
+man/man3/FcPatternIterGetObject.3
+man/man3/FcPatternIterGetValue.3
+man/man3/FcPatternIterIsValid.3
+man/man3/FcPatternIterNext.3
+man/man3/FcPatternIterStart.3
+man/man3/FcPatternIterValueCount.3
+man/man3/FcPatternObjectCount.3
+man/man3/FcPatternPrint.3
+man/man3/FcPatternReference.3
+man/man3/FcPatternRemove.3
+man/man3/FcRangeCopy.3
+man/man3/FcRangeCreateDouble.3
+man/man3/FcRangeCreateInteger.3
+man/man3/FcRangeDestroy.3
+man/man3/FcRangeGetDouble.3
+man/man3/FcStrBasename.3
+man/man3/FcStrCmp.3
+man/man3/FcStrCmpIgnoreCase.3
+man/man3/FcStrCopy.3
+man/man3/FcStrCopyFilename.3
+man/man3/FcStrDirname.3
+man/man3/FcStrDowncase.3
+man/man3/FcStrFree.3
+man/man3/FcStrListCreate.3
+man/man3/FcStrListDone.3
+man/man3/FcStrListFirst.3
+man/man3/FcStrListNext.3
+man/man3/FcStrPlus.3
+man/man3/FcStrSetAdd.3
+man/man3/FcStrSetAddFilename.3
+man/man3/FcStrSetCreate.3
+man/man3/FcStrSetDel.3
+man/man3/FcStrSetDestroy.3
+man/man3/FcStrSetEqual.3
+man/man3/FcStrSetMember.3
+man/man3/FcStrStr.3
+man/man3/FcStrStrIgnoreCase.3
+man/man3/FcToLower.3
+man/man3/FcUcs4ToUtf8.3
+man/man3/FcUtf16Len.3
+man/man3/FcUtf16ToUcs4.3
+man/man3/FcUtf8Len.3
+man/man3/FcUtf8ToUcs4.3
+man/man3/FcValueDestroy.3
+man/man3/FcValueEqual.3
+man/man3/FcValuePrint.3
+man/man3/FcValueSave.3
+man/man3/FcWeightFromOpenType.3
+man/man3/FcWeightFromOpenTypeDouble.3
+man/man3/FcWeightToOpenType.3
+man/man3/FcWeightToOpenTypeDouble.3
+man/man5/fonts-conf.5
+share/doc/fontconfig/fontconfig-devel.pdf
+share/doc/fontconfig/fontconfig-devel.txt
+share/doc/fontconfig/fontconfig-devel/fcatomiccreate.html
+share/doc/fontconfig/fontconfig-devel/fcatomicdeletenew.html
+share/doc/fontconfig/fontconfig-devel/fcatomicdestroy.html
+share/doc/fontconfig/fontconfig-devel/fcatomiclock.html
+share/doc/fontconfig/fontconfig-devel/fcatomicnewfile.html
+share/doc/fontconfig/fontconfig-devel/fcatomicorigfile.html
+share/doc/fontconfig/fontconfig-devel/fcatomicreplaceorig.html
+share/doc/fontconfig/fontconfig-devel/fcatomicunlock.html
+share/doc/fontconfig/fontconfig-devel/fcblanksadd.html
+share/doc/fontconfig/fontconfig-devel/fcblankscreate.html
+share/doc/fontconfig/fontconfig-devel/fcblanksdestroy.html
+share/doc/fontconfig/fontconfig-devel/fcblanksismember.html
+share/doc/fontconfig/fontconfig-devel/fccachecopyset.html
+share/doc/fontconfig/fontconfig-devel/fccachecreatetagfile.html
+share/doc/fontconfig/fontconfig-devel/fccachedir.html
+share/doc/fontconfig/fontconfig-devel/fccachenumfont.html
+share/doc/fontconfig/fontconfig-devel/fccachenumsubdir.html
+share/doc/fontconfig/fontconfig-devel/fccachesubdir.html
+share/doc/fontconfig/fontconfig-devel/fccharsetaddchar.html
+share/doc/fontconfig/fontconfig-devel/fccharsetcopy.html
+share/doc/fontconfig/fontconfig-devel/fccharsetcount.html
+share/doc/fontconfig/fontconfig-devel/fccharsetcoverage.html
+share/doc/fontconfig/fontconfig-devel/fccharsetcreate.html
+share/doc/fontconfig/fontconfig-devel/fccharsetdelchar.html
+share/doc/fontconfig/fontconfig-devel/fccharsetdestroy.html
+share/doc/fontconfig/fontconfig-devel/fccharsetequal.html
+share/doc/fontconfig/fontconfig-devel/fccharsetfirstpage.html
+share/doc/fontconfig/fontconfig-devel/fccharsethaschar.html
+share/doc/fontconfig/fontconfig-devel/fccharsetintersect.html
+share/doc/fontconfig/fontconfig-devel/fccharsetintersectcount.html
+share/doc/fontconfig/fontconfig-devel/fccharsetissubset.html
+share/doc/fontconfig/fontconfig-devel/fccharsetmerge.html
+share/doc/fontconfig/fontconfig-devel/fccharsetnew.html
+share/doc/fontconfig/fontconfig-devel/fccharsetnextpage.html
+share/doc/fontconfig/fontconfig-devel/fccharsetsubtract.html
+share/doc/fontconfig/fontconfig-devel/fccharsetsubtractcount.html
+share/doc/fontconfig/fontconfig-devel/fccharsetunion.html
+share/doc/fontconfig/fontconfig-devel/fcconfigappfontadddir.html
+share/doc/fontconfig/fontconfig-devel/fcconfigappfontaddfile.html
+share/doc/fontconfig/fontconfig-devel/fcconfigappfontclear.html
+share/doc/fontconfig/fontconfig-devel/fcconfigbuildfonts.html
+share/doc/fontconfig/fontconfig-devel/fcconfigcreate.html
+share/doc/fontconfig/fontconfig-devel/fcconfigdestroy.html
+share/doc/fontconfig/fontconfig-devel/fcconfigenablehome.html
+share/doc/fontconfig/fontconfig-devel/fcconfigfileinfoiterget.html
+share/doc/fontconfig/fontconfig-devel/fcconfigfileinfoiterinit.html
+share/doc/fontconfig/fontconfig-devel/fcconfigfileinfoiternext.html
+share/doc/fontconfig/fontconfig-devel/fcconfigfilename.html
+share/doc/fontconfig/fontconfig-devel/fcconfiggetblanks.html
+share/doc/fontconfig/fontconfig-devel/fcconfiggetcache.html
+share/doc/fontconfig/fontconfig-devel/fcconfiggetcachedirs.html
+share/doc/fontconfig/fontconfig-devel/fcconfiggetconfigdirs.html
+share/doc/fontconfig/fontconfig-devel/fcconfiggetconfigfiles.html
+share/doc/fontconfig/fontconfig-devel/fcconfiggetcurrent.html
+share/doc/fontconfig/fontconfig-devel/fcconfiggetfontdirs.html
+share/doc/fontconfig/fontconfig-devel/fcconfiggetfonts.html
+share/doc/fontconfig/fontconfig-devel/fcconfiggetrescaninterval.html
+share/doc/fontconfig/fontconfig-devel/fcconfiggetsysroot.html
+share/doc/fontconfig/fontconfig-devel/fcconfighome.html
+share/doc/fontconfig/fontconfig-devel/fcconfigparseandload.html
+share/doc/fontconfig/fontconfig-devel/fcconfigparseandloadfrommemory.html
+share/doc/fontconfig/fontconfig-devel/fcconfigreference.html
+share/doc/fontconfig/fontconfig-devel/fcconfigsetcurrent.html
+share/doc/fontconfig/fontconfig-devel/fcconfigsetrescaninterval.html
+share/doc/fontconfig/fontconfig-devel/fcconfigsetsysroot.html
+share/doc/fontconfig/fontconfig-devel/fcconfigsubstitute.html
+share/doc/fontconfig/fontconfig-devel/fcconfigsubstitutewithpat.html
+share/doc/fontconfig/fontconfig-devel/fcconfiguptodate.html
+share/doc/fontconfig/fontconfig-devel/fcdefaultsubstitute.html
+share/doc/fontconfig/fontconfig-devel/fcdircacheclean.html
+share/doc/fontconfig/fontconfig-devel/fcdircachecreateuuid.html
+share/doc/fontconfig/fontconfig-devel/fcdircachedeleteuuid.html
+share/doc/fontconfig/fontconfig-devel/fcdircacheload.html
+share/doc/fontconfig/fontconfig-devel/fcdircacheloadfile.html
+share/doc/fontconfig/fontconfig-devel/fcdircacheread.html
+share/doc/fontconfig/fontconfig-devel/fcdircacherescan.html
+share/doc/fontconfig/fontconfig-devel/fcdircacheunlink.html
+share/doc/fontconfig/fontconfig-devel/fcdircacheunload.html
+share/doc/fontconfig/fontconfig-devel/fcdircachevalid.html
+share/doc/fontconfig/fontconfig-devel/fcdirsave.html
+share/doc/fontconfig/fontconfig-devel/fcdirscan.html
+share/doc/fontconfig/fontconfig-devel/fcfileisdir.html
+share/doc/fontconfig/fontconfig-devel/fcfilescan.html
+share/doc/fontconfig/fontconfig-devel/fcfini.html
+share/doc/fontconfig/fontconfig-devel/fcfontlist.html
+share/doc/fontconfig/fontconfig-devel/fcfontmatch.html
+share/doc/fontconfig/fontconfig-devel/fcfontrenderprepare.html
+share/doc/fontconfig/fontconfig-devel/fcfontsetadd.html
+share/doc/fontconfig/fontconfig-devel/fcfontsetcreate.html
+share/doc/fontconfig/fontconfig-devel/fcfontsetdestroy.html
+share/doc/fontconfig/fontconfig-devel/fcfontsetlist.html
+share/doc/fontconfig/fontconfig-devel/fcfontsetmatch.html
+share/doc/fontconfig/fontconfig-devel/fcfontsetprint.html
+share/doc/fontconfig/fontconfig-devel/fcfontsetsort.html
+share/doc/fontconfig/fontconfig-devel/fcfontsetsortdestroy.html
+share/doc/fontconfig/fontconfig-devel/fcfontsort.html
+share/doc/fontconfig/fontconfig-devel/fcfreetypecharindex.html
+share/doc/fontconfig/fontconfig-devel/fcfreetypecharset.html
+share/doc/fontconfig/fontconfig-devel/fcfreetypecharsetandspacing.html
+share/doc/fontconfig/fontconfig-devel/fcfreetypequery.html
+share/doc/fontconfig/fontconfig-devel/fcfreetypequeryall.html
+share/doc/fontconfig/fontconfig-devel/fcfreetypequeryface.html
+share/doc/fontconfig/fontconfig-devel/fcgetdefaultlangs.html
+share/doc/fontconfig/fontconfig-devel/fcgetlangs.html
+share/doc/fontconfig/fontconfig-devel/fcgetversion.html
+share/doc/fontconfig/fontconfig-devel/fcinit.html
+share/doc/fontconfig/fontconfig-devel/fcinitbringuptodate.html
+share/doc/fontconfig/fontconfig-devel/fcinitloadconfig.html
+share/doc/fontconfig/fontconfig-devel/fcinitloadconfigandfonts.html
+share/doc/fontconfig/fontconfig-devel/fcinitreinitialize.html
+share/doc/fontconfig/fontconfig-devel/fcislower.html
+share/doc/fontconfig/fontconfig-devel/fcisupper.html
+share/doc/fontconfig/fontconfig-devel/fclanggetcharset.html
+share/doc/fontconfig/fontconfig-devel/fclangnormalize.html
+share/doc/fontconfig/fontconfig-devel/fclangsetadd.html
+share/doc/fontconfig/fontconfig-devel/fclangsetcompare.html
+share/doc/fontconfig/fontconfig-devel/fclangsetcontains.html
+share/doc/fontconfig/fontconfig-devel/fclangsetcopy.html
+share/doc/fontconfig/fontconfig-devel/fclangsetcreate.html
+share/doc/fontconfig/fontconfig-devel/fclangsetdel.html
+share/doc/fontconfig/fontconfig-devel/fclangsetdestroy.html
+share/doc/fontconfig/fontconfig-devel/fclangsetequal.html
+share/doc/fontconfig/fontconfig-devel/fclangsetgetlangs.html
+share/doc/fontconfig/fontconfig-devel/fclangsethash.html
+share/doc/fontconfig/fontconfig-devel/fclangsethaslang.html
+share/doc/fontconfig/fontconfig-devel/fclangsetsubtract.html
+share/doc/fontconfig/fontconfig-devel/fclangsetunion.html
+share/doc/fontconfig/fontconfig-devel/fcmatrixcopy.html
+share/doc/fontconfig/fontconfig-devel/fcmatrixequal.html
+share/doc/fontconfig/fontconfig-devel/fcmatrixinit.html
+share/doc/fontconfig/fontconfig-devel/fcmatrixmultiply.html
+share/doc/fontconfig/fontconfig-devel/fcmatrixrotate.html
+share/doc/fontconfig/fontconfig-devel/fcmatrixscale.html
+share/doc/fontconfig/fontconfig-devel/fcmatrixshear.html
+share/doc/fontconfig/fontconfig-devel/fcnameconstant.html
+share/doc/fontconfig/fontconfig-devel/fcnamegetconstant.html
+share/doc/fontconfig/fontconfig-devel/fcnamegetobjecttype.html
+share/doc/fontconfig/fontconfig-devel/fcnameparse.html
+share/doc/fontconfig/fontconfig-devel/fcnameregisterconstants.html
+share/doc/fontconfig/fontconfig-devel/fcnameregisterobjecttypes.html
+share/doc/fontconfig/fontconfig-devel/fcnameunparse.html
+share/doc/fontconfig/fontconfig-devel/fcnameunregisterconstants.html
+share/doc/fontconfig/fontconfig-devel/fcnameunregisterobjecttypes.html
+share/doc/fontconfig/fontconfig-devel/fcobjectsetadd.html
+share/doc/fontconfig/fontconfig-devel/fcobjectsetbuild.html
+share/doc/fontconfig/fontconfig-devel/fcobjectsetcreate.html
+share/doc/fontconfig/fontconfig-devel/fcobjectsetdestroy.html
+share/doc/fontconfig/fontconfig-devel/fcpatternadd-type.html
+share/doc/fontconfig/fontconfig-devel/fcpatternadd.html
+share/doc/fontconfig/fontconfig-devel/fcpatternaddweak.html
+share/doc/fontconfig/fontconfig-devel/fcpatternbuild.html
+share/doc/fontconfig/fontconfig-devel/fcpatterncreate.html
+share/doc/fontconfig/fontconfig-devel/fcpatterndel.html
+share/doc/fontconfig/fontconfig-devel/fcpatterndestroy.html
+share/doc/fontconfig/fontconfig-devel/fcpatternduplicate.html
+share/doc/fontconfig/fontconfig-devel/fcpatternequal.html
+share/doc/fontconfig/fontconfig-devel/fcpatternequalsubset.html
+share/doc/fontconfig/fontconfig-devel/fcpatternfilter.html
+share/doc/fontconfig/fontconfig-devel/fcpatternfinditer.html
+share/doc/fontconfig/fontconfig-devel/fcpatternformat.html
+share/doc/fontconfig/fontconfig-devel/fcpatternget-type.html
+share/doc/fontconfig/fontconfig-devel/fcpatternget.html
+share/doc/fontconfig/fontconfig-devel/fcpatterngetwithbinding.html
+share/doc/fontconfig/fontconfig-devel/fcpatternhash.html
+share/doc/fontconfig/fontconfig-devel/fcpatterniterequal.html
+share/doc/fontconfig/fontconfig-devel/fcpatternitergetobject.html
+share/doc/fontconfig/fontconfig-devel/fcpatternitergetvalue.html
+share/doc/fontconfig/fontconfig-devel/fcpatterniterisvalid.html
+share/doc/fontconfig/fontconfig-devel/fcpatterniternext.html
+share/doc/fontconfig/fontconfig-devel/fcpatterniterstart.html
+share/doc/fontconfig/fontconfig-devel/fcpatternitervaluecount.html
+share/doc/fontconfig/fontconfig-devel/fcpatternobjectcount.html
+share/doc/fontconfig/fontconfig-devel/fcpatternprint.html
+share/doc/fontconfig/fontconfig-devel/fcpatternreference.html
+share/doc/fontconfig/fontconfig-devel/fcpatternremove.html
+share/doc/fontconfig/fontconfig-devel/fcrangecopy.html
+share/doc/fontconfig/fontconfig-devel/fcrangecreatedouble.html
+share/doc/fontconfig/fontconfig-devel/fcrangecreateinteger.html
+share/doc/fontconfig/fontconfig-devel/fcrangedestroy.html
+share/doc/fontconfig/fontconfig-devel/fcrangegetdouble.html
+share/doc/fontconfig/fontconfig-devel/fcstrbasename.html
+share/doc/fontconfig/fontconfig-devel/fcstrcmp.html
+share/doc/fontconfig/fontconfig-devel/fcstrcmpignorecase.html
+share/doc/fontconfig/fontconfig-devel/fcstrcopy.html
+share/doc/fontconfig/fontconfig-devel/fcstrcopyfilename.html
+share/doc/fontconfig/fontconfig-devel/fcstrdirname.html
+share/doc/fontconfig/fontconfig-devel/fcstrdowncase.html
+share/doc/fontconfig/fontconfig-devel/fcstrfree.html
+share/doc/fontconfig/fontconfig-devel/fcstrlistcreate.html
+share/doc/fontconfig/fontconfig-devel/fcstrlistdone.html
+share/doc/fontconfig/fontconfig-devel/fcstrlistfirst.html
+share/doc/fontconfig/fontconfig-devel/fcstrlistnext.html
+share/doc/fontconfig/fontconfig-devel/fcstrplus.html
+share/doc/fontconfig/fontconfig-devel/fcstrsetadd.html
+share/doc/fontconfig/fontconfig-devel/fcstrsetaddfilename.html
+share/doc/fontconfig/fontconfig-devel/fcstrsetcreate.html
+share/doc/fontconfig/fontconfig-devel/fcstrsetdel.html
+share/doc/fontconfig/fontconfig-devel/fcstrsetdestroy.html
+share/doc/fontconfig/fontconfig-devel/fcstrsetequal.html
+share/doc/fontconfig/fontconfig-devel/fcstrsetmember.html
+share/doc/fontconfig/fontconfig-devel/fcstrstr.html
+share/doc/fontconfig/fontconfig-devel/fcstrstrignorecase.html
+share/doc/fontconfig/fontconfig-devel/fctolower.html
+share/doc/fontconfig/fontconfig-devel/fcucs4toutf8.html
+share/doc/fontconfig/fontconfig-devel/fcutf16len.html
+share/doc/fontconfig/fontconfig-devel/fcutf16toucs4.html
+share/doc/fontconfig/fontconfig-devel/fcutf8len.html
+share/doc/fontconfig/fontconfig-devel/fcutf8toucs4.html
+share/doc/fontconfig/fontconfig-devel/fcvaluedestroy.html
+share/doc/fontconfig/fontconfig-devel/fcvalueequal.html
+share/doc/fontconfig/fontconfig-devel/fcvalueprint.html
+share/doc/fontconfig/fontconfig-devel/fcvaluesave.html
+share/doc/fontconfig/fontconfig-devel/fcweightfromopentype.html
+share/doc/fontconfig/fontconfig-devel/fcweightfromopentypedouble.html
+share/doc/fontconfig/fontconfig-devel/fcweighttoopentype.html
+share/doc/fontconfig/fontconfig-devel/fcweighttoopentypedouble.html
+share/doc/fontconfig/fontconfig-devel/ln12.html
+share/doc/fontconfig/fontconfig-devel/t1.html
+share/doc/fontconfig/fontconfig-devel/x103.html
+share/doc/fontconfig/fontconfig-devel/x19.html
+share/doc/fontconfig/fontconfig-devel/x31.html
+share/doc/fontconfig/fontconfig-user.html
+share/doc/fontconfig/fontconfig-user.pdf
+share/doc/fontconfig/fontconfig-user.txt
+share/examples/fontconfig/conf.d/README
+share/examples/fontconfig/fonts.conf
+share/fontconfig/conf.avail/10-autohint.conf
+share/fontconfig/conf.avail/10-hinting-full.conf
+share/fontconfig/conf.avail/10-hinting-medium.conf
+share/fontconfig/conf.avail/10-hinting-none.conf
+share/fontconfig/conf.avail/10-hinting-slight.conf
+share/fontconfig/conf.avail/10-no-sub-pixel.conf
+share/fontconfig/conf.avail/10-scale-bitmap-fonts.conf
+share/fontconfig/conf.avail/10-sub-pixel-bgr.conf
+share/fontconfig/conf.avail/10-sub-pixel-rgb.conf
+share/fontconfig/conf.avail/10-sub-pixel-vbgr.conf
+share/fontconfig/conf.avail/10-sub-pixel-vrgb.conf
+share/fontconfig/conf.avail/10-unhinted.conf
+share/fontconfig/conf.avail/11-lcdfilter-default.conf
+share/fontconfig/conf.avail/11-lcdfilter-legacy.conf
+share/fontconfig/conf.avail/11-lcdfilter-light.conf
+share/fontconfig/conf.avail/20-unhint-small-vera.conf
+share/fontconfig/conf.avail/25-unhint-nonlatin.conf
+share/fontconfig/conf.avail/30-metric-aliases.conf
+share/fontconfig/conf.avail/30-pkgsrc-aliases.conf
+share/fontconfig/conf.avail/40-nonlatin.conf
+share/fontconfig/conf.avail/45-generic.conf
+share/fontconfig/conf.avail/45-latin.conf
+share/fontconfig/conf.avail/49-sansserif.conf
+share/fontconfig/conf.avail/50-user.conf
+share/fontconfig/conf.avail/51-local.conf
+share/fontconfig/conf.avail/60-generic.conf
+share/fontconfig/conf.avail/60-latin.conf
+share/fontconfig/conf.avail/65-fonts-persian.conf
+share/fontconfig/conf.avail/65-khmer.conf
+share/fontconfig/conf.avail/65-nonlatin.conf
+share/fontconfig/conf.avail/69-unifont.conf
+share/fontconfig/conf.avail/70-no-bitmaps.conf
+share/fontconfig/conf.avail/70-yes-bitmaps.conf
+share/fontconfig/conf.avail/80-delicious.conf
+share/fontconfig/conf.avail/90-synthetic.conf
+share/gettext/its/fontconfig.its
+share/gettext/its/fontconfig.loc
+share/locale/zh_CN/LC_MESSAGES/fontconfig-conf.mo
+share/locale/zh_CN/LC_MESSAGES/fontconfig.mo
+share/xml/fontconfig/fonts.dtd
diff --git a/fontconfig-32/Patching b/fontconfig-32/Patching
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/fontconfig-32/TODO b/fontconfig-32/TODO
new file mode 100644
index 0000000000..a96e35af51
--- /dev/null
+++ b/fontconfig-32/TODO
@@ -0,0 +1 @@
+This package isnt functional yet.
diff --git a/fontconfig-32/Verifying b/fontconfig-32/Verifying
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/fontconfig-32/buildlink3.mk b/fontconfig-32/buildlink3.mk
new file mode 100644
index 0000000000..4d38720b3d
--- /dev/null
+++ b/fontconfig-32/buildlink3.mk
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink3.mk,v 1.36 2018/08/31 09:06:07 tnn Exp $
+
+BUILDLINK_TREE+= compat32_fontconfig
+
+.if !defined(COMPAT32_FONTCONFIG_BUILDLINK3_MK)
+COMPAT32_FONTCONFIG_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.compat32_fontconfig+= compat32_fontconfig>=2.10.93
+BUILDLINK_ABI_DEPENDS.compat32_fontconfig+= compat32_fontconfig>=2.13.0
+BUILDLINK_PKGSRCDIR.compat32_fontconfig?= ../../wip/fontconfig-32
+BUILDLINK_LIBDIRS.compat32_fontconfig?= emul/netbsd32/lib
+BUILDLINK_INCDIRS.compat32_fontconfig?= emul/netbsd32/include
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../devel/libuuid/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../textproc/expat/buildlink3.mk"
+.endif # COMPAT32_FONTCONFIG_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -compat32_fontconfig
diff --git a/fontconfig-32/builtin.mk b/fontconfig-32/builtin.mk
new file mode 100644
index 0000000000..87e41b838c
--- /dev/null
+++ b/fontconfig-32/builtin.mk
@@ -0,0 +1,84 @@
+# $NetBSD: builtin.mk,v 1.12 2019/04/26 15:05:14 gavan Exp $
+
+BUILTIN_PKG:= fontconfig
+
+BUILTIN_FIND_FILES_VAR:= H_FONTCONFIG
+BUILTIN_FIND_FILES.H_FONTCONFIG= \
+ ${X11BASE}/include/fontconfig/fontconfig.h
+
+.include "../../mk/buildlink3/bsd.builtin.mk"
+
+###
+### Determine if there is a built-in implementation of the package and
+### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
+###
+.if !defined(IS_BUILTIN.fontconfig)
+. if empty(H_FONTCONFIG:M__nonexistent__)
+IS_BUILTIN.fontconfig= yes
+. else
+IS_BUILTIN.fontconfig= no
+. endif
+.endif
+MAKEVARS+= IS_BUILTIN.fontconfig
+
+###
+### If there is a built-in implementation, then set BUILTIN_PKG.<pkg> to
+### a package name to represent the built-in package.
+###
+.if !defined(BUILTIN_PKG.fontconfig) && \
+ !empty(IS_BUILTIN.fontconfig:M[yY][eE][sS]) && \
+ empty(H_FONTCONFIG:M__nonexistent__)
+BUILTIN_VERSION.fontconfig!= \
+ ${AWK} '/\#define[ ]*FC_MAJOR/ { M = $$3 } \
+ /\#define[ ]*FC_MINOR/ { m = "."$$3 } \
+ /\#define[ ]*FC_REVISION/ { r = "."$$3 } \
+ END { printf "%s%s%s\n", M, m, r }' \
+ ${H_FONTCONFIG}
+BUILTIN_PKG.fontconfig= fontconfig-${BUILTIN_VERSION.fontconfig}
+.endif
+MAKEVARS+= BUILTIN_PKG.fontconfig
+
+###
+### Determine whether we should use the built-in implementation if it
+### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
+###
+
+.if !defined(USE_BUILTIN.fontconfig)
+. if ${PREFER.fontconfig} == "pkgsrc"
+USE_BUILTIN.fontconfig= no
+. else
+USE_BUILTIN.fontconfig= ${IS_BUILTIN.fontconfig}
+. if defined(BUILTIN_PKG.fontconfig) && \
+ !empty(IS_BUILTIN.fontconfig:M[yY][eE][sS])
+USE_BUILTIN.fontconfig= yes
+. for _dep_ in ${BUILDLINK_API_DEPENDS.fontconfig}
+. if !empty(USE_BUILTIN.fontconfig:M[yY][eE][sS])
+USE_BUILTIN.fontconfig!= \
+ if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.fontconfig:Q}; then \
+ ${ECHO} yes; \
+ else \
+ ${ECHO} no; \
+ fi
+. endif
+. endfor
+. endif
+. endif # PREFER.fontconfig
+.endif
+MAKEVARS+= USE_BUILTIN.fontconfig
+
+###
+### The section below only applies if we are not including this file
+### solely to determine whether a built-in implementation exists.
+###
+
+.include "../../mk/x11.builtin.mk"
+
+CHECK_BUILTIN.fontconfig?= no
+.if !empty(CHECK_BUILTIN.fontconfig:M[nN][oO])
+
+. if !empty(USE_BUILTIN.fontconfig:M[nN][oO])
+BUILDLINK_API_DEPENDS.fontconfig+= fontconfig>=2.1nb2
+BUILDLINK_API_DEPENDS.freetype2+= freetype2>=2.1.3
+. endif
+
+.endif # CHECK_BUILTIN.fontconfig
diff --git a/fontconfig-32/distinfo b/fontconfig-32/distinfo
new file mode 100644
index 0000000000..c75e95004b
--- /dev/null
+++ b/fontconfig-32/distinfo
@@ -0,0 +1,17 @@
+$NetBSD: distinfo,v 1.66 2018/09/02 20:30:43 wiz Exp $
+
+SHA1 (fontconfig-2.13.1.tar.bz2) = 75612356ef4f801735b49baf987f8942b4a7a5e1
+RMD160 (fontconfig-2.13.1.tar.bz2) = a971903874fb0395a7ab2d5705378af1ffce2b2c
+SHA512 (fontconfig-2.13.1.tar.bz2) = f97f2a9db294fd72d416a7d76dd7db5934ade2cf76903764b09e7decc33e0e2eed1a1d35c5f1c7fd9ea39e2c7653b9e65365f0c6205e047e95e38ba5000dd100
+Size (fontconfig-2.13.1.tar.bz2) = 1723639 bytes
+SHA1 (patch-aa) = ae9a465321dcaee634faf016e2dd01e2f544af12
+SHA1 (patch-ac) = 4a0b7b55aa4b5c106fd256c4ef81df2240224803
+SHA1 (patch-af) = d351265c894738284215f0bb38d47cc1c8f28ec7
+SHA1 (patch-configure) = 164cb8ae38d71e52eb9c41584d8597f6c44228b5
+SHA1 (patch-scandir.c) = e35f4c005f635dd0d8bb949cd32aa34f5e314200
+SHA1 (patch-src_fccharset.c) = f3855554b3b3cab2530b46bc1ccec6a33303de7a
+SHA1 (patch-src_fcfreetype.c) = 42542ae666b292af700313ee103d0f295cf69e4e
+SHA1 (patch-src_fcftint.h) = d629fd7ef9713ccc56800d033ba2e09c5a9e2bff
+SHA1 (patch-src_fcint.h) = 0f8accec35b75ad4cd4c558f9680d1f82548a308
+SHA1 (patch-src_fcstat.c) = 3aaa5b1a174644e5d655a9c5890998c9d80e8da9
+SHA1 (patch-test_test-migration.c) = 0fcbae562f8ebdef807978755c252626ade44a09
diff --git a/fontconfig-32/extract-message b/fontconfig-32/extract-message
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/fontconfig-32/files/30-pkgsrc-aliases.conf b/fontconfig-32/files/30-pkgsrc-aliases.conf
new file mode 100644
index 0000000000..b7f08521d3
--- /dev/null
+++ b/fontconfig-32/files/30-pkgsrc-aliases.conf
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<!-- $NetBSD: 30-pkgsrc-aliases.conf,v 1.1 2009/04/07 19:27:57 drochner Exp $ -->
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>ZapfDingbats</family>
+ <accept><family>Dingbats</family></accept>
+ </alias>
+</fontconfig>
diff --git a/fontconfig-32/patch-message b/fontconfig-32/patch-message
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/fontconfig-32/patches/patch-aa b/fontconfig-32/patches/patch-aa
new file mode 100644
index 0000000000..1b07860856
--- /dev/null
+++ b/fontconfig-32/patches/patch-aa
@@ -0,0 +1,43 @@
+$NetBSD: patch-aa,v 1.18 2013/10/17 07:27:33 wiz Exp $
+
+--- Makefile.in.orig 2013-10-11 04:28:46.000000000 +0000
++++ Makefile.in
+@@ -380,6 +380,7 @@ datadir = @datadir@
+ datarootdir = @datarootdir@
+ docdir = @docdir@
+ dvidir = @dvidir@
++egdir = $(prefix)/share/examples/fontconfig
+ exec_prefix = @exec_prefix@
+ fc_cachedir = @fc_cachedir@
+ host = @host@
+@@ -439,6 +440,7 @@ xml_DATA = fonts.dtd
+ @CROSS_COMPILING_TRUE@RUN_FC_CACHE_TEST = false
+ FC_CONFIGDIR = $(subst $(BASECONFIGDIR)/,,$(CONFIGDIR))
+ DISTCHECK_CONFIGURE_FLAGS =
++RUN_FC_CACHE_TEST = false
+ all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
+
+@@ -997,17 +999,13 @@ fonts.conf: fonts.conf.in Makefile
+ mv $@.tmp $@
+
+ install-data-local: fonts.conf
+- $(mkinstalldirs) $(DESTDIR)$(baseconfigdir) $(DESTDIR)$(fc_cachedir)
+- if [ -f $(DESTDIR)$(baseconfigdir)/fonts.conf ]; then \
+- echo "backing up existing $(DESTDIR)$(baseconfigdir)/fonts.conf"; \
+- mv $(DESTDIR)$(baseconfigdir)/fonts.conf $(DESTDIR)$(baseconfigdir)/fonts.conf.bak; \
+- fi
++ $(mkinstalldirs) $(DESTDIR)$(egdir)
+ if [ -f $(srcdir)/fonts.conf ]; then \
+- echo " $(INSTALL_DATA) $(srcdir)/fonts.conf $(DESTDIR)$(baseconfigdir)/fonts.conf"; \
+- $(INSTALL_DATA) $(srcdir)/fonts.conf $(DESTDIR)$(baseconfigdir)/fonts.conf; \
++ echo " $(INSTALL_DATA) $(srcdir)/fonts.conf $(DESTDIR)$(egdir)/fonts.conf"; \
++ $(INSTALL_DATA) $(srcdir)/fonts.conf $(DESTDIR)$(egdir)/fonts.conf; \
+ else if [ -f fonts.conf ]; then \
+- echo " $(INSTALL_DATA) fonts.conf $(DESTDIR)$(baseconfigdir)/fonts.conf"; \
+- $(INSTALL_DATA) fonts.conf $(DESTDIR)$(baseconfigdir)/fonts.conf; \
++ echo " $(INSTALL_DATA) fonts.conf $(DESTDIR)$(egdir)/fonts.conf"; \
++ $(INSTALL_DATA) fonts.conf $(DESTDIR)$(egdir)/fonts.conf; \
+ fi; fi
+ @(if $(RUN_FC_CACHE_TEST); then \
+ echo "fc-cache$(EXEEXT) -s -f -v"; \
diff --git a/fontconfig-32/patches/patch-ac b/fontconfig-32/patches/patch-ac
new file mode 100644
index 0000000000..2a0ca721b5
--- /dev/null
+++ b/fontconfig-32/patches/patch-ac
@@ -0,0 +1,21 @@
+$NetBSD: patch-ac,v 1.13 2013/10/17 07:27:33 wiz Exp $
+
+--- conf.d/Makefile.in.orig 2013-10-11 04:28:47.000000000 +0000
++++ conf.d/Makefile.in
+@@ -345,7 +345,7 @@ CONF_LINKS = \
+
+ EXTRA_DIST = $(template_DATA) $(DOC_SOURCES)
+ CLEANFILES = $(DOC_FILES)
+-configdir = $(CONFIGDIR)
++configdir = $(prefix)/share/examples/fontconfig/conf.d
+ config_DATA = $(DOC_FILES)
+ templatedir = $(TEMPLATEDIR)
+ template_DATA = \
+@@ -628,6 +628,7 @@ README: $(srcdir)/README.in
+ sed "s|\@TEMPLATEDIR\@|$(templatedir)|" $< > $@
+
+ install-data-hook:
++xinstall-data-hook:
+ mkdir -p $(DESTDIR)$(configdir)
+ @(echo cd $(DESTDIR)$(configdir); \
+ cd $(DESTDIR)$(configdir); \
diff --git a/fontconfig-32/patches/patch-af b/fontconfig-32/patches/patch-af
new file mode 100644
index 0000000000..999346de40
--- /dev/null
+++ b/fontconfig-32/patches/patch-af
@@ -0,0 +1,16 @@
+$NetBSD: patch-af,v 1.2 2013/05/20 19:56:39 adam Exp $
+
+--- conf.d/README.orig 2013-05-13 03:05:36.000000000 +0000
++++ conf.d/README
+@@ -2,9 +2,8 @@ conf.d/README
+
+ Each file in this directory is a fontconfig configuration file. Fontconfig
+ scans this directory, loading all files of the form [0-9][0-9]*.conf.
+-These files are normally installed in /usr/share/fontconfig/conf.avail
+-and then symlinked here, allowing them to be easily installed and then
+-enabled/disabled by adjusting the symlinks.
++These files are normally installed in @PREFIX@/share/fontconfig/conf.avail
++and then copied or symlinked here as needed.
+
+ The files are loaded in numeric order, the structure of the configuration
+ has led to the following conventions in usage:
diff --git a/fontconfig-32/patches/patch-configure b/fontconfig-32/patches/patch-configure
new file mode 100644
index 0000000000..2728ace561
--- /dev/null
+++ b/fontconfig-32/patches/patch-configure
@@ -0,0 +1,71 @@
+$NetBSD: patch-configure,v 1.5 2018/09/02 20:30:43 wiz Exp $
+
+Do not look for libuuid on Darwin, it is built-in.
+
+Patch "GNU" gettext support to not depend unnecessary on "GNU" gettext.
+
+--- configure.orig 2018-08-30 08:24:28.000000000 +0000
++++ configure
+@@ -13304,8 +13304,12 @@ case "$host" in
+ *-*-mingw*)
+ os_win32=yes
+ ;;
++ *-*-darwin*)
++ os_darwin=yes
++ ;;
+ *)
+ os_win32=no
++ os_darwin=no
+ esac
+ if test "$os_win32" = "yes"; then
+ OS_WIN32_TRUE=
+@@ -15236,8 +15240,7 @@ extern
+ #ifdef __cplusplus
+ "C"
+ #endif
+-const char *_nl_expand_alias (const char *);
+-#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
++#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *bindtextdomain ("", ""))
+ #else
+ #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
+ #endif
+@@ -15273,8 +15276,7 @@ extern
+ #ifdef __cplusplus
+ "C"
+ #endif
+-const char *_nl_expand_alias (const char *);
+-#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
++#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *bindtextdomain ("", ""))
+ #else
+ #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
+ #endif
+@@ -15900,6 +15902,10 @@ if ac_fn_c_try_compile "$LINENO"; then :
+ $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
+ fi
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ #if defined(_SCO_DS)
++ /* bogus */
++ #include <prot.h>
++ #endif
+ fi
+ CXXFLAGS="$old_CXXFLAGS"
+ CPPFLAGS="$old_CPPFLAGS"
+@@ -15928,6 +15934,9 @@ if test "_$ac_cv_header_stdint_t" = "_"
+
+ inttype_headers=`echo | sed -e 's/,/ /g'`
+
++ #if defined(_SCO_DS)
++ #include <prot.h>
++ #endif
+ ac_cv_stdint_result="(no helpful system typedefs seen)"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
+@@ -17196,7 +17205,7 @@ CFLAGS="$fontconfig_save_cflags"
+ #
+ # Check for uuid
+ #
+-if test "$os_win32" != "yes"; then
++if test "$os_win32" != "yes" -a "$os_darwin" != "yes"; then
+ use_pkgconfig_for_uuid=yes
+ if test -n "${UUID_LIBS}"; then
+ save_UUID_LIBS=$UUID_LIBS
diff --git a/fontconfig-32/patches/patch-scandir.c b/fontconfig-32/patches/patch-scandir.c
new file mode 100644
index 0000000000..a07b036904
--- /dev/null
+++ b/fontconfig-32/patches/patch-scandir.c
@@ -0,0 +1,142 @@
+$NetBSD: patch-scandir.c,v 1.2 2015/10/27 20:20:31 bsiegert Exp $
+
+--- scandir.c.orig 2014-07-14 12:36:57.000000000 +0000
++++ scandir.c
+@@ -0,0 +1,137 @@
++/* -*- Mode: C -*-
++ * Basename: scandir.c
++ * Revision: 1.3.1.5.1.3
++ * Last Modified By: Ulrich Pfeifer
++ * Last Modified On: Tue May 13 13:15:16 1997
++ * Language : C
++ * Update Count : 2
++ * Status : Unknown, Use with caution!
++ *
++ * (C) Copyright 1997, Universitaet Dortmund, all rights reserved.
++ * (C) Copyright CNIDR (see ../doc/CNIDR/COPYRIGHT)
++ */
++
++/*
++Title: COPYRIGHT freeWAIS-0.2
++Author: Jane Smith
++Copyright: Copyright 1993 CNIDR
++Last update: 10.01.93
++Abstract: This file contains the copyright statement for freeWAIS 0.2
++
++Copyright Statement for freeWAIS 0.2 and subsquent freeWAIS
++releases:
++
++Copyright (c) MCNC, Clearinghouse for Networked Information Discovery
++and Retrieval, 1993.
++
++Permission to use, copy, modify, distribute, and sell this software
++and its documentation, in whole or in part, for any purpose is hereby
++granted without fee, provided that
++
++1. The above copyright notice and this permission notice appear in all
++copies of the software and related documentation. Notices of copyright
++and/or attribution which appear at the beginning of any file included
++in this distribution must remain intact.
++
++2. Users of this software agree to make their best efforts (a) to
++return to MCNC any improvements or extensions that they make, so that
++these may be included in future releases; and (b) to inform MCNC/CNIDR
++of noteworthy uses of this software.
++
++3. The names of MCNC and Clearinghouse for Networked Information
++Discovery and Retrieval may not be used in any advertising or publicity
++relating to the software without the specific, prior written permission
++of MCNC/CNIDR.
++
++THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
++EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
++WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
++
++IN NO EVENT SHALL MCNC/CNIDR BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
++INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
++RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
++THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
++OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
++*/
++
++/*
++ * SCANDIR
++ * Scan a directory, collecting all (selected) items into a an array.
++ */
++
++#include <stdio.h>
++#include <dirent.h>
++#include <stdlib.h>
++#include <string.h>
++
++#ifdef DIRNAMLEN
++#define NLENGTH(dirent) ((dirent)->d_namlen)
++#else /* not DIRNAMLEN */
++#define NLENGTH(dirent) (strlen((dirent)->d_name))
++#endif /* not DIRNAMLEN */
++
++/* Initial guess at directory size. */
++#define INITIAL_SIZE 20
++
++int
++scandir(name, list, selector, sorter)
++ char *name;
++ dirent_t ***list;
++ int (*selector)();
++ int (*sorter)();
++{
++ register dirent_t **names;
++ register dirent_t *entp;
++ register DIR *dirp;
++ register int i;
++ register int size;
++
++ /* Get initial list space and open directory. */
++ size = INITIAL_SIZE;
++ names = (dirent_t **)malloc(size * sizeof names[0]);
++ if (names == NULL)
++ return -1;
++ dirp = opendir(name);
++ if (dirp == NULL)
++ return -1;
++
++ /* Read entries in the directory. */
++ for (i = 0; entp = readdir(dirp); )
++ if (selector == NULL || (*selector)(entp)) {
++ /* User wants them all, or he wants this one. */
++ if (++i >= size) {
++ size <<= 1;
++ names = (dirent_t **)
++ realloc((char *)names, size * sizeof names[0]);
++ if (names == NULL) {
++ closedir(dirp);
++ return -1;
++ }
++ }
++
++ /* Copy the entry. */
++ names[i - 1] = (dirent_t *)malloc(sizeof(dirent_t)
++ + NLENGTH(entp)+1);
++ if (names[i - 1] == NULL) {
++ closedir(dirp);
++ return -1;
++ }
++ names[i - 1]->d_ino = entp->d_ino;
++ names[i - 1]->d_reclen = entp->d_reclen;
++#ifdef DIRNAMLEN
++ names[i - 1]->d_namlen = entp->d_namlen;
++#endif
++ (void)strcpy(names[i - 1]->d_name, entp->d_name);
++ }
++
++ /* Close things off. */
++ names[i] = NULL;
++ *list = names;
++ closedir(dirp);
++
++ /* Sort? */
++ if (i && sorter)
++ qsort((char *)names, i, sizeof names[0], sorter);
++
++ return i;
++}
diff --git a/fontconfig-32/patches/patch-src_fccharset.c b/fontconfig-32/patches/patch-src_fccharset.c
new file mode 100644
index 0000000000..e9c717d668
--- /dev/null
+++ b/fontconfig-32/patches/patch-src_fccharset.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_fccharset.c,v 1.1 2014/07/15 14:48:34 ryoon Exp $
+
+--- src/fccharset.c.orig 2014-01-20 08:14:20.000000000 +0000
++++ src/fccharset.c
+@@ -569,7 +569,7 @@ FcCharSetHasChar (const FcCharSet *fcs,
+ static FcChar32
+ FcCharSetPopCount (FcChar32 c1)
+ {
+-#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
++#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) && !defined(_SCO_DS)
+ return __builtin_popcount (c1);
+ #else
+ /* hackmem 169 */
diff --git a/fontconfig-32/patches/patch-src_fcfreetype.c b/fontconfig-32/patches/patch-src_fcfreetype.c
new file mode 100644
index 0000000000..6f210ed616
--- /dev/null
+++ b/fontconfig-32/patches/patch-src_fcfreetype.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_fcfreetype.c,v 1.2 2018/03/11 17:54:03 wiz Exp $
+
+Workaround for in-tree freetype2 headers from netbsd-6.
+
+--- src/fcfreetype.c.orig 2018-03-02 04:27:09.000000000 +0000
++++ src/fcfreetype.c
+@@ -1338,6 +1338,9 @@ FcFreeTypeQueryFaceInternal (const FT_Fa
+ if (!FcPatternAddBool (pat, FC_VARIABLE, variable))
+ goto bail1;
+
++#if !defined(FT_SFNT_OS2) && !defined(ft_sfnt_os2)
++# define FT_SFNT_OS2 ft_sfnt_os2
++#endif
+ /*
+ * Get the OS/2 table
+ */
diff --git a/fontconfig-32/patches/patch-src_fcftint.h b/fontconfig-32/patches/patch-src_fcftint.h
new file mode 100644
index 0000000000..e71f6d61ad
--- /dev/null
+++ b/fontconfig-32/patches/patch-src_fcftint.h
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_fcftint.h,v 1.1 2014/07/15 14:48:34 ryoon Exp $
+
+--- src/fcftint.h.orig 2014-01-20 08:14:20.000000000 +0000
++++ src/fcftint.h
+@@ -25,7 +25,13 @@
+
+ #include <fontconfig/fcfreetype.h>
+
+-#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__) && !defined(__sun)
++/* Bug of GCC 4.2 (visibility and -fPIC)
++ http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46861 */
++#if (__GNUC__ == 4 && __GNUC_MINOR__ == 2) && defined(__ELF__) && !defined(__sun)
++#define FcPrivate
++#define HAVE_GNUC_ATTRIBUTE 1
++#include "fcftalias.h"
++#elif (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__) && !defined(__sun) && !(__GNUC__ == 4 && __GNUC_MINOR__ == 2)
+ #define FcPrivate __attribute__((__visibility__("hidden")))
+ #define HAVE_GNUC_ATTRIBUTE 1
+ #include "fcftalias.h"
diff --git a/fontconfig-32/patches/patch-src_fcint.h b/fontconfig-32/patches/patch-src_fcint.h
new file mode 100644
index 0000000000..e1437f0d22
--- /dev/null
+++ b/fontconfig-32/patches/patch-src_fcint.h
@@ -0,0 +1,37 @@
+$NetBSD: patch-src_fcint.h,v 1.3 2018/03/11 17:54:03 wiz Exp $
+
+--- src/fcint.h.orig 2018-02-04 10:20:56.000000000 +0000
++++ src/fcint.h
+@@ -76,6 +76,17 @@ extern pfnSHGetFolderPathA pSHGetFolderP
+ #define FC_PATH_MAX 128
+ #endif
+
++/*
++ * SCO OpenServer 5.0.7/3.2 has no MAXPATHLEN, but it has PATH_MAX (256).
++ * in limits.h. PATH_MAX is defined alternatively under non-OpenServer OS,
++ * and it is used in dirname.c of bmake.
++ */
++#if !defined(PATH_MAX)
++#if defined(_SCO_DS)
++#define PATH_MAX 1024
++#endif
++#endif
++
+ #if __GNUC__ >= 4
+ #define FC_UNUSED __attribute__((unused))
+ #else
+@@ -103,7 +114,13 @@ extern pfnSHGetFolderPathA pSHGetFolderP
+ #define FC_MAX(a,b) ((a) > (b) ? (a) : (b))
+
+ /* slim_internal.h */
+-#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__) && !defined(__sun)
++/* Bug of GCC 4.2 (visibility and -fPIC)
++ http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46861 */
++#if (__GNUC__ == 4 && __GNUC_MINOR__ == 2) && defined(__ELF__) && !defined(__sun)
++#define FcPrivate
++#define HAVE_GNUC_ATTRIBUTE 1
++#include "fcalias.h"
++#elif (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__) && !defined(__sun) && !(__GNUC__ == 4 && __GNUC_MINOR__ == 2)
+ #define FcPrivate __attribute__((__visibility__("hidden")))
+ #define HAVE_GNUC_ATTRIBUTE 1
+ #include "fcalias.h"
diff --git a/fontconfig-32/patches/patch-src_fcstat.c b/fontconfig-32/patches/patch-src_fcstat.c
new file mode 100644
index 0000000000..00e5edec05
--- /dev/null
+++ b/fontconfig-32/patches/patch-src_fcstat.c
@@ -0,0 +1,46 @@
+$NetBSD: patch-src_fcstat.c,v 1.5 2016/06/19 20:48:55 wiz Exp $
+
+The argument types to scandir(3) differ between different OSes.
+OpenBSD seems to be still different. I used the provided alphasort
+instead of rewriting the equivalent sorter function.
+statvfs and fstatvfs need another include file, at least on MirBSD.
+
+--- src/fcstat.c.orig 2016-04-06 03:22:55.000000000 +0000
++++ src/fcstat.c
+@@ -52,6 +52,12 @@ typedef long long INT64;
+ #define EPOCH_OFFSET 11644473600i64
+ typedef __int64 INT64;
+ #endif
++#ifdef __MirBSD__
++#include <sys/statvfs.h>
++#endif
++#if defined(_SCO_DS)
++#include "../scandir.c"
++#endif
+
+ /* Workaround for problems in the stat() in the Microsoft C library:
+ *
+@@ -159,7 +165,11 @@ Adler32Finish (struct Adler32 *ctx)
+ #ifdef HAVE_STRUCT_DIRENT_D_TYPE
+ /* dirent.d_type can be relied upon on FAT filesystem */
+ static FcBool
++# ifdef __MirBSD__
++FcDirChecksumScandirFilter(struct dirent *entry)
++# else
+ FcDirChecksumScandirFilter(const struct dirent *entry)
++# endif
+ {
+ return entry->d_type != DT_DIR;
+ }
+@@ -263,7 +273,11 @@ FcDirChecksum (const FcChar8 *dir, time_
+ #else
+ NULL,
+ #endif
++#ifdef __MirBSD__
++ &alphasort);
++#else
+ &FcDirChecksumScandirSorter);
++#endif
+ if (n == -1)
+ return -1;
+
diff --git a/fontconfig-32/patches/patch-test_test-migration.c b/fontconfig-32/patches/patch-test_test-migration.c
new file mode 100644
index 0000000000..395248a00e
--- /dev/null
+++ b/fontconfig-32/patches/patch-test_test-migration.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-test_test-migration.c,v 1.4 2014/07/15 14:48:34 ryoon Exp $
+
+--- test/test-migration.c.orig 2014-01-20 08:14:21.000000000 +0000
++++ test/test-migration.c
+@@ -153,8 +153,10 @@ main(void)
+
+ strcpy (xdg, tmp);
+ strcpy (&xdg[len], "/.config");
++#if !defined(_SCO_DS) /* SCO OpenServer 5.0.7/3.2 has no setenv. */
+ setenv ("HOME", tmp, 1);
+ setenv ("XDG_CONFIG_HOME", xdg, 1);
++#endif
+ xlen = strlen (xdg);
+ strcpy (confd, xdg);
+ strcpy (&confd[xlen], "/fontconfig");
diff --git a/fontconfig-32/tools-message b/fontconfig-32/tools-message
new file mode 100644
index 0000000000..e69de29bb2
Home |
Main Index |
Thread Index |
Old Index