74 lines
2.1 KiB
Makefile
74 lines
2.1 KiB
Makefile
# New ports collection Makefile for: telepathy-qt4
|
|
# Date created: 14 January 2010
|
|
# Whom: Alberto Villa <villa.alberto@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= telepathy-qt4
|
|
PORTVERSION= 0.9.0
|
|
CATEGORIES= net-im
|
|
MASTER_SITES= http://telepathy.freedesktop.org/releases/${PORTNAME:C/4//}/
|
|
DISTNAME= ${PORTNAME:C/4//}-${PORTVERSION}
|
|
|
|
MAINTAINER= avilla@FreeBSD.org
|
|
COMMENT= High-level Qt 4 binding for Telepathy
|
|
|
|
LICENSE= LGPL21
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= telepathy-farsight.0:${PORTSDIR}/net-im/telepathy-farsight \
|
|
telepathy-glib.0:${PORTSDIR}/net-im/telepathy-glib
|
|
BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt
|
|
|
|
USE_GNOME= pkgconfig
|
|
USE_PYTHON_BUILD= 2.5+
|
|
USE_QT_VER= 4
|
|
QT_COMPONENTS= dbus gui network qtestlib_build xml \
|
|
moc_build qmake_build rcc_build uic_build
|
|
USE_CMAKE= yes
|
|
MAKE_JOBS_SAFE= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
PORTDOCS= AUTHORS ChangeLog HACKING NEWS README html
|
|
|
|
PORTEXAMPLES= Makefile accounts contact-messenger extensions \
|
|
file-transfer protocols roster stream-tubes
|
|
|
|
pre-configure:
|
|
${REINPLACE_CMD} -e '/FIND_PROGRAM/ s/qmake //' \
|
|
${WRKSRC}/cmake/modules/FindQt.cmake
|
|
${REINPLACE_CMD} -e '/add_subdirectory(tests)/ d' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
${REINPLACE_CMD} -e '/^add_dependencies(doxygen-doc / d' \
|
|
${WRKSRC}/TelepathyQt/CMakeLists.txt
|
|
.ifdef(NOPORTEXAMPLES)
|
|
${REINPLACE_CMD} -e '/add_subdirectory(examples)/ d' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
.endif
|
|
${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|' \
|
|
${WRKSRC}/TelepathyQt/Farsight/CMakeLists.txt
|
|
|
|
pre-install:
|
|
.ifndef(NOPORTDOCS)
|
|
cd ${WRKSRC} && ${CP} -R doc/html .
|
|
.endif
|
|
|
|
post-install:
|
|
.ifndef(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for f in ${PORTDOCS}
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
.ifndef(NOPORTEXAMPLES)
|
|
cd ${WRKSRC}/examples && ${RM} -rf */CMakeFiles */*.cmake */Makefile
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
.for f in ${PORTEXAMPLES}
|
|
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} ${f} ${EXAMPLESDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|