diff options
author | Mikhail Teterin <mi@FreeBSD.org> | 2007-07-06 20:29:55 +0000 |
---|---|---|
committer | Mikhail Teterin <mi@FreeBSD.org> | 2007-07-06 20:29:55 +0000 |
commit | 6686ae02cc504d727dcaebf12fcea1dfcc84de48 (patch) | |
tree | 0e4f6cc2da3e40413779ebe258a612c3c9b5d1b1 /print/lyx/Makefile | |
parent | afa5b49fd0e425ca768a7b34270e176299679b82 (diff) |
Notes
Diffstat (limited to 'print/lyx/Makefile')
-rw-r--r-- | print/lyx/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/print/lyx/Makefile b/print/lyx/Makefile index 1191f2b22ac5..58f21a1a621f 100644 --- a/print/lyx/Makefile +++ b/print/lyx/Makefile @@ -55,6 +55,14 @@ post-patch: ${REINPLACE_CMD} -e 's,/bin/bash,/bin/sh,' \ ${WRKSRC}/src/support/tests/test_* +pre-configure: + # If the installed Boost is 1.34 or later, we must compile + # with exceptions enabled: + ${AWK} '/#define BOOST_VERSION / {exit($$NF >= 103400)}' \ + ${LOCALBASE}/include/boost/version.hpp || \ + ${REINPLACE_CMD} -e 's,\(AM_CXXFLAGS="\)-fno-exceptions,\1,' \ + ${WRKSRC}/${CONFIGURE_SCRIPT} + post-configure: # Removing explicit linking with -lc ${REINPLACE_CMD} -e 's,-lc ,,' ${WRKSRC}/*/Makefile |