summaryrefslogtreecommitdiff
path: root/misc/stellarium
diff options
context:
space:
mode:
authormarkd <markd>2008-09-16 22:51:20 +0000
committermarkd <markd>2008-09-16 22:51:20 +0000
commitf3bb00159459507a754dc9d3720d3b8777a281a9 (patch)
treefe0b7e2c243c54a859ca37f83047b6d388d9dba9 /misc/stellarium
parentd4c462c8c753bfd06055c85871e36ff2fb3fda61 (diff)
downloadpkgsrc-f3bb00159459507a754dc9d3720d3b8777a281a9.tar.gz
Use USE_CMAKE.
Diffstat (limited to 'misc/stellarium')
-rw-r--r--misc/stellarium/Makefile17
1 files changed, 5 insertions, 12 deletions
diff --git a/misc/stellarium/Makefile b/misc/stellarium/Makefile
index 8d0ad933fe5..556553c4218 100644
--- a/misc/stellarium/Makefile
+++ b/misc/stellarium/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2008/09/16 13:23:42 drochner Exp $
+# $NetBSD: Makefile,v 1.27 2008/09/16 22:51:20 markd Exp $
DISTNAME= stellarium-0.9.1
CATEGORIES= misc
@@ -13,18 +13,11 @@ PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= c c++
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gmake
+USE_CMAKE= yes
-BUILD_DEPENDS+= cmake-[0-9]*:../../devel/cmake
-
-CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
-CM_ARGS+= -D CMAKE_INSTALL_PREFIX:PATH=${PREFIX}
-CM_ARGS+= -D FreeType2_INCLUDE_DIR:PATH=${LOCALBASE}/include/freetype2
-CM_ARGS+= -D FreeType2_LIBRARIES:PATH=${LOCALBASE}/lib
-CM_ARGS+= -D SDLMIXER_INCLUDE_DIR:PATH=${LOCALBASE}/include/SDL
-CM_ARGS+= -D CMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=TRUE
-
-do-configure:
- (cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} cmake ${CM_ARGS} .)
+CMAKE_ARGS+= -D FreeType2_INCLUDE_DIR:PATH=${BUILDLINK_PREFIX.freetype2}/include/freetype2
+CMAKE_ARGS+= -D FreeType2_LIBRARIES:PATH=${BUILDLINK_PREFIX.freetype2}/lib
+CMAKE_ARGS+= -D SDLMIXER_INCLUDE_DIR:PATH=${BUILDLINK_PREFIX.SDL}/include/SDL
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"