| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.54 2015/08/14 07:54:04 adam Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.55 2015/08/14 16:17:16 adam Exp $ |
2 | # | | 2 | # |
3 | # used by devel/boost-build/Makefile | | 3 | # used by devel/boost-build/Makefile |
4 | # used by devel/boost-docs/Makefile | | 4 | # used by devel/boost-docs/Makefile |
5 | # used by devel/boost-jam/Makefile | | 5 | # used by devel/boost-jam/Makefile |
6 | # used by devel/boost-headers/Makefile | | 6 | # used by devel/boost-headers/Makefile |
7 | # used by devel/boost-libs/Makefile | | 7 | # used by devel/boost-libs/Makefile |
8 | # used by devel/py-boost/Makefile | | 8 | # used by devel/py-boost/Makefile |
9 | | | 9 | |
10 | BOOST_PACKAGE?= undefined | | 10 | BOOST_PACKAGE?= undefined |
11 | BOOST_COMMENT?= undefined | | 11 | BOOST_COMMENT?= undefined |
12 | BOOST_VERSION= 1.59.0 | | 12 | BOOST_VERSION= 1.59.0 |
13 | BOOST_SHORT_VERSION= ${BOOST_VERSION:S/./_/:C/\..*$//} | | 13 | BOOST_SHORT_VERSION= ${BOOST_VERSION:S/./_/:C/\..*$//} |
14 | | | 14 | |
| @@ -48,27 +48,28 @@ GCC_REQD+= 4.5 | | | @@ -48,27 +48,28 @@ GCC_REQD+= 4.5 |
48 | | | 48 | |
49 | PLIST_SUBST+= BOOST_VERSION="${BOOST_VERSION}" | | 49 | PLIST_SUBST+= BOOST_VERSION="${BOOST_VERSION}" |
50 | | | 50 | |
51 | SUBST_CLASSES+= prefix | | 51 | SUBST_CLASSES+= prefix |
52 | SUBST_STAGE.prefix= pre-configure | | 52 | SUBST_STAGE.prefix= pre-configure |
53 | SUBST_MESSAGE.prefix= Fixing prefix. | | 53 | SUBST_MESSAGE.prefix= Fixing prefix. |
54 | SUBST_FILES.prefix= boostcpp.jam | | 54 | SUBST_FILES.prefix= boostcpp.jam |
55 | SUBST_VARS.prefix= PREFIX | | 55 | SUBST_VARS.prefix= PREFIX |
56 | | | 56 | |
57 | SUBST_CLASSES+= darwin | | 57 | SUBST_CLASSES+= darwin |
58 | SUBST_STAGE.darwin= pre-configure | | 58 | SUBST_STAGE.darwin= pre-configure |
59 | SUBST_MESSAGE.darwin= Fixing install_name for Darwin. | | 59 | SUBST_MESSAGE.darwin= Fixing install_name for Darwin. |
60 | SUBST_FILES.darwin= tools/build/src/tools/*darwin.jam | | 60 | SUBST_FILES.darwin= tools/build/src/tools/*darwin.jam |
61 | SUBST_SED.darwin= -e 's,-install_name ",-install_name "${PREFIX}/lib/,g' | | 61 | SUBST_SED.darwin= -e 's,-install_name "@rpath,-install_name "${PREFIX}/lib,g' |
| | | 62 | SUBST_SED.darwin+= -e 's,-install_name "\$$,-install_name "${PREFIX}/lib/\$$,g' |
62 | | | 63 | |
63 | # On SunOS, extract using pkgsrc nbtar to avoid warnings from native gtar. | | 64 | # On SunOS, extract using pkgsrc nbtar to avoid warnings from native gtar. |
64 | . if ${OPSYS} == "SunOS" | | 65 | . if ${OPSYS} == "SunOS" |
65 | TOOLS_PLATFORM.tar= #empty | | 66 | TOOLS_PLATFORM.tar= #empty |
66 | . include "../../mk/compiler.mk" | | 67 | . include "../../mk/compiler.mk" |
67 | . if !empty(CC_VERSION:Mgcc-4.[6-9]*) | | 68 | . if !empty(CC_VERSION:Mgcc-4.[6-9]*) |
68 | BUILDLINK_TRANSFORM+= opt:-D_XOPEN_SOURCE=500:-D_XOPEN_SOURCE=600 | | 69 | BUILDLINK_TRANSFORM+= opt:-D_XOPEN_SOURCE=500:-D_XOPEN_SOURCE=600 |
69 | . endif | | 70 | . endif |
70 | . endif | | 71 | . endif |
71 | | | 72 | |
72 | . if ${OPSYS} == "Darwin" | | 73 | . if ${OPSYS} == "Darwin" |
73 | # Prevent using a pkgsrc libtool in OS X because the darwin toolset needs | | 74 | # Prevent using a pkgsrc libtool in OS X because the darwin toolset needs |
74 | # the native libtool from /Developer/usr/bin or /usr/bin. | | 75 | # the native libtool from /Developer/usr/bin or /usr/bin. |