diff options
author | Michael Johnson <ahze@FreeBSD.org> | 2005-04-12 18:07:20 +0000 |
---|---|---|
committer | Michael Johnson <ahze@FreeBSD.org> | 2005-04-12 18:07:20 +0000 |
commit | aef053e11b6f43794b5d2768304fc3e9fb98e99c (patch) | |
tree | 7f784105abec44e2d70e0344e79b0f3109241430 /x11-toolkits | |
parent | 10be91f19ed4852a8e4ba5341f7ace7b5a6458ca (diff) | |
download | ports-aef053e11b6f43794b5d2768304fc3e9fb98e99c.tar.gz ports-aef053e11b6f43794b5d2768304fc3e9fb98e99c.zip |
- Add WITH_DEBUG knob that has the following turnables [no|minimum|yes]
Default is minimum per gtk.
Notes
Notes:
svn path=/head/; revision=133164
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/gtk20/Makefile | 20 | ||||
-rw-r--r-- | x11-toolkits/gtk30/Makefile | 20 |
2 files changed, 40 insertions, 0 deletions
diff --git a/x11-toolkits/gtk20/Makefile b/x11-toolkits/gtk20/Makefile index d5429e0b74b2..bbbefef34720 100644 --- a/x11-toolkits/gtk20/Makefile +++ b/x11-toolkits/gtk20/Makefile @@ -51,6 +51,18 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/freetype2 \ GTK_VERSION= 2.4.0 PLIST_SUB= GTK_VERSION="${GTK_VERSION}" +.if defined(WITH_DEBUG) +.if ${WITH_DEBUG:L} == "no" +CONFIGURE_ARGS+= --enable-debug=no +.else +.if ${WITH_DEBUG:L} == "yes" +CONFIGURE_ARGS+= --enable-debug=yes +.else +CONFIGURE_ARGS+= --enable-debug=minimum +.endif +.endif +.endif + pre-everything:: .if !defined(WITH_DROPSHADOW) @${ECHO_MSG} @@ -61,6 +73,14 @@ pre-everything:: @${ECHO_MSG} "stop using the patch; we will not further debug it." @${ECHO_MSG} .endif +.if !defined(WITH_DEBUG) + @${ECHO_MSG} + @${ECHO_MSG} "Enable or disable debugging with the following knob" + @${ECHO_MSG} "WITH_DEBUG=[no|minimum|yes]" + @${ECHO_MSG} + @${ECHO_MSG} "Default is minimum" + @${ECHO_MSG} +.endif post-patch: @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${GREP} -l lgmodule | \ diff --git a/x11-toolkits/gtk30/Makefile b/x11-toolkits/gtk30/Makefile index d5429e0b74b2..bbbefef34720 100644 --- a/x11-toolkits/gtk30/Makefile +++ b/x11-toolkits/gtk30/Makefile @@ -51,6 +51,18 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/freetype2 \ GTK_VERSION= 2.4.0 PLIST_SUB= GTK_VERSION="${GTK_VERSION}" +.if defined(WITH_DEBUG) +.if ${WITH_DEBUG:L} == "no" +CONFIGURE_ARGS+= --enable-debug=no +.else +.if ${WITH_DEBUG:L} == "yes" +CONFIGURE_ARGS+= --enable-debug=yes +.else +CONFIGURE_ARGS+= --enable-debug=minimum +.endif +.endif +.endif + pre-everything:: .if !defined(WITH_DROPSHADOW) @${ECHO_MSG} @@ -61,6 +73,14 @@ pre-everything:: @${ECHO_MSG} "stop using the patch; we will not further debug it." @${ECHO_MSG} .endif +.if !defined(WITH_DEBUG) + @${ECHO_MSG} + @${ECHO_MSG} "Enable or disable debugging with the following knob" + @${ECHO_MSG} "WITH_DEBUG=[no|minimum|yes]" + @${ECHO_MSG} + @${ECHO_MSG} "Default is minimum" + @${ECHO_MSG} +.endif post-patch: @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${GREP} -l lgmodule | \ |