summaryrefslogtreecommitdiff
path: root/textproc/mxml
diff options
context:
space:
mode:
authornros <nros>2016-03-08 13:52:36 +0000
committernros <nros>2016-03-08 13:52:36 +0000
commit05ab1d8e8fba98d724bfc851bebea833e41c6558 (patch)
tree79e0f9053db48540f12926940e7750cde5cd893f /textproc/mxml
parenta8670c8ebab9eb803c8d25135900e9ac05503950 (diff)
downloadpkgsrc-05ab1d8e8fba98d724bfc851bebea833e41c6558.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