1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00

Add a knob, enable Freetype bytecode support

Reported by: Mikhail Fedotov <mikhail@kittown.com>
This commit is contained in:
Maho Nakata 2005-01-16 08:47:09 +00:00
parent de12a398ae
commit 57bd96dd23
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=126554
6 changed files with 202 additions and 2 deletions

View File

@ -158,6 +158,9 @@ pre-everything::
.endif
post-extract:
.if defined(WITH_TTF_BYTECODE_ENABLED)
@cd ${WRKSRC} ; ${PATCH} < ${FILESDIR}/optpatch-freetype
.endif
@cd ${WRKDIR} ; ${CAT} ${DISTDIR}/${DIST_SUBDIR}/gpc231.tar.Z | ${TAR} xfz -
@${CP} ${WRKDIR}/gpc231/gpc.c ${WRKSRC}/external/gpc/
@${CP} ${WRKDIR}/gpc231/gpc.h ${WRKSRC}/external/gpc/
@ -223,6 +226,7 @@ post-install:
${WRKDIR}/openoffice-wrapper
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice-wrapper \
${PREFIX}/bin/${EXECBASE}
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/openoffice.org
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-sagenda
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-scalc
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-sdraw

View File

@ -50,6 +50,15 @@ pre-fetch:
@${ECHO} "You can compile OOo without Mozilla connectivity by"
@${ECHO} "make -DWITHOUT_MOZILLA"
.endif
.if !defined(WITH_TTF_BYTECODE_ENABLED)
@${ECHO}
@${ECHO} "You may get better quality of glyphs"
@${ECHO} "at small bitmap sizes, If you have"
@${ECHO} "licensed the Apple patents"
@${ECHO} "US05155805 US05159668 and US05325479, by"
@${ECHO} "make -DWITH_TTF_BYTECODE_ENABLED"
@${ECHO} "See http://www.freetype.org/patents.html for details"
.endif
.if !defined(WITHOUT_JAVA)
@${ECHO}
@${ECHO} "You can compile OOo without Java support by"
@ -58,7 +67,7 @@ pre-fetch:
@${ECHO}
@${ECHO} "NOTICE:"
@${ECHO}
@${ECHO} "To build Openoffice, you should have a lot"
@${ECHO} "To build OpenOffice.org, you should have a lot"
.if defined(WITH_DEBUG)
@${ECHO} "of free diskspace (~ 8GB)."
.else

View File

