1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/cad/gmsh/files/patch-configure
2009-02-04 14:07:54 +00:00

39 lines
1.3 KiB
Plaintext

--- configure.orig 2009-01-09 08:13:50.000000000 +0100
+++ configure 2009-01-27 19:27:36.000000000 +0100
@@ -3714,7 +3714,7 @@
GMSH_DIRS="Common Geo Mesh Post Plugin Numeric Parser Graphics Fltk"
GMSH_LIBS="-Llib -lGmshFltk -lGmshCommon -lGmshMesh -lGmshGeo -lGmshPost -lGmshPlugin"
- GMSH_LIBS="${GMSH_LIBS} -lGmshCommon -lGmshGraphics -lGmshParser -lGmshNumeric"
+ GMSH_LIBS="${GMSH_LIBS} -lGmshCommon -lGmshGraphics -lGmshParser -lGmshNumeric ${LDFLAGS}"
cat >>confdefs.h <<\_ACEOF
#define HAVE_FLTK 1
_ACEOF
@@ -4884,7 +4884,7 @@
GMSH_LIBS="${GMSH_LIBS} ${OCC_LIBS}"
else
GMSH_LIBS="${GMSH_LIBS} -L${OCC_PREFIX}/lib ${OCC_LIBS}"
- FLAGS="${FLAGS} -I${OCC_PREFIX}/inc"
+ FLAGS="${FLAGS} -DHAVE_WOK_CONFIG_H -DFREEBSD -D${ARCH} -I${OCC_PREFIX}/inc"
fi
fi
fi
@@ -5012,7 +5012,7 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lcgns $LIBS"
+LIBS="-lcgns -lhdf5 $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -5074,7 +5074,7 @@
if test "x${CGNS_PREFIX}" = "x"; then
GMSH_LIBS="${GMSH_LIBS} -lcgns"
else
- GMSH_LIBS="${GMSH_LIBS} -L${CGNS_PREFIX}/lib -lcgns"
+ GMSH_LIBS="${GMSH_LIBS} -L${CGNS_PREFIX}/lib -lcgns -lhdf5"
FLAGS="${FLAGS} -I${CGNS_PREFIX}/include"
fi
fi