summaryrefslogtreecommitdiff
path: root/graphics/freetype2/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/freetype2/options.mk')
-rw-r--r--graphics/freetype2/options.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/freetype2/options.mk b/graphics/freetype2/options.mk
new file mode 100644
index 00000000000..902e0d94403
--- /dev/null
+++ b/graphics/freetype2/options.mk
@@ -0,0 +1,18 @@
+# $NetBSD: options.mk,v 1.2.2.2 2014/03/17 09:30:55 tron Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.freetype2
+PKG_SUPPORTED_OPTIONS= png subpixel
+
+.include "../../mk/bsd.options.mk"
+
+# subpixel (lcd) rendering, patent issues
+.if !empty(PKG_OPTIONS:Msubpixel)
+CFLAGS+= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING
+.endif
+
+.if !empty(PKG_OPTIONS:Mpng)
+CONFIGURE_ARGS+= --with-png=yes
+.include "../../graphics/png/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --with-png=no
+.endif