Annotation of pkgsrc/meta-pkgs/boost/Makefile.common, Revision 1.38
1.38 ! martin 1: # $NetBSD: Makefile.common,v 1.37 2012/11/07 21:04:11 adam Exp $
1.24 adam 2: #
3: # used by devel/boost-build/Makefile
4: # used by devel/boost-docs/Makefile
5: # used by devel/boost-jam/Makefile
6: # used by devel/boost-headers/Makefile
7: # used by devel/boost-libs/Makefile
8: # used by devel/boost-python/Makefile
1.1 jmmv 9:
10: BOOST_PACKAGE?= undefined
11: BOOST_COMMENT?= undefined
1.37 adam 12: BOOST_VERSION= 1.52.0
1.7 tv 13: BOOST_SHORT_VERSION= ${BOOST_VERSION:S/./_/:C/\..*$//}
1.1 jmmv 14:
15: DISTNAME= boost_${BOOST_VERSION:S/./_/g}
16: CATEGORIES= devel
17:
18: .if ${BOOST_PACKAGE} == "meta-pkg"
1.30 adam 19: PKGNAME= boost-${BOOST_VERSION}
1.1 jmmv 20: .else # ${BOOST_PACKAGE} != "meta-pkg"
1.30 adam 21: PKGNAME= boost-${BOOST_PACKAGE}-${BOOST_VERSION}
1.38 ! martin 22: PKGREVISION= 1
1.1 jmmv 23:
1.30 adam 24: MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=boost/}
25: EXTRACT_SUFX= .tar.bz2
1.1 jmmv 26:
1.30 adam 27: MAINTAINER= jmmv@NetBSD.org
28: HOMEPAGE= http://www.boost.org/
29: COMMENT= Free, peer-reviewed portable C++ source libraries ${BOOST_COMMENT}
30: LICENSE= boost-license
1.1 jmmv 31:
1.15 jmmv 32: CONFLICTS+= boost<1.36.0
1.2 jmmv 33:
1.1 jmmv 34: DISTINFO_FILE= ${.CURDIR}/../../meta-pkgs/boost/distinfo
35: PATCHDIR= ${.CURDIR}/../../meta-pkgs/boost/patches
36:
1.14 joerg 37: USE_TOOLS+= pax
1.10 wiz 38: USE_LANGUAGES= c c++
1.1 jmmv 39: GCC_REQD+= 3.2 # if using gcc; ignored otherwise
40:
1.20 adam 41: PLIST_SUBST+= BOOST_VERSION="${BOOST_VERSION}"
42:
1.25 adam 43: SUBST_CLASSES+= prefix
44: SUBST_STAGE.prefix= pre-configure
45: SUBST_MESSAGE.prefix= Fixing prefix.
1.30 adam 46: SUBST_FILES.prefix= boostcpp.jam
1.25 adam 47: SUBST_VARS.prefix= PREFIX
48:
49: SUBST_CLASSES+= darwin
50: SUBST_STAGE.darwin= pre-configure
51: SUBST_MESSAGE.darwin= Fixing install_name for Darwin.
52: SUBST_FILES.darwin= tools/build/v2/tools/*darwin.jam
53: SUBST_SED.darwin= -e 's,-install_name ",-install_name "${PREFIX}/lib/,g'
1.15 jmmv 54:
55: .include "../../mk/bsd.prefs.mk"
56:
1.31 hans 57: # On SunOS, extract using pkgsrc nbtar to avoid warnings from native gtar.
58: .if ${OPSYS} == "SunOS"
59: TOOLS_PLATFORM.tar= #empty
60: .endif
61:
1.15 jmmv 62: .if ${OPSYS} == "Darwin"
63: # Prevent using a pkgsrc libtool in OS X because the darwin toolset needs
1.29 adam 64: # the native libtool from /Developer/usr/bin or /usr/bin.
1.15 jmmv 65: post-wrapper:
1.29 adam 66: . if exists(/Developer/usr/bin/libtool)
67: ln -s /Developer/usr/bin/libtool ${WRAPPER_BINDIR}/libtool
68: . else
1.19 adam 69: ln -s /usr/bin/libtool ${WRAPPER_BINDIR}/libtool
1.29 adam 70: . endif
1.15 jmmv 71: .endif
72:
1.30 adam 73: # We can't do this at post-extract because the extract cookie will get a future
74: # timestamp than the sources. If this happens, print-PLIST does not work.
1.1 jmmv 75: pre-configure:
1.19 adam 76: cd ${WRKSRC} && ${FIND} . -type f -print | ${XARGS} ${TOUCH}
1.1 jmmv 77:
1.30 adam 78: # Generate a new user.hpp or use the installed one, depending on the package
79: # we are building.
1.1 jmmv 80: .if ${BOOST_CONFIG} == "installed"
81: . include "../../devel/boost-headers/buildlink3.mk"
82: do-configure:
83: ${CP} -f \
84: ${BUILDLINK_PREFIX.boost-headers}/include/boost/config/user.hpp \
85: ${WRKSRC}/boost/config/user.hpp
86: .elif ${BOOST_CONFIG} == "generate"
87: do-configure:
1.19 adam 88: cd ${WRKSRC}/libs/config && \
1.1 jmmv 89: ${SETENV} ${CONFIGURE_ENV} ${SH} ./configure
90: ${CP} -f ${WRKSRC}/libs/config/user.hpp ${WRKSRC}/boost/config/user.hpp
91: .endif
92:
93: boost-install-libs:
1.35 fhajny 94: ${INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/lib
1.14 joerg 95: cd ${WRKSRC}/stage/lib && pax -rw -p p libboost* ${DESTDIR}${PREFIX}/lib
1.1 jmmv 96:
97: .endif # ${BOOST_PACKAGE} == "meta-pkg"
CVSweb <webmaster@jp.NetBSD.org>