diff options
author | miwi <miwi@FreeBSD.org> | 2008-05-28 06:12:09 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-05-28 06:12:09 +0800 |
commit | c486a60f04933c8227640b8faca0f931afbe32ef (patch) | |
tree | 827b6cdb889eaa1ccc00ca4598ae40dee1a42a50 /astro | |
parent | 888eabb1977d6504355090d942963975c8d755ed (diff) | |
download | freebsd-ports-gnome-c486a60f04933c8227640b8faca0f931afbe32ef.tar.gz freebsd-ports-gnome-c486a60f04933c8227640b8faca0f931afbe32ef.tar.zst freebsd-ports-gnome-c486a60f04933c8227640b8faca0f931afbe32ef.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)
Diffstat (limited to 'astro')
-rw-r--r-- | astro/stellarium/Makefile | 20 |
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} |