aboutsummaryrefslogtreecommitdiff
path: root/astro/stellarium/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-05-27 22:12:09 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-05-27 22:12:09 +0000
commit18dd6954f3060c12b7882f4cb2a1f68dbfc0f102 (patch)
tree51edb00936e1a3da263df313cad16c1fa2858d19 /astro/stellarium/Makefile
parenteb37a12fc9841da5f3a397814fbb99436d82a988 (diff)
downloadports-18dd6954f3060c12b7882f4cb2a1f68dbfc0f102.tar.gz
ports-18dd6954f3060c12b7882f4cb2a1f68dbfc0f102.zip
- Add common code to support for cmake based ports.
- Update devel/cmake to 2.6.0 (also fix ports/123092) - Use the new CMAKE build framework in all ports using cmake Approved by: portmgr (pav)
Notes
Notes: svn path=/head/; revision=213789
Diffstat (limited to 'astro/stellarium/Makefile')
-rw-r--r--astro/stellarium/Makefile20
1 files changed, 4 insertions, 16 deletions
diff --git a/astro/stellarium/Makefile b/astro/stellarium/Makefile
index 1c77b09f03c4..e60cee24cbb6 100644
--- a/astro/stellarium/Makefile
+++ b/astro/stellarium/Makefile
@@ -19,7 +19,6 @@ LIB_DEPENDS= boost_thread.4:${PORTSDIR}/devel/boost \
jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png \
freetype:${PORTSDIR}/print/freetype2
-BUILD_DEPENDS= cmake:${PORTSDIR}/devel/cmake
USE_QT_VER= 4
QT_COMPONENTS= qmake moc gui rcc uic opengl
@@ -27,17 +26,10 @@ USE_GETTEXT= yes
USE_GL= yes
USE_SDL= sdl mixer
USE_GMAKE= yes
-CMAKE_ENV= QMAKESPEC=${QMAKESPEC}
-CMAKE_ARGS= -DCMAKE_BUILD_TYPE:STRING=Release \
- -DCMAKE_C_COMPILER:STRING='${CC}' \
- -DCMAKE_C_FLAGS:STRING="${CFLAGS} ${PTHREAD_CFLAGS}" \
- -DCMAKE_CXX_COMPILER:STRING=${CXX} \
- -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS} ${PTHREAD_CFLAGS}" \
- -DCMAKE_EXE_LINKER_FLAGS:STRING="${PTHREAD_LIBS}" \
- -DCMAKE_THREAD_LIBS:STRING="${PTHREAD_LIBS}" \
- -DCMAKE_USE_PTHREADS:BOOL=ON \
- -DCMAKE_INSTALL_PREFIX=${PREFIX} \
- -DFreeType2_INCLUDE_DIR=${LOCALBASE}/include/freetype2 \
+USE_CMAKE= yes
+CMAKE_USE_PTHREAD= yes
+CMAKE_ENV+= QMAKESPEC=${QMAKESPEC}
+CMAKE_ARGS+= -DFreeType2_INCLUDE_DIR=${LOCALBASE}/include/freetype2 \
-DQT_QMAKE_EXECUTABLE=${QMAKE}
PORTDOCS= AUTHORS ChangeLog NEWS README TODO
@@ -56,10 +48,6 @@ post-patch:
${XARGS} -0 ${REINPLACE_CMD} -i '' -e 's/fixx11h.h/fixx11qt4h.h/'
@${MV} ${WRKSRC}/src/stelutils/fixx11h.h ${WRKSRC}/src/stelutils/fixx11qt4h.h
-do-configure:
- @(cd ${WRKSRC}; \
- ${CMAKE_ENV} ${LOCALBASE}/bin/cmake ${CMAKE_ARGS} ${PATCH_WRKSRC})
-
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}