freebsd-ports/x11-toolkits/attica/Makefile
Tobias C. Berner b1a1d38bf9 Replace bsd.qt.mk by Uses/qt.mk and Uses/qt-dist.mk
From now on, ports that depend on Qt4 will have to set
	USES=		qt:4
	USE_QT=		foo bar
ports depending on Qt5 will use
	USES=		qt:5
	USE_QT=		foo bar

PR:		229225
Exp-run by:	antoine
Reviewed by:	mat
Approved by:	portmgr (antoine)
Differential Revision:	→https://reviews.freebsd.org/D15540
2018-06-28 17:39:53 +00:00

41 lines
1.2 KiB
Makefile

# Created by: Dima Panov <fluffy@FreeBSD.org>
# $FreeBSD$
PORTNAME= attica
PORTVERSION= 0.4.2
PORTREVISION= 2
PORTEPOCH= 2
CATEGORIES= x11-toolkits
MASTER_SITES= KDE/stable/${PORTNAME}
MAINTAINER= kde@FreeBSD.org
COMMENT= Open Collaboration Services API library
USE_QT= network qtestlib_build xml \
moc_build qmake_build rcc_build uic_build
USE_LDCONFIG= yes
USES= cmake:outsource qt:4 tar:bzip2
CMAKE_ARGS= -DATTICA_ENABLE_TESTS:BOOL=OFF \
-DQT4_BUILD:BOOL=ON
USE_CXXSTD= gnu++98
post-patch:
# LIB_DESTINATION is not caught by USES=pathfix.
${REINPLACE_CMD} \
-e 's,$${LIB_DESTINATION}/pkgconfig,libdata/pkgconfig,' \
${WRKSRC}/lib/CMakeLists.txt
# By default attica will produce libattica.0.4.so but not libattica.0.so.
${REINPLACE_CMD} \
-e 's,.$${CMAKE_LIBATTICA_VERSION_MINOR},,' \
${WRKSRC}/lib/CMakeLists.txt
# Install headers into a subdirectory of ${LOCALBASE}/include so that passing
# -I${LOCALBASE}/include does not cause it to be preferred over the KF5 version
# installed into ${LOCALBASE}/include/KF5.
${REINPLACE_CMD} \
-e "s,include/attica,include/attica/attica," \
${WRKSRC}/lib/CMakeLists.txt
${REINPLACE_CMD} \
-e "s,/include,/include/attica," \
${WRKSRC}/lib/cmake/libattica.pc.cmake
.include <bsd.port.mk>