summaryrefslogtreecommitdiff
path: root/textproc/mxml
diff options
context:
space:
mode:
authornros <nros@pkgsrc.org>2016-03-08 13:52:36 +0000
committernros <nros@pkgsrc.org>2016-03-08 13:52:36 +0000
commit65ff1f4f94f58272c2412bfe7fa95ad261048f7f (patch)
tree79e0f9053db48540f12926940e7750cde5cd893f /textproc/mxml
parent3a9f7e8da054358e62d453c6f9d7f3b615cdf4a9 (diff)
downloadpkgsrc-65ff1f4f94f58272c2412bfe7fa95ad261048f7f.tar.gz
Forgot to add files that where part of the mxml update to version 2.9.
Diffstat (limited to 'textproc/mxml')
-rw-r--r--textproc/mxml/options.mk9
-rw-r--r--textproc/mxml/patches/patch-configure13
2 files changed, 22 insertions, 0 deletions
diff --git a/textproc/mxml/options.mk b/textproc/mxml/options.mk
new file mode 100644
index 00000000000..bfe65222ba0
--- /dev/null
+++ b/textproc/mxml/options.mk
@@ -0,0 +1,9 @@
+# $NetBSD: options.mk,v 1.1 2016/03/08 13:52:36 nros Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.mxml
+PKG_SUPPORTED_OPTIONS= debug
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug=yes
+.endif
diff --git a/textproc/mxml/patches/patch-configure b/textproc/mxml/patches/patch-configure
new file mode 100644
index 00000000000..c600b71d32e
--- /dev/null
+++ b/textproc/mxml/patches/patch-configure
@@ -0,0 +1,13 @@
+$NetBSD: patch-configure,v 1.1 2016/03/08 13:52:36 nros Exp $
+* do not add -g if debug symbols are not wanted.
+--- configure.orig 2016-03-08 13:07:55.000000000 +0000
++++ configure
+@@ -4369,7 +4369,7 @@ if test -n "$GCC"; then
+ CFLAGS="-Wall $CFLAGS"
+
+ if test "x$OPTIM" = x; then
+- OPTIM="-Os -g"
++ OPTIM="-Os"
+ fi
+
+ if test "x$use_ansi" = xyes; then