Here is a patch for recent download file location and FreeBSD kernel. -- download/mmg3d/ORGMakefile 2012-06-05 11:32:59.000000000 +0900 +++ download/mmg3d/Makefile 2012-06-10 16:40:40.000000000 +0900 @@ -50,7 +50,7 @@ $(PACKAGE): -mkdir $(DIRPKG); - cd $(DIRPKG);$(WGET) http://www.math.u-bordeaux1.fr/~dobj/logiciels/download/mmg3d4.0.tgz + cd $(DIRPKG);$(WGET) http://www.math.u-bordeaux1.fr/~cdobrzyn/logiciels/download/mmg3d4.0.tgz #http://www.math.u-bordeaux1.fr/~dobj/logiciels/download.php?file=`basename $(PACKAGE)` @@ -97,4 +97,4 @@ grep 'WGET *=' ../Makefile >> ff-flags grep 'STD_LIBS *=' ../Makefile >> ff-flags grep 'CNOFLAGS *=' ../Makefile >> ff-flags -.PHONY:$(SRCDIR)/$(INSTALL) \ No newline at end of file +.PHONY:$(SRCDIR)/$(INSTALL) --- download/mshmet/ORGmshmet.2011.03.06.patch 2012-06-05 11:32:59.000000000 +0900 +++ download/mshmet/mshmet.2011.03.06.patch 2012-06-07 15:54:50.000000000 +0900 @@ -39,3 +39,25 @@ +extern int (*lissag)(pMesh ,pSol , int ,int ); #endif +--- mshmet.2011.03.06/sources/lplib3.c 2012-06-06 09:32:14.000000000 +0000 ++++ mshmet.2011.03.06/sourceslib/lplib3.c 2012-06-06 09:35:19.000000000 +0000 +@@ -30,6 +30,10 @@ + #include + #include + #include "lplib3.h" ++#ifdef __FreeBSD__ ++#include ++#include ++#endif + + + /*----------------------------------------------------------*/ +@@ -1250,6 +1254,8 @@ + * NPROC environment variable (BSD/OS, CrayOS) + * sysctl hw.ncpu or kern.smp.cpus + */ ++ int ncpu; ++ + if (pmc_init() == 0 && (ncpu = pmc_ncpu()) != -1) + maxthreads = ncpu; + else --- download/hips/ORGhips-1.2b-rc4.patch 2012-06-05 11:32:59.000000000 +0900 +++ download/hips/hips-1.2b-rc4.patch 2012-06-12 15:17:54.000000000 +0900 @@ -145,3 +145,66 @@ Only in hips-1.2b-rc4-okk/TESTS/PARALLEL: makefile.orig Only in hips-1.2b-rc4-okk: makefile.inc Only in hips-1.2b-rc4-okk: tag-ff++ +--- hips-1.2b-rc4/SRC/INCLUDE/ORGlocaldefs.h 2009-06-22 06:12:56.000000000 +0900 ++++ hips-1.2b-rc4/SRC/INCLUDE/localdefs.h 2012-06-12 14:22:17.000000000 +0900 +@@ -39,6 +39,9 @@ + /* knowledge of the CeCILL-C license and that you accept its terms. */ + /******************************************************************************/ + ++#ifdef __FreeBSD__ ++#include ++#endif + + #if defined(IBM) || defined(SP2) || defined(RS6000) + #define wreadmtc wreadmtc +--- hips-1.2b-rc4/SRC/IO/ORGio_mm.c 2012-06-12 14:13:36.000000000 +0900 ++++ hips-1.2b-rc4/SRC/IO/io_mm.c 2012-06-12 14:27:39.000000000 +0900 +@@ -14,8 +14,10 @@ + #ifdef __APPLE__ + #include + #else ++#ifndef __FreeBSD__ + #include + #endif ++#endif + #include + + +--- download/hips-1.2b-rc4/SRC/IO/ORGio_hb.h 2012-06-12 14:13:36.000000000 +0900 ++++ download/hips-1.2b-rc4/SRC/IO/io_hb.h 2012-06-12 14:25:33.000000000 +0900 +@@ -8,8 +8,10 @@ + #ifdef __APPLE__ + #include + #else ++#ifndef __FreeBSD__ + #include + #endif ++#endif + #ifdef __cplusplus + extern "C" { + #endif +--- hips-1.2b-rc4/SRC/PHIDAL/COMMON/ORGCSCrowICCprod.c 2009-06-22 06:12:43.000000000 +0900 ++++ hips-1.2b-rc4/SRC/PHIDAL/COMMON/CSCrowICCprod.c 2012-06-12 14:15:31.000000000 +0900 +@@ -44,6 +44,9 @@ + #include + #include + #include ++#ifdef __FreeBSD__ ++#include ++#endif + + #include "phidal_common.h" + +--- download/hips-1.2b-rc4/SRC/IO/ORGio_hb.c 2012-06-12 15:14:31.000000000 +0900 ++++ download/hips-1.2b-rc4/SRC/IO/io_hb.c 2012-06-12 15:16:03.000000000 +0900 +@@ -225,8 +225,10 @@ + #ifdef __APPLE__ + #include + #else ++#ifndef __FreeBSD__ + #include + #endif ++#endif + #include + + /** macros FSCANF and FGETS **/ --- download/pastix/ORGMakefile 2012-06-12 14:00:07.000000000 +0900 +++ download/pastix/Makefile 2012-06-12 15:40:00.000000000 +0900 @@ -121,6 +121,7 @@ tar xvfj $(PACKAGE1) #cd $(SRCDIR)/src/; patch -p1 < ../../pastix_release_2200-gen.patch cd $(SRCDIR)/src/blend/src/; patch -p2 < ../../../../pastix_release_2200-blend.patch + cd $(SRCDIR)/src/common/src/; patch common_pastix.h < ../../../../patch-common_pastix.h touch $(SRCDIR) $(PACKAGE1): --- /dev/null 2012-06-12 15:48:04.000000000 +0900 +++ download/pastix/patch-common_pastix.h 2012-06-12 15:44:08.000000000 +0900 @@ -0,0 +1,12 @@ +--- download/ORGcommon_pastix.h 2009-04-17 21:52:36.000000000 +0900 ++++ download/common_pastix.h 2012-06-12 14:09:13.000000000 +0900 +@@ -150,7 +150,9 @@ + #ifdef X_ARCHi686_mac + #include + #else /* X_ARCHi686_mac */ ++#ifndef __FreeBSD__ + #include ++#endif + #endif /* X_ARCHi686_mac */ + #include + #include