1 # Created by: Jean-Yves Lefort <jylefort@brutele.be>
8 MASTER_SITES= SF/${PORTNAME}/Stellarium-sources/${PORTVERSION}
9 DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
10 EXTRACT_ONLY:= ${DISTFILES}
12 MAINTAINER= danfe@FreeBSD.org
13 COMMENT= 3D photo-realistic sky renderer (planetarium)
17 USES= cmake gettext iconv
18 USE_QT5= qmake_build buildtools_build linguisttools_build \
19 core concurrent declarative
22 PORTDOCS= AUTHORS ChangeLog README
24 OPTIONS_DEFINE= MORE_STARS MULTIMEDIA DOCS
25 OPTIONS_DEFAULT= MULTIMEDIA
26 MORE_STARS_DESC= Install extra star catalogs (1.2GB)
27 MULTIMEDIA_DESC= Sound and video support
29 .include <bsd.port.options.mk>
31 .if ${PORT_OPTIONS:MMORE_STARS}
33 MASTER_SITES+= SF/${PORTNAME}/Extra-data-files/stars${i}:stars${i}
35 DISTFILES+= stars_4_1v0_0.cat:stars4 stars_5_2v0_0.cat:stars5 \
36 stars_6_2v0_0.cat:stars6 stars_7_2v0_0.cat:stars7 \
37 stars_8_2v0_0.cat:stars8
38 PLIST_SUB+= MORE_STARS=""
40 PLIST_SUB+= MORE_STARS="@comment "
43 .if ${PORT_OPTIONS:MMULTIMEDIA}
46 CMAKE_ARGS+= -DENABLE_SOUND:BOOL=OFF
50 @${REINPLACE_CMD} -e 's, -Wno-unused-result,,' ${WRKSRC}/CMakeLists.txt
53 .if ${PORT_OPTIONS:MMORE_STARS}
54 ${INSTALL_DATA} ${DISTDIR}/stars_[45678]_[12]v0_0.cat \
55 ${STAGEDIR}${DATADIR}/stars/default
57 @${MKDIR} ${STAGEDIR}${DOCSDIR}
58 ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
60 .include <bsd.port.mk>