[PATCH] print/freetype2: Fix TTF_BYTECODE_ENABLED
chinsan
chinsan.tw at gmail.com
Thu Sep 14 08:33:33 PDT 2006
>Submitter-Id: current-users
>Originator: chinsan
>Organization: Taiwan
>Confidential: no
>Synopsis: [PATCH] print/freetype2: Fix TTF_BYTECODE_ENABLED
>Severity: non-critical
>Priority: low
>Category: ports
>Class: change-request
>Release: FreeBSD 6.2-PRERELEASE i386
>Environment:
System: FreeBSD BSD6.giga.hgc.com.tw 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #6: Thu Sep 14 09:46:10 CST 2006
>Description:
- Fix TTF_BYTECODE_ENABLED
Port maintainer (gnome at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- freetype2-2.1.10_6.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/print/freetype2/Makefile /usr/home/chinsan/project/freetype2/Makefile
--- /usr/ports/print/freetype2/Makefile Thu Aug 24 05:19:41 2006
+++ /usr/home/chinsan/project/freetype2/Makefile Thu Sep 14 23:31:08 2006
@@ -7,7 +7,7 @@
PORTNAME= freetype2
PORTVERSION= 2.1.10
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S,%SUBDIR%,freetype,} \
http://sunsite.cnlab-switch.ch/ftp/mirror/freetype/%SUBDIR%/ \
@@ -24,7 +24,7 @@
USE_BZIP2= yes
USE_GMAKE= yes
MAKE_ENV= TOP=""
-INSTALLS_SHLIB= yes
+USE_LDCONFIG= yes
GNU_CONFIGURE= yes
USE_GNOME= gnometarget pkgconfig
LIBTOOLFILES= builds/unix/configure
@@ -60,6 +60,10 @@
pre-patch:
@${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \
${WRKSRC}/builds/unix/install.mk
+.if !defined(WITHOUT_TTF_BYTECODE_ENABLED)
+ @${REINPLACE_CMD} -e '439 s,/\* \(.*\) \*/,\1,; 451 s,^\(.*\),/* \1 \*/,' \
+ ${WRKSRC}/include/freetype/config/ftoption.h
+.endif
post-configure:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} setup)
--- freetype2-2.1.10_6.patch ends here ---
More information about the freebsd-gnome
mailing list