summaryrefslogtreecommitdiff
path: root/sysutils/libgamin
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2010-04-18 18:22:43 +0000
committerjmmv <jmmv@pkgsrc.org>2010-04-18 18:22:43 +0000
commit3022b54b0d318c07fad092143c13769b24077713 (patch)
treed0e4ec94a19d7e63a578fad936358acc61a1fff6 /sysutils/libgamin
parentb0e28aa4b6f37c3284a9c14e05ef3d6abfa21401 (diff)
downloadpkgsrc-3022b54b0d318c07fad092143c13769b24077713.tar.gz
Add support for the debug option to the libgamin and gamin packages.
This is off by default so no need to bump the revision numbers.
Diffstat (limited to 'sysutils/libgamin')
-rw-r--r--sysutils/libgamin/Makefile3
-rw-r--r--sysutils/libgamin/options.mk11
2 files changed, 13 insertions, 1 deletions
diff --git a/sysutils/libgamin/Makefile b/sysutils/libgamin/Makefile
index 008c2de2866..365767908f0 100644
--- a/sysutils/libgamin/Makefile
+++ b/sysutils/libgamin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2009/03/17 13:34:06 jmcneill Exp $
+# $NetBSD: Makefile,v 1.4 2010/04/18 18:22:43 jmmv Exp $
.include "../../sysutils/gamin/Makefile.common"
PKGNAME= ${DISTNAME:S/^gamin/lib&/}
@@ -13,6 +13,7 @@ post-install:
${INSTALL_DATA} $$file ${DESTDIR}${DOCDIR}/$$file; \
done
+.include "options.mk"
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
diff --git a/sysutils/libgamin/options.mk b/sysutils/libgamin/options.mk
new file mode 100644
index 00000000000..1e62ddbad08
--- /dev/null
+++ b/sysutils/libgamin/options.mk
@@ -0,0 +1,11 @@
+# $NetBSD: options.mk,v 1.1 2010/04/18 18:22:43 jmmv Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.libgamin
+PKG_SUPPORTED_OPTIONS= debug
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug
+CONFIGURE_ARGS+= --enable-debug-api
+.endif