Sun Mar 29 05:34:36 2020 UTC ()
meta-pkgs/boost/Makefile.common: define some variable first

Define USE_TOOLS and USE_LANGUAGES before including <bsd.prefs.mk>.


(taca)
diff -r1.85 -r1.86 pkgsrc/meta-pkgs/boost/Makefile.common

cvs diff -r1.85 -r1.86 pkgsrc/meta-pkgs/boost/Makefile.common (expand / switch to unified diff)

--- pkgsrc/meta-pkgs/boost/Makefile.common 2020/03/17 03:48:24 1.85
+++ pkgsrc/meta-pkgs/boost/Makefile.common 2020/03/29 05:34:36 1.86
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile.common,v 1.85 2020/03/17 03:48:24 rillig Exp $ 1# $NetBSD: Makefile.common,v 1.86 2020/03/29 05:34:36 taca 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
11BOOST_PACKAGE?= undefined 11BOOST_PACKAGE?= undefined
12BOOST_COMMENT?= undefined 12BOOST_COMMENT?= undefined
13BOOST_VERSION= 1.72.0 13BOOST_VERSION= 1.72.0
14BOOST_SHORT_VERSION= ${BOOST_VERSION:S/./_/:C/\..*$//} 14BOOST_SHORT_VERSION= ${BOOST_VERSION:S/./_/:C/\..*$//}
@@ -26,31 +26,31 @@ PKGNAME= boost-${BOOST_PACKAGE}-${BOOST_ @@ -26,31 +26,31 @@ PKGNAME= boost-${BOOST_PACKAGE}-${BOOST_
26MASTER_SITES= https://dl.bintray.com/boostorg/release/${BOOST_VERSION}/source/ 26MASTER_SITES= https://dl.bintray.com/boostorg/release/${BOOST_VERSION}/source/
27EXTRACT_SUFX= .tar.bz2 27EXTRACT_SUFX= .tar.bz2
28 28
29MAINTAINER= pkgsrc-users@NetBSD.org 29MAINTAINER= pkgsrc-users@NetBSD.org
30HOMEPAGE= https://www.boost.org/ 30HOMEPAGE= https://www.boost.org/
31COMMENT= Free, peer-reviewed portable C++ source libraries ${BOOST_COMMENT} 31COMMENT= Free, peer-reviewed portable C++ source libraries ${BOOST_COMMENT}
32LICENSE= boost-license 32LICENSE= boost-license
33 33
34CONFLICTS+= boost<1.36.0 34CONFLICTS+= boost<1.36.0
35 35
36DISTINFO_FILE= ${.CURDIR}/../../meta-pkgs/boost/distinfo 36DISTINFO_FILE= ${.CURDIR}/../../meta-pkgs/boost/distinfo
37PATCHDIR= ${.CURDIR}/../../meta-pkgs/boost/patches 37PATCHDIR= ${.CURDIR}/../../meta-pkgs/boost/patches
38 38
39.include "../../mk/bsd.prefs.mk" 
40 
41USE_TOOLS+= pax 39USE_TOOLS+= pax
42USE_LANGUAGES= c c++ 40USE_LANGUAGES= c c++
43 41
 42.include "../../mk/bsd.prefs.mk"
 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"
48GCC_REQD+= 4.6 48GCC_REQD+= 4.6
49. endif 49. endif
50. elif ${LOWER_VENDOR} == "redhat" 50. elif ${LOWER_VENDOR} == "redhat"
51GCC_REQD+= 4.4 51GCC_REQD+= 4.4
52. else 52. else
53GCC_REQD+= 4.5 53GCC_REQD+= 4.5
54. endif 54. endif
55 55
56PLIST_SUBST+= BOOST_VERSION="${BOOST_VERSION}" 56PLIST_SUBST+= BOOST_VERSION="${BOOST_VERSION}"