| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.78 2018/09/07 10:03:45 jperkin Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.79 2018/12/02 14:32:17 wiz 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/boost-mpi/Makefile | | 8 | # used by devel/boost-mpi/Makefile |
9 | # used by devel/py-boost/Makefile | | 9 | # used by devel/py-boost/Makefile |
10 | | | 10 | |
11 | BOOST_PACKAGE?= undefined | | 11 | BOOST_PACKAGE?= undefined |
12 | BOOST_COMMENT?= undefined | | 12 | BOOST_COMMENT?= undefined |
13 | BOOST_VERSION= 1.68.0 | | 13 | BOOST_VERSION= 1.68.0 |
14 | BOOST_SHORT_VERSION= ${BOOST_VERSION:S/./_/:C/\..*$//} | | 14 | BOOST_SHORT_VERSION= ${BOOST_VERSION:S/./_/:C/\..*$//} |
| @@ -81,33 +81,36 @@ post-wrapper: | | | @@ -81,33 +81,36 @@ post-wrapper: |
81 | ${RM} -f ${WRAPPER_BINDIR}/libtool | | 81 | ${RM} -f ${WRAPPER_BINDIR}/libtool |
82 | . if exists(/Developer/usr/bin/libtool) | | 82 | . if exists(/Developer/usr/bin/libtool) |
83 | ${LN} -s /Developer/usr/bin/libtool ${WRAPPER_BINDIR}/libtool | | 83 | ${LN} -s /Developer/usr/bin/libtool ${WRAPPER_BINDIR}/libtool |
84 | . else | | 84 | . else |
85 | ${LN} -s /usr/bin/libtool ${WRAPPER_BINDIR}/libtool | | 85 | ${LN} -s /usr/bin/libtool ${WRAPPER_BINDIR}/libtool |
86 | . endif | | 86 | . endif |
87 | . endif | | 87 | . endif |
88 | | | 88 | |
89 | # We can't do this at post-extract because the extract cookie will get a future | | 89 | # We can't do this at post-extract because the extract cookie will get a future |
90 | # timestamp than the sources. If this happens, print-PLIST does not work. | | 90 | # timestamp than the sources. If this happens, print-PLIST does not work. |
91 | pre-configure: | | 91 | pre-configure: |
92 | ${FIND} ${WRKSRC} -type f -print0 | ${XARGS} -0 ${TOUCH} | | 92 | ${FIND} ${WRKSRC} -type f -print0 | ${XARGS} -0 ${TOUCH} |
93 | | | 93 | |
94 | # Generate a new user.hpp or use the installed one, depending on the package | | 94 | # According to https://github.com/boostorg/config/issues/240 |
95 | # we are building. | | 95 | # the user.hpp generation is intended only for porting to new platforms |
96 | . if ${BOOST_CONFIG} == "installed" | | 96 | # and we should use the provided one. |
97 | . include "../../devel/boost-headers/buildlink3.mk" | | 97 | ## Generate a new user.hpp or use the installed one, depending on the package |
98 | do-configure: | | 98 | ## we are building. |
99 | ${CP} -f \ | | 99 | #. if ${BOOST_CONFIG} == "installed" |
100 | ${BUILDLINK_PREFIX.boost-headers}/include/boost/config/user.hpp \ | | 100 | #. include "../../devel/boost-headers/buildlink3.mk" |
101 | ${WRKSRC}/boost/config/user.hpp | | 101 | #do-configure: |
102 | . elif ${BOOST_CONFIG} == "generate" | | 102 | # ${CP} -f \ |
103 | do-configure: | | 103 | # ${BUILDLINK_PREFIX.boost-headers}/include/boost/config/user.hpp \ |
104 | cd ${WRKSRC}/libs/config && \ | | 104 | # ${WRKSRC}/boost/config/user.hpp |
105 | ${SETENV} ${CONFIGURE_ENV} ${SH} ./configure | | 105 | #. elif ${BOOST_CONFIG} == "generate" |
106 | ${CP} -f ${WRKSRC}/libs/config/user.hpp ${WRKSRC}/boost/config/user.hpp | | 106 | #do-configure: |
107 | . endif | | 107 | # cd ${WRKSRC}/libs/config && \ |
| | | 108 | # ${SETENV} ${CONFIGURE_ENV} ${SH} ./configure |
| | | 109 | # ${CP} -f ${WRKSRC}/libs/config/user.hpp ${WRKSRC}/boost/config/user.hpp |
| | | 110 | #. endif |
108 | | | 111 | |
109 | boost-install-libs: | | 112 | boost-install-libs: |
110 | ${INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/lib | | 113 | ${INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/lib |
111 | cd ${WRKSRC}/stage/lib && pax -rw -p p libboost* ${DESTDIR}${PREFIX}/lib | | 114 | cd ${WRKSRC}/stage/lib && pax -rw -p p libboost* ${DESTDIR}${PREFIX}/lib |
112 | | | 115 | |
113 | .endif # ${BOOST_PACKAGE} == "meta-pkg" | | 116 | .endif # ${BOOST_PACKAGE} == "meta-pkg" |