@ -0,0 +1,87 @@
Index: freetype/freetype-2.1.4.patch
===================================================================
RCS file: /cvs/external/freetype/freetype-2.1.4.patch,v
retrieving revision 1.2
diff -u -r1.2 freetype-2.1.4.patch
--- freetype/freetype-2.1.4.patch 17 Apr 2003 15:11:01 -0000 1.2
+++ freetype/freetype-2.1.4.patch 16 Jan 2005 08:29:56 -0000
@@ -1,5 +1,5 @@
-*** misc/freetype-2.1.4/builds/compiler/visualc.mk Thu Dec 14 00:44:33 2000
---- misc/build/freetype-2.1.4/builds/compiler/visualc.mk Wed Apr 9 16:45:16 2003
+*** misc/freetype-2.1.4/builds/compiler/visualc.mk Thu Dec 14 08:44:33 2000
+--- misc/build/freetype-2.1.4/builds/compiler/visualc.mk Sun Jan 16 17:01:31 2005
***************
*** 63,69 ****
# ANSI compliance.
@@ -17,8 +17,8 @@
endif
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
-*** misc/freetype-2.1.4/builds/unix/ltmain.sh Sat Jan 18 17:39:18 2003
---- misc/build/freetype-2.1.4/builds/unix/ltmain.sh Wed Apr 9 16:45:16 2003
+*** misc/freetype-2.1.4/builds/unix/ltmain.sh Sun Jan 19 01:39:18 2003
+--- misc/build/freetype-2.1.4/builds/unix/ltmain.sh Sun Jan 16 17:01:31 2005
***************
*** 2296,2302 ****
;;
@@ -36,8 +36,8 @@
case $version_type in
nonstopux) verstring_prefix=nonstopux ;;
-*** misc/freetype-2.1.4/builds/win32/visualc/freetype.dsp Fri Jan 31 00:24:18 2003
---- misc/build/freetype-2.1.4/builds/win32/visualc/freetype.dsp Wed Apr 9 16:45:16 2003
+*** misc/freetype-2.1.4/builds/win32/visualc/freetype.dsp Fri Jan 31 08:24:18 2003
+--- misc/build/freetype-2.1.4/builds/win32/visualc/freetype.dsp Sun Jan 16 17:01:32 2005
***************
*** 44,51 ****
# PROP Output_Dir "..\..\..\objs\release"
@@ -57,8 +57,8 @@
# SUBTRACT CPP /nologo /YX
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
-*** misc/freetype-2.1.4/include/freetype/config/ftmodule.h Thu Oct 31 09:29:31 2002
---- misc/build/freetype-2.1.4/include/freetype/config/ftmodule.h Wed Apr 9 16:45:16 2003
+*** misc/freetype-2.1.4/include/freetype/config/ftmodule.h Thu Oct 31 17:29:31 2002
+--- misc/build/freetype-2.1.4/include/freetype/config/ftmodule.h Sun Jan 16 17:01:32 2005
***************
*** 1,8 ****
FT_USE_MODULE(autohint_module_class)
@@ -92,8 +92,8 @@
FT_USE_MODULE(winfnt_driver_class)
+ #endif
-*** misc/freetype-2.1.4/include/freetype/config/ftoption.h Fri Jan 31 00:24:18 2003
---- misc/build/freetype-2.1.4/include/freetype/config/ftoption.h Wed Apr 9 16:45:16 2003
+*** misc/freetype-2.1.4/include/freetype/config/ftoption.h Fri Jan 31 08:24:18 2003
+--- misc/build/freetype-2.1.4/include/freetype/config/ftoption.h Sun Jan 16 17:04:45 2005
***************
*** 108,114 ****
/* this will however force you to link the zlib to any program that */
@@ -111,8 +111,25 @@
/*************************************************************************/
-*** misc/freetype-2.1.4/src/base/ftobjs.c Thu Mar 27 22:35:43 2003
---- misc/build/freetype-2.1.4/src/base/ftobjs.c Sun Apr 13 17:57:51 2003
+***************
+*** 378,384 ****
+ /* do not #undef this macro here, since the build system might */
+ /* define for certain configurations */
+ /* */
+! /* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
+
+
+ /*************************************************************************/
+--- 378,384 ----
+ /* do not #undef this macro here, since the build system might */
+ /* define for certain configurations */
+ /* */
+! #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
+
+
+ /*************************************************************************/
+*** misc/freetype-2.1.4/src/base/ftobjs.c Fri Mar 28 06:35:43 2003
+--- misc/build/freetype-2.1.4/src/base/ftobjs.c Sun Jan 16 17:01:32 2005
***************
*** 804,810 ****
{

View File

@ -158,6 +158,9 @@ pre-everything::
.endif
post-extract:
.if defined(WITH_TTF_BYTECODE_ENABLED)
@cd ${WRKSRC} ; ${PATCH} < ${FILESDIR}/optpatch-freetype
.endif
@cd ${WRKDIR} ; ${CAT} ${DISTDIR}/${DIST_SUBDIR}/gpc231.tar.Z | ${TAR} xfz -
@${CP} ${WRKDIR}/gpc231/gpc.c ${WRKSRC}/external/gpc/
@${CP} ${WRKDIR}/gpc231/gpc.h ${WRKSRC}/external/gpc/
@ -223,6 +226,7 @@ post-install:
${WRKDIR}/openoffice-wrapper
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice-wrapper \
${PREFIX}/bin/${EXECBASE}
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/openoffice.org
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-sagenda
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-scalc
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-sdraw

View File

@ -50,6 +50,15 @@ pre-fetch:
@${ECHO} "You can compile OOo without Mozilla connectivity by"
@${ECHO} "make -DWITHOUT_MOZILLA"
.endif
.if !defined(WITH_TTF_BYTECODE_ENABLED)
@${ECHO}
@${ECHO} "You may get better quality of glyphs"
@${ECHO} "at small bitmap sizes, If you have"
@${ECHO} "licensed the Apple patents"
@${ECHO} "US05155805 US05159668 and US05325479, by"
@${ECHO} "make -DWITH_TTF_BYTECODE_ENABLED"
@${ECHO} "See http://www.freetype.org/patents.html for details"
.endif
.if !defined(WITHOUT_JAVA)
@${ECHO}
@${ECHO} "You can compile OOo without Java support by"
@ -58,7 +67,7 @@ pre-fetch:
@${ECHO}
@${ECHO} "NOTICE:"
@${ECHO}
@${ECHO} "To build Openoffice, you should have a lot"
@${ECHO} "To build OpenOffice.org, you should have a lot"
.if defined(WITH_DEBUG)
@${ECHO} "of free diskspace (~ 8GB)."
.else

View File

@ -0,0 +1,87 @@
Index: freetype/freetype-2.1.4.patch
===================================================================
RCS file: /cvs/external/freetype/freetype-2.1.4.patch,v
retrieving revision 1.2
diff -u -r1.2 freetype-2.1.4.patch
--- freetype/freetype-2.1.4.patch 17 Apr 2003 15:11:01 -0000 1.2
+++ freetype/freetype-2.1.4.patch 16 Jan 2005 08:29:56 -0000
@@ -1,5 +1,5 @@
-*** misc/freetype-2.1.4/builds/compiler/visualc.mk Thu Dec 14 00:44:33 2000
---- misc/build/freetype-2.1.4/builds/compiler/visualc.mk Wed Apr 9 16:45:16 2003
+*** misc/freetype-2.1.4/builds/compiler/visualc.mk Thu Dec 14 08:44:33 2000
+--- misc/build/freetype-2.1.4/builds/compiler/visualc.mk Sun Jan 16 17:01:31 2005
***************
*** 63,69 ****
# ANSI compliance.
@@ -17,8 +17,8 @@
endif
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
-*** misc/freetype-2.1.4/builds/unix/ltmain.sh Sat Jan 18 17:39:18 2003
---- misc/build/freetype-2.1.4/builds/unix/ltmain.sh Wed Apr 9 16:45:16 2003
+*** misc/freetype-2.1.4/builds/unix/ltmain.sh Sun Jan 19 01:39:18 2003
+--- misc/build/freetype-2.1.4/builds/unix/ltmain.sh Sun Jan 16 17:01:31 2005
***************
*** 2296,2302 ****
;;
@@ -36,8 +36,8 @@
case $version_type in
nonstopux) verstring_prefix=nonstopux ;;
-*** misc/freetype-2.1.4/builds/win32/visualc/freetype.dsp Fri Jan 31 00:24:18 2003
---- misc/build/freetype-2.1.4/builds/win32/visualc/freetype.dsp Wed Apr 9 16:45:16 2003
+*** misc/freetype-2.1.4/builds/win32/visualc/freetype.dsp Fri Jan 31 08:24:18 2003
+--- misc/build/freetype-2.1.4/builds/win32/visualc/freetype.dsp Sun Jan 16 17:01:32 2005
***************
*** 44,51 ****
# PROP Output_Dir "..\..\..\objs\release"
@@ -57,8 +57,8 @@
# SUBTRACT CPP /nologo /YX
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
-*** misc/freetype-2.1.4/include/freetype/config/ftmodule.h Thu Oct 31 09:29:31 2002
---- misc/build/freetype-2.1.4/include/freetype/config/ftmodule.h Wed Apr 9 16:45:16 2003
+*** misc/freetype-2.1.4/include/freetype/config/ftmodule.h Thu Oct 31 17:29:31 2002
+--- misc/build/freetype-2.1.4/include/freetype/config/ftmodule.h Sun Jan 16 17:01:32 2005
***************
*** 1,8 ****
FT_USE_MODULE(autohint_module_class)
@@ -92,8 +92,8 @@
FT_USE_MODULE(winfnt_driver_class)
+ #endif
-*** misc/freetype-2.1.4/include/freetype/config/ftoption.h Fri Jan 31 00:24:18 2003
---- misc/build/freetype-2.1.4/include/freetype/config/ftoption.h Wed Apr 9 16:45:16 2003
+*** misc/freetype-2.1.4/include/freetype/config/ftoption.h Fri Jan 31 08:24:18 2003
+--- misc/build/freetype-2.1.4/include/freetype/config/ftoption.h Sun Jan 16 17:04:45 2005
***************
*** 108,114 ****
/* this will however force you to link the zlib to any program that */
@@ -111,8 +111,25 @@
/*************************************************************************/
-*** misc/freetype-2.1.4/src/base/ftobjs.c Thu Mar 27 22:35:43 2003
---- misc/build/freetype-2.1.4/src/base/ftobjs.c Sun Apr 13 17:57:51 2003
+***************
+*** 378,384 ****
+ /* do not #undef this macro here, since the build system might */
+ /* define for certain configurations */
+ /* */
+! /* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
+
+
+ /*************************************************************************/
+--- 378,384 ----
+ /* do not #undef this macro here, since the build system might */
+ /* define for certain configurations */
+ /* */
+! #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
+
+
+ /*************************************************************************/
+*** misc/freetype-2.1.4/src/base/ftobjs.c Fri Mar 28 06:35:43 2003
+--- misc/build/freetype-2.1.4/src/base/ftobjs.c Sun Jan 16 17:01:32 2005
***************
*** 804,810 ****
{