aboutsummaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2015-01-13 00:22:16 +0800
committerdanfe <danfe@FreeBSD.org>2015-01-13 00:22:16 +0800
commit9cab4e24217324ab6db5ce0063eecb7bde546b67 (patch)
tree525025ecc9512e87406dde08b999289223e8689f /astro
parent53bbea649adc15064ba1b8762da314850fa0a882 (diff)
downloadfreebsd-ports-gnome-9cab4e24217324ab6db5ce0063eecb7bde546b67.tar.gz
freebsd-ports-gnome-9cab4e24217324ab6db5ce0063eecb7bde546b67.tar.zst
freebsd-ports-gnome-9cab4e24217324ab6db5ce0063eecb7bde546b67.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).
Diffstat (limited to 'astro')
-rw-r--r--astro/stellarium-qt4/Makefile16
-rw-r--r--astro/stellarium-qt4/distinfo4
-rw-r--r--astro/stellarium-qt4/pkg-plist15
-rw-r--r--astro/stellarium/Makefile13
-rw-r--r--astro/stellarium/distinfo4
5 files changed, 48 insertions, 4 deletions
diff --git a/astro/stellarium-qt4/Makefile b/astro/stellarium-qt4/Makefile
index fcd22b85edf9..09fd84837480 100644
--- a/astro/stellarium-qt4/Makefile
+++ b/astro/stellarium-qt4/Makefile
@@ -7,7 +7,7 @@ PORTREVISION= 1
CATEGORIES= astro
MASTER_SITES= SF/${PORTNAME}/Stellarium-sources/${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
-EXTRACT_ONLY:= ${DISTFILES}
+EXTRACT_ONLY= ${_DISTFILES:Nstars_*.cat\:stars?}
PKGNAMESUFFIX= -qt4
MAINTAINER= danfe@FreeBSD.org
@@ -22,9 +22,10 @@ INSTALLS_ICONS= yes
PORTDOCS= AUTHORS ChangeLog README
-OPTIONS_DEFINE= MORE_STARS MULTIMEDIA SCRIPTING DOCS
+OPTIONS_DEFINE= MORE_STARS HR_TEXTURES MULTIMEDIA SCRIPTING DOCS
OPTIONS_DEFAULT= MULTIMEDIA SCRIPTING
MORE_STARS_DESC= Install extra star catalogs (1.0GB)
+HR_TEXTURES_DESC= Install high-resolution textures
MULTIMEDIA_DESC= Sound and video support (via Phonon)
SCRIPTING_DESC= Scripting support
@@ -42,6 +43,14 @@ 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
+PLIST_SUB+= TEXTURES=""
+.else
+PLIST_SUB+= TEXTURES="@comment "
+.endif
+
.if ${PORT_OPTIONS:MMULTIMEDIA}
USE_QT4+= phonon
.else
@@ -69,6 +78,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-qt4/distinfo b/astro/stellarium-qt4/distinfo
index 76371ba87e48..fabb9ec3fc31 100644
--- a/astro/stellarium-qt4/distinfo
+++ b/astro/stellarium-qt4/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
diff --git a/astro/stellarium-qt4/pkg-plist b/astro/stellarium-qt4/pkg-plist
index c44b33795d58..12c3de12e386 100644
--- a/astro/stellarium-qt4/pkg-plist
+++ b/astro/stellarium-qt4/pkg-plist
@@ -765,8 +765,12 @@ man/man1/stellarium.1.gz
%%DATADIR%%/stars/default/stars_hip_sp_0v0_0.cat
%%DATADIR%%/textures/amalthea.png
%%DATADIR%%/textures/ariel.png
+%%TEXTURES%%%%DATADIR%%/textures/bianca.png
%%DATADIR%%/textures/callisto.png
%%DATADIR%%/textures/charon.png
+%%TEXTURES%%%%DATADIR%%/textures/comet.png
+%%TEXTURES%%%%DATADIR%%/textures/cometComa.png
+%%TEXTURES%%%%DATADIR%%/textures/cometTail.png
%%DATADIR%%/textures/corona.png
%%DATADIR%%/textures/deimos.png
%%DATADIR%%/textures/dione.png
@@ -775,15 +779,20 @@ man/man1/stellarium.1.gz
%%DATADIR%%/textures/earth_cmap.png
%%DATADIR%%/textures/earthmap.png
%%DATADIR%%/textures/enceladus.png
+%%TEXTURES%%%%DATADIR%%/textures/epimetheus.png
+%%TEXTURES%%%%DATADIR%%/textures/eros.png
%%DATADIR%%/textures/europa.png
%%DATADIR%%/textures/fog.png
%%DATADIR%%/textures/fogridge.png
%%DATADIR%%/textures/ganymede.png
+%%TEXTURES%%%%DATADIR%%/textures/gaspra.png
%%DATADIR%%/textures/halo.png
%%DATADIR%%/textures/haloLune.png
%%DATADIR%%/textures/hyperion.png
%%DATADIR%%/textures/iapetus.png
+%%TEXTURES%%%%DATADIR%%/textures/ida.png
%%DATADIR%%/textures/io.png
+%%TEXTURES%%%%DATADIR%%/textures/janus.png
%%DATADIR%%/textures/jupiter.png
%%DATADIR%%/textures/logo24bits.png
%%DATADIR%%/textures/lune.png
@@ -793,6 +802,7 @@ man/man1/stellarium.1.gz
%%DATADIR%%/textures/mimas.png
%%DATADIR%%/textures/miranda.png
%%DATADIR%%/textures/moon.png
+%%TEXTURES%%%%DATADIR%%/textures/moon_normals.png
%%DATADIR%%/textures/neb.png
%%DATADIR%%/textures/neb_dif.png
%%DATADIR%%/textures/neb_gal.png
@@ -805,11 +815,13 @@ man/man1/stellarium.1.gz
%%DATADIR%%/textures/nomap.png
%%DATADIR%%/textures/oberon.png
%%DATADIR%%/textures/phobos.png
+%%TEXTURES%%%%DATADIR%%/textures/phoebe.png
%%DATADIR%%/textures/planet-indicator.png
%%DATADIR%%/textures/pluto.png
%%DATADIR%%/textures/pointeur2.png
%%DATADIR%%/textures/pointeur4.png
%%DATADIR%%/textures/pointeur5.png
+%%TEXTURES%%%%DATADIR%%/textures/prometheus.png
%%DATADIR%%/textures/proteus.png
%%DATADIR%%/textures/rhea.png
%%DATADIR%%/textures/saturn.png
@@ -817,6 +829,7 @@ man/man1/stellarium.1.gz
%%DATADIR%%/textures/star16x16.png
%%DATADIR%%/textures/sun.png
%%DATADIR%%/textures/tethys.png
+%%TEXTURES%%%%DATADIR%%/textures/telescope.png
%%DATADIR%%/textures/titan.png
%%DATADIR%%/textures/titania.png
%%DATADIR%%/textures/triton.png
@@ -824,6 +837,8 @@ man/man1/stellarium.1.gz
%%DATADIR%%/textures/uranus.png
%%DATADIR%%/textures/uranus_rings.png
%%DATADIR%%/textures/venus.png
+%%TEXTURES%%%%DATADIR%%/textures/vesta.png
+%%TEXTURES%%%%DATADIR%%/textures/zenith.png
share/applications/stellarium.desktop
share/icons/hicolor/16x16/apps/stellarium.png
share/icons/hicolor/32x32/apps/stellarium.png
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