pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/ghostscript-agpl ghostscript-agpl: Adopt freetyp...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3bc878150ee0
branches:  trunk
changeset: 372659:3bc878150ee0
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Wed Dec 13 13:02:06 2017 +0000

description:
ghostscript-agpl: Adopt freetype2 hack from fontfonge

This package also needs the missing freetype2 header file on NetBSD 7,
and the same faked-up version seems to work fine.

diffstat:

 print/ghostscript-agpl/hacks.mk |  22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r c98bb315b2e3 -r 3bc878150ee0 print/ghostscript-agpl/hacks.mk
--- a/print/ghostscript-agpl/hacks.mk   Wed Dec 13 12:56:19 2017 +0000
+++ b/print/ghostscript-agpl/hacks.mk   Wed Dec 13 13:02:06 2017 +0000
@@ -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 @@
                ${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



Home | Main Index | Thread Index | Old Index