diff options
Diffstat (limited to 'chinese/qterm/Makefile')
-rw-r--r-- | chinese/qterm/Makefile | 49 |
1 files changed, 16 insertions, 33 deletions
diff --git a/chinese/qterm/Makefile b/chinese/qterm/Makefile index c5f6d31..189c62d 100644 --- a/chinese/qterm/Makefile +++ b/chinese/qterm/Makefile @@ -27,45 +27,28 @@ PHONON_DESC= Multimedia support via Phonon QTSCRIPT_DESC= Scripting support via QtScript Bindings KDE_DESC= Password management via KWallet -.include <bsd.port.options.mk> +OPENSSL_USE= OPENSSL=yes +OPENSSL_CMAKE_ON= -DQTERM_ENABLE_SSH:BOOL=TRUE +OPENSSL_CMAKE_OFF= -DQTERM_ENABLE_SSH:BOOL=FALSE -.if ${PORT_OPTIONS:MOPENSSL} -USE_OPENSSL= yes -CMAKE_ARGS+= -DQTERM_ENABLE_SSH:BOOL=TRUE -.else -CMAKE_ARGS+= -DQTERM_ENABLE_SSH:BOOL=FALSE -.endif +DBUS_USE= QT4=dbus +DBUS_CMAKE_ON= -DQTERM_ENABLE_DBUS:BOOL=TRUE +DBUS_CMAKE_OFF= -DQTERM_ENABLE_DBUS:BOOL=FALSE -.if ${PORT_OPTIONS:MDBUS} -USE_QT4+= dbus -CMAKE_ARGS+= -DQTERM_ENABLE_DBUS:BOOL=TRUE -.else -CMAKE_ARGS+= -DQTERM_ENABLE_DBUS:BOOL=FALSE -.endif +PHONON_USE= QT4=phonon +PHONON_CMAKE_ON= -DQTERM_ENABLE_PHONON:BOOL=TRUE +PHONON_CMAKE_OFF= -DQTERM_ENABLE_PHONON:BOOL=FALSE -.if ${PORT_OPTIONS:MPHONON} -USE_QT4+= phonon -CMAKE_ARGS+= -DQTERM_ENABLE_PHONON:BOOL=TRUE -.else -CMAKE_ARGS+= -DQTERM_ENABLE_PHONON:BOOL=FALSE -.endif +QTSCRIPT_USE= QT4=script +QTSCRIPT_RUN_DEPENDS= ${QT_PLUGINDIR}/script/libqtscript_core.so:${PORTSDIR}/devel/qtscriptgenerator +QTSCRIPT_CMAKE_ON= -DQTERM_ENABLE_SCRIPT:BOOL=TRUE +QTSCRIPT_CMAKE_OFF= -DQTERM_ENABLE_SCRIPT:BOOL=FALSE -.if ${PORT_OPTIONS:MQTSCRIPT} -USE_QT4+= script -RUN_DEPENDS+= ${QT_PLUGINDIR}/script/libqtscript_core.so:${PORTSDIR}/devel/qtscriptgenerator -CMAKE_ARGS+= -DQTERM_ENABLE_SCRIPT:BOOL=TRUE -.else -CMAKE_ARGS+= -DQTERM_ENABLE_SCRIPT:BOOL=FALSE -.endif +KDE_USE= KDE4=kdelibs,automoc4 -.if ${PORT_OPTIONS:MKDE} -USE_KDE4= kdelibs automoc4 -.endif - -post-patch: -.if !${PORT_OPTIONS:MKDE} +post-patch-KDE-off: ${REINPLACE_CMD} -e "/^find_package(KDE4)/d" ${WRKSRC}/CMakeLists.txt -.endif +post-patch: ${REINPLACE_CMD} -e "/^set(QT_MIN_VERSION/d" ${WRKSRC}/CMakeLists.txt .include <bsd.port.mk> |