diff options
author | Alberto Villa <avilla@FreeBSD.org> | 2013-11-13 00:38:50 +0000 |
---|---|---|
committer | Alberto Villa <avilla@FreeBSD.org> | 2013-11-13 00:38:50 +0000 |
commit | ab634fccd66c7a1d86a115530300201a3397a9ae (patch) | |
tree | 910bd94ab20c8b9ef23e9a9a277fed6ae53dc552 /net-im/telepathy-qt4 | |
parent | 26c1b45c12251c508667779e11391e96d2fa772c (diff) |
- STAGEify.
- Use OPTIONS helpers.
- Use new LIB_DEPENDS format.
- Cleanup files installed by EXAMPLES.
- Mark explicit dependency on qt4-corelib.
Notes
Notes:
svn path=/head/; revision=333634
Diffstat (limited to 'net-im/telepathy-qt4')
-rw-r--r-- | net-im/telepathy-qt4/Makefile | 49 |
1 files changed, 20 insertions, 29 deletions
diff --git a/net-im/telepathy-qt4/Makefile b/net-im/telepathy-qt4/Makefile index 1807e112c3af..c1031a162d04 100644 --- a/net-im/telepathy-qt4/Makefile +++ b/net-im/telepathy-qt4/Makefile @@ -2,6 +2,7 @@ PORTNAME= telepathy-qt4 PORTVERSION= 0.9.3 +PORTREVISION= 1 CATEGORIES= net-im MASTER_SITES= http://telepathy.freedesktop.org/releases/${PORTNAME:C/4//}/ DISTNAME= ${PORTNAME:C/4//}-${PORTVERSION} @@ -11,13 +12,13 @@ COMMENT= High-level Qt binding for Telepathy LICENSE= LGPL21 -LIB_DEPENDS= telepathy-farsight:${PORTSDIR}/net-im/telepathy-farsight \ - telepathy-glib:${PORTSDIR}/net-im/telepathy-glib +LIB_DEPENDS= libtelepathy-farsight.so:${PORTSDIR}/net-im/telepathy-farsight \ + libtelepathy-glib.so:${PORTSDIR}/net-im/telepathy-glib USE_GNOME= libxslt:build USE_GSTREAMER= yes USE_PYTHON_BUILD= 2.5+ -USE_QT4= dbus gui network qtestlib_build xml \ +USE_QT4= corelib dbus gui network qtestlib_build xml \ moc_build qmake_build rcc_build uic_build USES= cmake pkgconfig CMAKE_ARGS= -DENABLE_FARSIGHT:BOOL=True \ @@ -28,43 +29,33 @@ PLIST_SUB= PORTVERSION="${PORTVERSION}" PORTDOCS= AUTHORS ChangeLog HACKING NEWS README html -PORTEXAMPLES= Makefile accounts cm contact-messenger extensions \ +PORTEXAMPLES= accounts cm contact-messenger extensions \ file-transfer protocols roster stream-tubes -NO_STAGE= yes -.include <bsd.port.options.mk> +OPTIONS_DEFINE= DOCS EXAMPLES -.if ${PORT_OPTIONS:MEXAMPLES} -CMAKE_ARGS+= -DENABLE_EXAMPLES:BOOL=True -.else -CMAKE_ARGS+= -DENABLE_EXAMPLES:BOOL=False -.endif +EXAMPLES_CMAKE_ON= -DENABLE_EXAMPLES:BOOL=True +EXAMPLES_CMAKE_OFF= -DENABLE_EXAMPLES:BOOL=False pre-configure: - ${REINPLACE_CMD} -e '/FIND_PROGRAM/ s/qmake //' \ + @${REINPLACE_CMD} -e '/FIND_PROGRAM/ s,qmake ,,' \ ${WRKSRC}/cmake/modules/FindQt.cmake - ${REINPLACE_CMD} -e '/^add_dependencies(doxygen-doc / d' \ + @${REINPLACE_CMD} -e '/^add_dependencies(doxygen-doc / d' \ ${WRKSRC}/TelepathyQt/CMakeLists.txt - ${REINPLACE_CMD} -e '/TelepathyQt.*\.pc/ s|pkgconfig|../libdata/pkgconfig|' \ + @${REINPLACE_CMD} -e '/TelepathyQt.*\.pc/ s,pkgconfig,../libdata/pkgconfig,' \ ${WRKSRC}/TelepathyQt/CMakeLists.txt \ ${WRKSRC}/TelepathyQt/Farsight/CMakeLists.txt - ${REINPLACE_CMD} -e '/$${LIBXML2_INCLUDE_DIR}/ s|$$| ${LOCALBASE}/include|' \ + @${REINPLACE_CMD} -e '/$${LIBXML2_INCLUDE_DIR}/ s,$$, ${LOCALBASE}/include,' \ ${WRKSRC}/TelepathyQt/Farsight/CMakeLists.txt post-install: -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - cd ${WRKSRC} && ${CP} -R doc/html . -. for f in ${PORTDOCS} - cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${DOCSDIR} -. endfor -.endif -.if ${PORT_OPTIONS:MEXAMPLES} - cd ${WRKSRC}/examples && ${RM} -rf */CMakeFiles */*.cmake */Makefile - ${MKDIR} ${EXAMPLESDIR} -. for f in ${PORTEXAMPLES} - cd ${WRKSRC}/examples && ${COPYTREE_SHARE} ${f} ${EXAMPLESDIR} -. endfor -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:Nhtml:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR} + @cd ${WRKSRC}/examples && ${RM} -rf */CMakeFiles */*.cmake */_gen */Makefile + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} +.for f in ${PORTEXAMPLES} + cd ${WRKSRC}/examples && ${COPYTREE_SHARE} ${f} ${STAGEDIR}${EXAMPLESDIR} +.endfor .include <bsd.port.mk> |