ports/57433: Patch port: print/freetype2, add WITH_BYTECODE_INTERPRETER define..
Jeremy Messenger
mezz7 at cox.net
Tue Sep 30 23:00:29 UTC 2003
>Number: 57433
>Category: ports
>Synopsis: Patch port: print/freetype2, add WITH_BYTECODE_INTERPRETER define..
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 30 16:00:26 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Mezz
>Release: FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD ns1.mezzweb.com 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Wed Aug 13 22:39:47 CDT 2003 mezz at mezz.mezzweb.com:/usr/obj/usr/src/sys/BSDROCKS i386
>Description:
Add a new option, a WITH_BYTECODE_INTERPRETER define, for people who want to
have the bytecode interpreter enable.
>How-To-Repeat:
>Fix:
I have tested and it seems work fine.
--- freetype2.diff begins here ---
diff -ur freetype2.orig/Makefile freetype2/Makefile
--- freetype2.orig/Makefile Tue Sep 30 13:45:14 2003
+++ freetype2/Makefile Tue Sep 30 17:40:59 2003
@@ -31,9 +31,21 @@
CONFIGURE_ARGS= --disable-nls
CONFIGURE_WRKSRC= ${WRKSRC}/builds/unix
+pre-everything::
+.if !defined(WITH_BYTECODE_INTERPRETER)
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "FreeType has the following tunable option(s):"
+ @${ECHO_MSG} " WITH_BYTECODE_INTERPRETER=yes Enable bytecode interpreter in the TrueType driver"
+ @${ECHO_MSG} ""
+.endif
+
pre-patch:
@${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \
${WRKSRC}/builds/unix/install.mk
+.if defined(WITH_BYTECODE_INTERPRETER)
+ @${REINPLACE_CMD} -e '403s|^|#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER|g' \
+ ${WRKSRC}/include/freetype/config/ftoption.h
+.endif
post-configure:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} setup)
--- freetype2.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list