aboutsummaryrefslogtreecommitdiff
path: root/print/freetype2
diff options
context:
space:
mode:
authorJeremy Messenger <mezz@FreeBSD.org>2012-12-29 04:40:18 +0000
committerJeremy Messenger <mezz@FreeBSD.org>2012-12-29 04:40:18 +0000
commitbf69342e8160de93e74fdd9ebf3107a2339757b4 (patch)
tree2db0ab1d6e77b2e21b05c2b9212725cb476a748f /print/freetype2
parenta2a49934f84a5c47e59cc263fdc29f6064c648ef (diff)
downloadports-bf69342e8160de93e74fdd9ebf3107a2339757b4.tar.gz
ports-bf69342e8160de93e74fdd9ebf3107a2339757b4.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>
Notes
Notes: svn path=/head/; revision=309603
Diffstat (limited to 'print/freetype2')
-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