aboutsummaryrefslogtreecommitdiff
path: root/astro/stellarium
diff options
context:
space:
mode:
Diffstat (limited to 'astro/stellarium')
-rw-r--r--astro/stellarium/Makefile12
-rw-r--r--astro/stellarium/distinfo2
2 files changed, 10 insertions, 4 deletions
diff --git a/astro/stellarium/Makefile b/astro/stellarium/Makefile
index 45dce670ceae..4147c50787d5 100644
--- a/astro/stellarium/Makefile
+++ b/astro/stellarium/Makefile
@@ -42,7 +42,7 @@ PLIST_SUB+= MORE_STARS="@comment "
.if ${PORT_OPTIONS:MHR_TEXTURES}
MASTER_SITES+= SF/${PORTNAME}/textures:gfx
-DISTFILES+= textures-1K.zip:gfx milkyway.zip:gfx # yes, in this order
+DISTFILES+= textures-1K.zip:gfx
.endif
.if ${PORT_OPTIONS:MMULTIMEDIA}
@@ -60,7 +60,15 @@ post-install:
${STAGEDIR}${DATADIR}/stars/default
.endif
.if ${PORT_OPTIONS:MHR_TEXTURES}
- ${INSTALL_DATA} ${WRKDIR}/*.png ${STAGEDIR}${DATADIR}/textures
+ (cd ${WRKDIR} && for f in *.png; do \
+ new=`${STAT} -f '%z' $$f` ; \
+ existing=`${STAT} -f '%z' \
+ ${STAGEDIR}${DATADIR}/textures/$$f` ; \
+ ${TEST} $$new -gt $$existing && \
+ ${ECHO_CMD} "-- Replacing texture: $$f\
+ (has larger file size)" ; \
+ ${INSTALL_DATA} $$f ${STAGEDIR}${DATADIR}/textures ; \
+ done)
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
diff --git a/astro/stellarium/distinfo b/astro/stellarium/distinfo
index cfb40cc47ff7..8ede5cac232c 100644
--- a/astro/stellarium/distinfo
+++ b/astro/stellarium/distinfo
@@ -12,5 +12,3 @@ SHA256 (stars_8_2v0_1.cat) = f1c0b3f25737f405ed4a2a045091d348885ffceb47258c3e32a
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