summaryrefslogtreecommitdiff
path: root/fonts/fontforge
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2016-03-07 04:43:55 +0000
committerdholland <dholland@pkgsrc.org>2016-03-07 04:43:55 +0000
commit0b6fddeb105602f1b43901f6804ddc2189f5de2b (patch)
tree1da460c1daaeb30cf2579f393310a85fc2136eca /fonts/fontforge
parent36497d2669ecc5ed5127e6a24156be130cf8226d (diff)
downloadpkgsrc-0b6fddeb105602f1b43901f6804ddc2189f5de2b.tar.gz
Add hack for build failure with native X11 on NetBSD 7.x and -current,
the symptom being that ftttdrv.h (from freetype2) is not found. It turns out that native X11 doesn't install ftttdrv.h for some reason (probably an oversight) but that the lack is easily compensated because the whole file contains only two substantive lines, neither of which appears to be especially important. PR 50902.
Diffstat (limited to 'fonts/fontforge')
-rw-r--r--fonts/fontforge/hacks.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/fonts/fontforge/hacks.mk b/fonts/fontforge/hacks.mk
new file mode 100644
index 00000000000..caab93039f5
--- /dev/null
+++ b/fonts/fontforge/hacks.mk
@@ -0,0 +1,22 @@
+# $NetBSD: hacks.mk,v 1.1 2016/03/07 04:43:55 dholland Exp $
+#
+
+# On NetBSD 7.x for a while a version of freetype2 that was supposed
+# to have ftttdrv.h was shipped without actually installing that
+# header. This causes fontforge-20150824 and up to fail to build.
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${X11_TYPE} == "native" && !empty(MACHINE_PLATFORM:MNetBSD-7.*) && \
+ !exists(/usr/X11R7/include/freetype2/ftttdrv.h)
+BUILDLINK_TARGETS+= buildlink-freetype2-ftttdrv.h
+buildlink-freetype2-ftttdrv.h:
+ ${RUN} \
+ dest=${BUILDLINK_DIR}"/include/freetype2/ftttdrv.h"; \
+ ${ECHO_BUILDLINK_MSG} "Hacking around missing ftttdrv.h"; \
+ ${ECHO} '#define TT_INTERPRETER_VERSION_35 35' >> "$$dest"; \
+ ${ECHO} '#define TT_INTERPRETER_VERSION_38 38' >> "$$dest"
+
+.endif
+
+