diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2012-06-07 22:44:21 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2012-06-07 22:44:21 +0000 |
commit | 2fa62596744270745d9d0540f5bbd839f6b78d23 (patch) | |
tree | b7e5a1ec8ce92178c23aff878c9671b8c96b7b89 /x11-toolkits | |
parent | e496938a05b08a6dc0a4f3562f7615a574354e2e (diff) | |
download | ports-2fa62596744270745d9d0540f5bbd839f6b78d23.tar.gz ports-2fa62596744270745d9d0540f5bbd839f6b78d23.zip |
Notes
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/c++-gtk-utils/Makefile | 6 | ||||
-rw-r--r-- | x11-toolkits/termit/Makefile | 14 |
2 files changed, 14 insertions, 6 deletions
diff --git a/x11-toolkits/c++-gtk-utils/Makefile b/x11-toolkits/c++-gtk-utils/Makefile index d1b1ea68a76a..da00eb314a48 100644 --- a/x11-toolkits/c++-gtk-utils/Makefile +++ b/x11-toolkits/c++-gtk-utils/Makefile @@ -27,7 +27,11 @@ USE_LDCONFIG= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} CONFIGURE_ARGS+=--docdir=${DOCSDIR} -.if defined(WITH_DEBUG) +OPTIONS_DEFINE= DEBUG + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDEBUG} CONFIGURE_ARGS+=--enable-debug .endif diff --git a/x11-toolkits/termit/Makefile b/x11-toolkits/termit/Makefile index 5a2009660923..5ab76d12e463 100644 --- a/x11-toolkits/termit/Makefile +++ b/x11-toolkits/termit/Makefile @@ -27,19 +27,23 @@ MAN1= ${PORTNAME}.1 TERMIT_ETC= ${PREFIX}/etc/xdg/${PORTNAME} -.if defined(WITH_DEBUG) +OPTIONS_DEFINE= DEBUG + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDEBUG} CMAKE_ARGS+= -DDEBUG:BOOL=YES .endif -.if defined(WITHOUT_NLS) +.if ${PORT_OPTIONS:MNLS} +PLIST_SUB+= NLS="" +.else CMAKE_ARGS+= -DENABLE_NLS:BOOL=NO PLIST_SUB+= NLS="@comment " -.else -PLIST_SUB+= NLS="" .endif post-patch: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${REINPLACE_CMD} 's|../COPYING||' ${WRKSRC}/doc/CMakeLists.txt .else @${REINPLACE_CMD} '/TERMIT_DOCS/s|^|#|' ${WRKSRC}/doc/CMakeLists.txt |