aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2012-12-29 12:40:18 +0800
committermezz <mezz@FreeBSD.org>2012-12-29 12:40:18 +0800
commit51ec72f22604976a69a13c62c4ee5a49e9c81d61 (patch)
tree2db0ab1d6e77b2e21b05c2b9212725cb476a748f /print
parent9f61d21c25b7a032667e403e14b540f4a0d8caf4 (diff)
downloadfreebsd-ports-gnome-51ec72f22604976a69a13c62c4ee5a49e9c81d61.tar.gz
freebsd-ports-gnome-51ec72f22604976a69a13c62c4ee5a49e9c81d61.tar.zst
freebsd-ports-gnome-51ec72f22604976a69a13c62c4ee5a49e9c81d61.zip
Backout on the WITH_LCD_FILTERING part. It's not enable by default, which it
was some different render that got enabled. The subpixel rendering is still patented. Therefore, add back the WITH_LCD_FILTERING optional for anyone that who want to enable it. Reported by: Jan Beich <jbeich@tormail.org>
Diffstat (limited to 'print')
-rw-r--r--print/freetype2/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/print/freetype2/Makefile b/print/freetype2/Makefile
index a770b2b8ae59..f23f41e39f93 100644
--- a/print/freetype2/Makefile
+++ b/print/freetype2/Makefile
@@ -27,6 +27,10 @@ USE_GNOME= pkgconfig ltverhack:9
LIBTOOLFILES= builds/unix/configure
CONFIGURE_WRKSRC= ${WRKSRC}/builds/unix
+.if defined(WITH_LCD_FILTERING)
+CFLAGS+= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING
+.endif
+
.if defined(WITH_CJK)
#PATCH_SITES+= http://lwj-hinet.myweb.hinet.net/ \
# ftp://local-distfiles.freebsd.org.cn/pub/china-ports/hamigua/ \
@@ -35,6 +39,18 @@ CONFIGURE_WRKSRC= ${WRKSRC}/builds/unix
#PATCH_DIST_STRIP+= -p1
.endif
+pre-everything::
+.if !defined(WITH_LCD_FILTERING)
+ @${ECHO_MSG}
+ @${ECHO_MSG} "You may want to enable LCD filtering."
+ @${ECHO_MSG}
+ @${ECHO_MSG} "Hit Ctrl-C now and use \"make WITH_LCD_FILTERING=yes\""
+ @${ECHO_MSG}
+ @${ECHO_MSG} "Note that there are possible patent issues related to the"
+ @${ECHO_MSG} "use of the LCD filtering technology."
+ @${ECHO_MSG}
+.endif
+
pre-patch:
@${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \
${WRKSRC}/builds/unix/install.mk