diff options
-rw-r--r-- | print/ghostscript-agpl/hacks.mk | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/print/ghostscript-agpl/hacks.mk b/print/ghostscript-agpl/hacks.mk index c1e5d512a40..0d6aba1cc48 100644 --- a/print/ghostscript-agpl/hacks.mk +++ b/print/ghostscript-agpl/hacks.mk @@ -1,4 +1,4 @@ -# $NetBSD: hacks.mk,v 1.1 2013/03/16 22:25:21 dholland Exp $ +# $NetBSD: hacks.mk,v 1.2 2017/12/13 13:02:06 gdt Exp $ ### [Tue Jan 9 15:57:05 EST 2007 : tv] ### Interix has u_int64_t, but not uint64_t @@ -20,3 +20,23 @@ post-patch: ${WRKSRC}/base/unix-darwin.mak ${MV} ${WRKSRC}/base/unix-darwin.mak ${WRKSRC}/base/unix-dll.mak .endif + +## Copied from ../../fonts/fontforge/hacks.mk. See +## https://gnats.netbsd.org/50902 + +# 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. + +.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 |