automake question (astro/celestia-gtk not installing .3ds files)

Juergen Lock nox at jelal.kn-bremen.de
Sun Oct 29 19:42:40 UTC 2006


On Sun, Oct 29, 2006 at 07:38:25PM +0100, Juergen Lock wrote:
> Hi!
> 
>  I was wondering why I don't see things like the ISS in celestia
> even when it knows them (tho with outdated ISS orbit elements,
> I updated them as explained here,
> 	http://www.shatters.net/forum/viewtopic.php?p=41069#41069
> ) when I found out the port just doesn't install the .3ds files
> that do come with the distribution.  Looking at
> 	work/celestia-1.4.1/models/Makefile.am
> I see $(wildcard *.3ds) mentioned in EXTRA_DIST, which makes me
> suspect somehow the automake magic doesn't work as expected on
> FreeBSD.  Is this assumption right?  And does anyone have an idea
> how to fix this?

Hah, that guess was wrong. :)  found this thread:
	http://www.shatters.net/forum/viewtopic.php?p=71982

 So the real problem is that there are no cmod files for ISS and some
other .3ds files:
	http://www.shatters.net/forum/viewtopic.php?p=71982#71982
which means the real fix seems toe be to either generate cmod files
for those, or install just these .3ds files.  So I just patched
astro/celestia like this and am now compiling:  (should I send-pr
this when I know it works?)

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/astro/celestia/Makefile,v
retrieving revision 1.33
diff -u -r1.33 Makefile
--- Makefile	14 Oct 2006 08:53:16 -0000	1.33
+++ Makefile	29 Oct 2006 19:36:33 -0000
@@ -93,6 +93,18 @@
 	${MKDIR} ${PREFIX}/share/pixmaps
 	${INSTALL_DATA} ${WRKSRC}/src/celestia/gtk/data/celestia.png \
 		${PREFIX}/share/pixmaps
+	${INSTALL_DATA} ${WRKSRC}/models/apollo.3ds \
+		${WRKSRC}/models/cassini.3ds \
+		${WRKSRC}/models/galileo.3ds \
+		${WRKSRC}/models/gemini.3ds \
+		${WRKSRC}/models/hubble.3ds \
+		${WRKSRC}/models/iss.3ds \
+		${WRKSRC}/models/marsglobalsurvr.3ds \
+		${WRKSRC}/models/marsodyssey.3ds \
+		${WRKSRC}/models/mercury7.3ds \
+		${WRKSRC}/models/mir.3ds \
+		${WRKSRC}/models/skylab.3ds \
+		${PREFIX}/share/celestia/models
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/astro/celestia/pkg-plist,v
retrieving revision 1.2
diff -u -r1.2 pkg-plist
--- pkg-plist	14 Oct 2006 08:53:17 -0000	1.2
+++ pkg-plist	29 Oct 2006 19:35:00 -0000
@@ -102,6 +102,17 @@
 share/celestia/models/roughsphere.cms
 share/celestia/models/toutatis.cmod
 share/celestia/models/vesta.cmod
+share/celestia/models/apollo.3ds
+share/celestia/models/cassini.3ds
+share/celestia/models/galileo.3ds
+share/celestia/models/gemini.3ds
+share/celestia/models/hubble.3ds
+share/celestia/models/iss.3ds
+share/celestia/models/marsglobalsurvr.3ds
+share/celestia/models/marsodyssey.3ds
+share/celestia/models/mercury7.3ds
+share/celestia/models/mir.3ds
+share/celestia/models/skylab.3ds
 share/celestia/shaders/bumpdiffuse.vp
 share/celestia/shaders/bumpdiffuse_arb.vp
 share/celestia/shaders/bumpdiffuse_nv.fp


More information about the freebsd-ports mailing list