aboutsummaryrefslogtreecommitdiff
path: root/astro/stellarium
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2015-01-12 16:22:16 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2015-01-12 16:22:16 +0000
commit461b1d009b2650fcf51c433fc40891497d00941c (patch)
tree525025ecc9512e87406dde08b999289223e8689f /astro/stellarium
parent849e06c07d599109b5a01f397ae9cbea396c4142 (diff)
downloadports-461b1d009b2650fcf51c433fc40891497d00941c.tar.gz
ports-461b1d009b2650fcf51c433fc40891497d00941c.zip
Allow to install optional high-resolution textures; these are supported by
0.12.x versions and first two of 0.13.x; have to revisit it upon update to 0.13.2 (coming soon).
Notes
Notes: svn path=/head/; revision=376837
Diffstat (limited to 'astro/stellarium')
-rw-r--r--astro/stellarium/Makefile13
-rw-r--r--astro/stellarium/distinfo4
2 files changed, 15 insertions, 2 deletions
diff --git a/astro/stellarium/Makefile b/astro/stellarium/Makefile
index ff826fe0cbc3..45dce670ceae 100644
--- a/astro/stellarium/Makefile
+++ b/astro/stellarium/Makefile
@@ -6,7 +6,7 @@ PORTVERSION= 0.13.1
CATEGORIES= astro
MASTER_SITES= SF/${PORTNAME}/Stellarium-sources/${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
-EXTRACT_ONLY:= ${DISTFILES}
+EXTRACT_ONLY= ${_DISTFILES:Nstars_*.cat\:stars?}
MAINTAINER= danfe@FreeBSD.org
COMMENT= 3D photo-realistic sky renderer (planetarium)
@@ -20,9 +20,10 @@ INSTALLS_ICONS= yes
PORTDOCS= AUTHORS ChangeLog README
-OPTIONS_DEFINE= MORE_STARS MULTIMEDIA DOCS
+OPTIONS_DEFINE= MORE_STARS HR_TEXTURES MULTIMEDIA DOCS
OPTIONS_DEFAULT= MULTIMEDIA
MORE_STARS_DESC= Install extra star catalogs (1.0GB)
+HR_TEXTURES_DESC= Install high-resolution textures
MULTIMEDIA_DESC= Sound and video support
.include <bsd.port.options.mk>
@@ -39,6 +40,11 @@ PLIST_SUB+= MORE_STARS=""
PLIST_SUB+= MORE_STARS="@comment "
.endif
+.if ${PORT_OPTIONS:MHR_TEXTURES}
+MASTER_SITES+= SF/${PORTNAME}/textures:gfx
+DISTFILES+= textures-1K.zip:gfx milkyway.zip:gfx # yes, in this order
+.endif
+
.if ${PORT_OPTIONS:MMULTIMEDIA}
USE_QT5+= multimedia
.else
@@ -53,6 +59,9 @@ post-install:
${INSTALL_DATA} ${DISTDIR}/stars_[45678]_[12]v0_1.cat \
${STAGEDIR}${DATADIR}/stars/default
.endif
+.if ${PORT_OPTIONS:MHR_TEXTURES}
+ ${INSTALL_DATA} ${WRKDIR}/*.png ${STAGEDIR}${DATADIR}/textures
+.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
diff --git a/astro/stellarium/distinfo b/astro/stellarium/distinfo
index 39baeaddf92d..cfb40cc47ff7 100644
--- a/astro/stellarium/distinfo
+++ b/astro/stellarium/distinfo
@@ -10,3 +10,7 @@ SHA256 (stars_7_2v0_1.cat) = 4d812c078f03d01c9b24bacedf6e688a4382d92468bab2aba2b
SIZE (stars_7_2v0_1.cat) = 305710678
SHA256 (stars_8_2v0_1.cat) = f1c0b3f25737f405ed4a2a045091d348885ffceb47258c3e32a2f4a800cac482
SIZE (stars_8_2v0_1.cat) = 559068934
+SHA256 (textures-1K.zip) = 3622b73e9cfb65ba537072b0ed3b5ef92951e70878ace7557931d841c5bb3bec
+SIZE (textures-1K.zip) = 20216182
+SHA256 (milkyway.zip) = cffc11d22a1e0596e8d01800f54627a67a3ebcc745e5d138819e40d247aaa0d1
+SIZE (milkyway.zip) = 6389431