1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/devel/cmake-gui/Makefile
Dima Panov f639cf8c91 - Update CMake to 2.8.1 release
With hat on:	kde@
2010-05-11 11:59:56 +00:00

52 lines
1.2 KiB
Makefile

# New ports collection makefile for: cmake-gui
# Date created: 2009-08-27
# Whom: Max Brazhnikov <makc@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= cmake
PORTVERSION= 2.8.1
CATEGORIES= devel
MASTER_SITES= http://www.cmake.org/files/v${PORTVERSION:C/\.[[:digit:]]+$//}/
PKGNAMESUFFIX= -gui
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt4 GUI for cmake
RUN_DEPENDS= ${CMAKE_BIN}:${CMAKE_PORT}
USE_QT_VER= 4
QT_COMPONENTS= gui qmake_build moc_build uic_build rcc_build
USE_CMAKE= yes
CMAKE_ARGS= -DBUILD_QtDialog:bool=on
MAN1= cmake-gui.1
BUILD_WRKSRC= ${WRKSRC}/Source/QtDialog
INSTALL_WRKSRC= ${BUILD_WRKSRC}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 700042
CMAKE_USE_PTHREAD= yes
.endif
post-patch:
@(${FIND} ${WRKSRC}/Modules -name "*.cmake" -print0; \
${FIND} ${WRKSRC}/Tests -name "CMakeLists.txt" -print0 ) | \
${XARGS} -0 -n 100 ${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g; \
s,/usr/X11R6,${LOCALBASE},g'
post-configure:
${ECHO} "cmake:" >> ${BUILD_WRKSRC}/Makefile
pre-install:
${LN} -sf ${CMAKE_BIN} ${WRKSRC}/bin
${WRKSRC}/bin/cmake-gui --help-man > ${WRKSRC}/cmake-gui.1
post-install:
${MKDIR} ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/cmake-gui.1 ${MANPREFIX}/man/man1
.include <bsd.port.post.mk>