1 --- FreeWRL-1.13/Makefile.PL.orig 2005-04-25 15:47:19.000000000 +0200
2 +++ FreeWRL-1.13/Makefile.PL 2005-04-28 22:16:18.330867064 +0200
5 my $sitearchjsdir = "\$(INSTALLPRIVLIB)/auto/VRML/JS";
7 -my $jsdir = "js1.5/src";
11 my $warnings_high = qq{-Wunreachable-code -Wshadow -Wcast-align};
20 -if ($VRML_CONFIG{PLATFORM} =~ /irix/i) {
21 - $jsobjdir = "$jsdir/IRIX6.5";
22 -} elsif ($OS eq "Darwin") {
23 - $jsobjdir = "$jsdir/Darwin_All";
24 -} elsif ($VRML_CONFIG{PLATFORM} =~ /sunos/i) {
25 - $jsobjdir = "$jsdir/SunOS5.8";
26 -} else { ## linux used by default
27 - $jsobjdir = "$jsdir/Linux_All";
30 if ($VRML_CONFIG{DEBUG} eq "on") {
31 - $jsobjdir .= "_DBG.OBJ";
34 - $jsobjdir .= "_OPT.OBJ";
41 push @inc, $VRML_CONFIG{FREEWRL_INC},
42 - "-I../JS/$jsobjdir", "-IJS/$jsobjdir", "-IJS/$jsdir", "-I../JS/$jsdir -ICFuncs";
43 -push @libs, $VRML_CONFIG{FREEWRL_LIBS}, "-L../JS/$jsobjdir", "-LJS/$jsobjdir", "-Lblib/arch/auto/VRML/VRMLFunc/", "-ljs";
44 -push @ldflags, $VRML_CONFIG{LDFLAGS}, "-LJS/$jsobjdir", "-Lblib/arch/auto/VRML/VRMLFunc/";
45 + "-I/usr/include/js", "-ICFuncs";
46 +push @libs, $VRML_CONFIG{FREEWRL_LIBS}, "-ljs";
48 # push build directory, for running standalone
52 print STDERR "Checking for the Mozilla JavaScript Reference library and application.\n";
54 -if (-e "JS/$jsobjdir/libjs.a" && -e "JS/$jsobjdir/libjs.so" && -e "JS/$jsobjdir/js") {
55 - print STDERR "The Javascript library and application were found.\n";
57 - print STDERR "The Javascript library and application were not found - make them.\n";
60 - system("make -f Makefile.ref BUILD_OPT=$BUILD_OPT");
64 print "Done, now doing writeMakefile\n";
66 use ExtUtils::MakeMaker;
68 # Copy fonts over, etc.
69 push(@postamble, join(
71 - qq{\# copy fonts, libjs.so over\n},
72 + qq{\# copy fonts over\n},
73 qq{\tcp -r fonts \$(DESTINSTALLPRIVLIB)/VRML\n},
74 - qq{\tcp JS/$jsobjdir/libjs.so \$(DESTDIR)$LIB_DIR\n},
75 qq{\# copy copy the initialization file over\n},
76 qq{\tcp CFrontEnd/fw2init.pl \$(DESTINSTALLPRIVLIB)/VRML\n},
79 push(@postamble, join(
81 qq{# make the libFreeWRLFunc shared library active\n},
82 - qq{\tcp blib/arch/auto/VRML/VRMLFunc/VRMLFunc.so \$(DESTDIR)$LIB_DIR/libFreeWRLFunc.so\n},
83 - qq{\t/sbin/ldconfig\n}
86 if ($OS eq "Darwin") {
88 ###################################################
89 # lets do the clean:: targets at this step.
90 ###################################################
91 - push(@postamble, join(
94 - qq{\tcd JS/$jsdir && \$(MAKE) -f Makefile.ref BUILD_OPT=$BUILD_OPT clean\n},
96 if ($OS ne "Darwin") {
97 push(@postamble, join(
100 ###################################################
101 # lets do the distclean:: targets at this step.
102 ###################################################
103 - push(@postamble, join(
105 - qq{distclean :: realclean},
106 - qq{\tcd JS/$jsdir && \$(MAKE) -f Makefile.ref BUILD_OPT=$BUILD_OPT clobber},
108 if ($OS ne "Darwin") {
109 push(@postamble, join(
112 if ($OS eq "Linux") {
113 push(@postamble, join(
115 - #qq{\tcp blib/arch/auto/VRML/VRMLFunc/VRMLFunc.so $LIB_DIR/libFreeWRLFunc.so\n},
116 - #qq{\t/sbin/ldconfig\n}
117 qq{\t\tcp -f blib/arch/auto/VRML/VRMLFunc/VRMLFunc.so blib/arch/auto/VRML/VRMLFunc/libFreeWRLFunc.so\n},