pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/print/ghostscript-agpl
Module Name: pkgsrc
Committed By: gdt
Date: Wed Dec 13 13:02:06 UTC 2017
Modified Files:
pkgsrc/print/ghostscript-agpl: hacks.mk
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/print/ghostscript-agpl/hacks.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/print/ghostscript-agpl/hacks.mk
diff -u pkgsrc/print/ghostscript-agpl/hacks.mk:1.1 pkgsrc/print/ghostscript-agpl/hacks.mk:1.2
--- pkgsrc/print/ghostscript-agpl/hacks.mk:1.1 Sat Mar 16 22:25:21 2013
+++ pkgsrc/print/ghostscript-agpl/hacks.mk Wed Dec 13 13:02:06 2017
@@ -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
Home |
Main Index |
Thread Index |
Old Index