openbsd-ports/astro/stellarium/Makefile

52 lines
1.2 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.5 2008/01/18 09:52:34 ajacoutot Exp $
2007-06-18 07:58:11 -04:00
COMMENT= free open source planetarium
DISTNAME= stellarium-0.9.1
CATEGORIES= astro x11
HOMEPAGE= http://www.stellarium.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=stellarium/}
WANTLIB= freetype c pthread stdc++ Xext m GL X11 GLU z ICE SM \
Xcursor Xfixes Xi Xinerama Xrandr Xrender fontconfig \
jpeg png QtGui QtNetwork QtOpenGL QtScript glib-2.0 \
gthread-2.0
USE_X11= Yes
2007-06-18 07:58:11 -04:00
MODULES= devel/gettext devel/cmake x11/qt4
BUILD_DEPENDS= ::devel/boost
LIB_DEPENDS= SDL_mixer.>=3::devel/sdl-mixer
2007-06-18 07:58:11 -04:00
CONFIGURE_STYLE=cmake
CONFIGURE_ENV= HOME=${WRKDIR}
PORTHOME= ${WRKDIR}
MAKE_FLAGS= -DVERBOSE
NO_REGRESS= Yes
MODCMAKE_WANTCOLOR=No
pre-configure:
2007-06-18 07:58:11 -04:00
@perl -pi -e 's,!!PREFIX!!,${PREFIX},g' \
${WRKSRC}/data/stellarium.1
@perl -pi -e 's,!!X11BASE!!,${X11BASE},g' \
${WRKSRC}/cmake/FindFreeType2.cmake
@perl -pi -e 's,!!CFLAGS!!,${CFLAGS},g;' \
-e 's,!!CXXFLAGS!!,${CXXFLAGS},g' \
${WRKSRC}/CMakeLists.txt
post-install:
${INSTALL_MAN} ${WRKSRC}/data/stellarium.1 \
${PREFIX}/man/man1/stellarium.1
.include <bsd.port.mk>