| @@ -1,113 +1,113 @@ | | | @@ -1,113 +1,113 @@ |
1 | # $NetBSD: Makefile.common,v 1.77 2018/09/02 12:53:36 leot Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.78 2018/09/07 10:03:45 jperkin 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/\..*$//} |
15 | | | 15 | |
16 | # Update mysql57-client/patches/patch-cmake_boost.cmake when updating version | | 16 | # Update mysql57-client/patches/patch-cmake_boost.cmake when updating version |
17 | | | 17 | |
18 | DISTNAME= boost_${BOOST_VERSION:S/./_/g} | | 18 | DISTNAME= boost_${BOOST_VERSION:S/./_/g} |
19 | CATEGORIES= devel | | 19 | CATEGORIES= devel |
20 | | | 20 | |
21 | .if ${BOOST_PACKAGE} == "meta-pkg" | | 21 | .if ${BOOST_PACKAGE} == "meta-pkg" |
22 | PKGNAME= boost-${BOOST_VERSION} | | 22 | PKGNAME= boost-${BOOST_VERSION} |
23 | .else # ${BOOST_PACKAGE} != "meta-pkg" | | 23 | .else # ${BOOST_PACKAGE} != "meta-pkg" |
24 | PKGNAME= boost-${BOOST_PACKAGE}-${BOOST_VERSION} | | 24 | PKGNAME= boost-${BOOST_PACKAGE}-${BOOST_VERSION} |
25 | | | 25 | |
26 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=boost/} | | 26 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=boost/} |
27 | EXTRACT_SUFX= .tar.bz2 | | 27 | EXTRACT_SUFX= .tar.bz2 |
28 | | | 28 | |
29 | MAINTAINER= pkgsrc-users@NetBSD.org | | 29 | MAINTAINER= pkgsrc-users@NetBSD.org |
30 | HOMEPAGE= http://www.boost.org/ | | 30 | HOMEPAGE= http://www.boost.org/ |
31 | COMMENT= Free, peer-reviewed portable C++ source libraries ${BOOST_COMMENT} | | 31 | COMMENT= Free, peer-reviewed portable C++ source libraries ${BOOST_COMMENT} |
32 | LICENSE= boost-license | | 32 | LICENSE= boost-license |
33 | | | 33 | |
34 | CONFLICTS+= boost<1.36.0 | | 34 | CONFLICTS+= boost<1.36.0 |
35 | | | 35 | |
36 | DISTINFO_FILE= ${.CURDIR}/../../meta-pkgs/boost/distinfo | | 36 | DISTINFO_FILE= ${.CURDIR}/../../meta-pkgs/boost/distinfo |
37 | PATCHDIR= ${.CURDIR}/../../meta-pkgs/boost/patches | | 37 | PATCHDIR= ${.CURDIR}/../../meta-pkgs/boost/patches |
38 | | | 38 | |
39 | .include "../../mk/bsd.prefs.mk" | | 39 | .include "../../mk/bsd.prefs.mk" |
40 | | | 40 | |
41 | USE_TOOLS+= pax | | 41 | USE_TOOLS+= pax |
42 | USE_LANGUAGES= c c++ | | 42 | USE_LANGUAGES= c c++ |
43 | | | 43 | |
44 | # IMPORTANT: sync this with devel/boost-libs/buildlink3.mk | | 44 | # IMPORTANT: sync this with devel/boost-libs/buildlink3.mk |
45 | # GCC 4.5 or later is required to build, and GCC 4.5 is not provided for OpenBSD | | 45 | # GCC 4.5 or later is required to build, and GCC 4.5 is not provided for OpenBSD |
46 | . if ${OPSYS} == "OpenBSD" | | 46 | . if ${OPSYS} == "OpenBSD" |
47 | . if ${MACHINE_ARCH} != "sparc64" | | 47 | . if ${MACHINE_ARCH} != "sparc64" |
48 | GCC_REQD+= 4.6 | | 48 | GCC_REQD+= 4.6 |
49 | . endif | | 49 | . endif |
50 | . elif ${LOWER_VENDOR} == "redhat" | | 50 | . elif ${LOWER_VENDOR} == "redhat" |
51 | GCC_REQD+= 4.4 | | 51 | GCC_REQD+= 4.4 |
52 | . else | | 52 | . else |
53 | GCC_REQD+= 4.5 | | 53 | GCC_REQD+= 4.5 |
54 | . endif | | 54 | . endif |
55 | | | 55 | |
56 | PLIST_SUBST+= BOOST_VERSION="${BOOST_VERSION}" | | 56 | PLIST_SUBST+= BOOST_VERSION="${BOOST_VERSION}" |
57 | | | 57 | |
58 | SUBST_CLASSES+= prefix | | 58 | SUBST_CLASSES+= prefix |
59 | SUBST_STAGE.prefix= pre-configure | | 59 | SUBST_STAGE.prefix= pre-configure |
60 | SUBST_MESSAGE.prefix= Fixing prefix. | | 60 | SUBST_MESSAGE.prefix= Fixing prefix. |
61 | SUBST_FILES.prefix= boostcpp.jam | | 61 | SUBST_FILES.prefix= boostcpp.jam |
62 | SUBST_VARS.prefix= PREFIX | | 62 | SUBST_VARS.prefix= PREFIX |
63 | | | 63 | |
64 | SUBST_CLASSES+= darwin | | 64 | SUBST_CLASSES+= darwin |
65 | SUBST_STAGE.darwin= pre-configure | | 65 | SUBST_STAGE.darwin= pre-configure |
66 | SUBST_MESSAGE.darwin= Fixing install_name for Darwin. | | 66 | SUBST_MESSAGE.darwin= Fixing install_name for Darwin. |
67 | SUBST_FILES.darwin= tools/build/src/tools/*darwin.jam | | 67 | SUBST_FILES.darwin= tools/build/src/tools/*darwin.jam |
68 | SUBST_SED.darwin= -e 's,-install_name "@rpath,-install_name "${PREFIX}/lib,g' | | 68 | SUBST_SED.darwin= -e 's,-install_name "@rpath,-install_name "${PREFIX}/lib,g' |
69 | SUBST_SED.darwin+= -e 's,-install_name "\$$,-install_name "${PREFIX}/lib/\$$,g' | | 69 | SUBST_SED.darwin+= -e 's,-install_name "\$$,-install_name "${PREFIX}/lib/\$$,g' |
70 | | | 70 | |
71 | # On SunOS, extract using pkgsrc nbtar to avoid warnings from native gtar. | | 71 | # On SunOS, extract using pkgsrc nbtar to avoid warnings from native gtar. |
72 | . if ${OPSYS} == "SunOS" | | 72 | . if ${OPSYS} == "SunOS" |
73 | TOOLS_PLATFORM.tar= #empty | | 73 | TOOLS_PLATFORM.tar= #empty |
74 | BUILDLINK_TRANSFORM+= opt:-D_XOPEN_SOURCE=500:-D_XOPEN_SOURCE=600 | | 74 | BUILDLINK_TRANSFORM+= opt:-D_XOPEN_SOURCE=500:-D_XOPEN_SOURCE=600 |
75 | . endif | | 75 | . endif |
76 | | | 76 | |
77 | . if ${OPSYS} == "Darwin" | | 77 | . if ${OPSYS} == "Darwin" |
78 | # Prevent using a pkgsrc libtool in OS X because the darwin toolset needs | | 78 | # Prevent using a pkgsrc libtool in OS X because the darwin toolset needs |
79 | # the native libtool from /Developer/usr/bin or /usr/bin. | | 79 | # the native libtool from /Developer/usr/bin or /usr/bin. |
80 | post-wrapper: | | 80 | 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 | ${XARGS} ${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 | # Generate a new user.hpp or use the installed one, depending on the package |
95 | # we are building. | | 95 | # we are building. |
96 | . if ${BOOST_CONFIG} == "installed" | | 96 | . if ${BOOST_CONFIG} == "installed" |
97 | . include "../../devel/boost-headers/buildlink3.mk" | | 97 | . include "../../devel/boost-headers/buildlink3.mk" |
98 | do-configure: | | 98 | do-configure: |
99 | ${CP} -f \ | | 99 | ${CP} -f \ |
100 | ${BUILDLINK_PREFIX.boost-headers}/include/boost/config/user.hpp \ | | 100 | ${BUILDLINK_PREFIX.boost-headers}/include/boost/config/user.hpp \ |
101 | ${WRKSRC}/boost/config/user.hpp | | 101 | ${WRKSRC}/boost/config/user.hpp |
102 | . elif ${BOOST_CONFIG} == "generate" | | 102 | . elif ${BOOST_CONFIG} == "generate" |
103 | do-configure: | | 103 | do-configure: |
104 | cd ${WRKSRC}/libs/config && \ | | 104 | cd ${WRKSRC}/libs/config && \ |
105 | ${SETENV} ${CONFIGURE_ENV} ${SH} ./configure | | 105 | ${SETENV} ${CONFIGURE_ENV} ${SH} ./configure |
106 | ${CP} -f ${WRKSRC}/libs/config/user.hpp ${WRKSRC}/boost/config/user.hpp | | 106 | ${CP} -f ${WRKSRC}/libs/config/user.hpp ${WRKSRC}/boost/config/user.hpp |
107 | . endif | | 107 | . endif |
108 | | | 108 | |
109 | boost-install-libs: | | 109 | boost-install-libs: |
110 | ${INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/lib | | 110 | ${INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/lib |
111 | cd ${WRKSRC}/stage/lib && pax -rw -p p libboost* ${DESTDIR}${PREFIX}/lib | | 111 | cd ${WRKSRC}/stage/lib && pax -rw -p p libboost* ${DESTDIR}${PREFIX}/lib |
112 | | | 112 | |
113 | .endif # ${BOOST_PACKAGE} == "meta-pkg" | | 113 | .endif # ${BOOST_PACKAGE} == "meta-pkg" |