Nero2d fails to compile on Fedora 14 cause there are some hardcoded symlinks in the doc part of the package.
i modified the corresponding install.sh to patch the makefile the way that the docs arent build
Code:
#!/bin/sh mkdir $HOME/nero2d_ tar -zxvf nero2d-2.0.2.tar.gz patch -p0 <<'EOT' --- nero2d-2.0.2.orig/src/nexus/nexus.cpp 2009-04-03 09:42:29.000000000 -0400 +++ nero2d-2.0.2/src/nexus/nexus.cpp 2009-06-13 21:52:42.589304348 -0400 @@ -21,6 +21,8 @@ #include "nexus.h" #include "engine.h" #include "base.h" +#include <cstring> +#include <cstdio> using namespace std; EOT patch -p0 <<'EOT' --- nero2d-2.0.2.orig/Makefile.in 2009-04-03 15:42:34.000000000 +0200 +++ nero2d-2.0.2/Makefile.in 2011-03-02 19:23:12.179899327 +0100 @@ -193,7 +193,7 @@ # not a GNU package. You can remove this line, if # have all needed files, that a GNU package needs AUTOMAKE_OPTIONS = foreign 1.4 -SUBDIRS = config benchmark doc examples src +SUBDIRS = config benchmark examples src all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive EOT cd nero2d-2.0.2/ ./configure --prefix=$HOME/nero2d_ make -j $NUM_CPU_JOBS echo $? > ~/install-exit-status make install cd .. rm -rf nero2d-2.0.2/ echo "#!/bin/sh ./nero2d_/bin/nero2d \$@ > \$LOG_FILE 2>&1 echo \$? > ~/test-exit-status" > nero2d chmod +x nero2d
Leave a comment: