Changeset View
Changeset View
Standalone View
Standalone View
devel/boost-libs/Makefile
# Created by: Alexander Churanov <churanov.port.maintainer@gmail.com> | # Created by: Alexander Churanov <churanov.port.maintainer@gmail.com> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= boost-libs | PORTNAME= boost-libs | ||||
COMMENT= Free portable C++ libraries (without Boost.Python) | COMMENT= Free portable C++ libraries (without Boost.Python) | ||||
PORTREVISION= 8 | PORTREVISION= 8 | ||||
BUILD_DEPENDS+= bjam:${PORTSDIR}/devel/boost-jam | BUILD_DEPENDS+= bjam:${PORTSDIR}/devel/boost-jam | ||||
OPTIONS_DEFINE= VERBOSE_BUILD DEBUG ICU OPTIMIZED_CFLAGS | OPTIONS_DEFINE= VERBOSE_BUILD DEBUG ICU OPTIMIZED_CFLAGS | ||||
OPTIONS_DEFAULT= ICU | OPTIONS_DEFAULT= ICU | ||||
VERBOSE_BUILD_DESC= Show compiler messages | VERBOSE_BUILD_DESC= Show compiler messages | ||||
ICU_DESC= Boost.Regex with ICU unicode support | ICU_DESC= Boost.Regex with ICU unicode support | ||||
ICU_LIB_DEPENDS= libicuuc.so:${PORTSDIR}/devel/icu | ICU_LIB_DEPENDS= libicuuc.so:${PORTSDIR}/devel/icu | ||||
ICU_VARS= BJAM_ARGS+=-sICU_PATH=${LOCALBASE} | |||||
ICU_USES_OFF= iconv | ICU_USES_OFF= iconv | ||||
ICU_VARS_OFF= BJAM_ARGS+=-sICONV_PATH=${ICONV_PREFIX} | |||||
.include "${.CURDIR}/../boost-all/common.mk" | .include "${.CURDIR}/../boost-all/common.mk" | ||||
.include "${.CURDIR}/../boost-all/compiled.mk" | .include "${.CURDIR}/../boost-all/compiled.mk" | ||||
BJAM_ARGS+= --without-python | BJAM_ARGS+= --without-python | ||||
.if defined(X_BUILD_FOR) | .if defined(X_BUILD_FOR) | ||||
BJAM_ARGS+= --without-context --without-coroutine \ | BJAM_ARGS+= --without-context --without-coroutine \ | ||||
--without-locale --without-log | --without-locale --without-log | ||||
PLIST_SUB+= COROUTINE="@comment " CONTEXT="@comment " \ | PLIST_SUB+= COROUTINE="@comment " CONTEXT="@comment " \ | ||||
LOCALE="@comment " LOG="@comment " | LOCALE="@comment " LOG="@comment " | ||||
.else | .else | ||||
PLIST_SUB+= COROUTINE="" CONTEXT="" LOCALE="" LOG="" | PLIST_SUB+= COROUTINE="" CONTEXT="" LOCALE="" LOG="" | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MICU} | |||||
BJAM_ARGS+= -sICU_PATH=${LOCALBASE} | |||||
.else | |||||
BJAM_ARGS+= -sICONV_PATH=${ICONV_PREFIX} | |||||
.endif | |||||
do-build: | do-build: | ||||
@cd ${WRKSRC} && \ | @cd ${WRKSRC} && \ | ||||
${SETENV} ${MAKE_ENV} ${BJAM} ${BJAM_ARGS} stage | ${SETENV} ${MAKE_ENV} ${BJAM} ${BJAM_ARGS} stage | ||||
#Compatibility layer to avoid rebuilding everything this time | #Compatibility layer to avoid rebuilding everything this time | ||||
@cd ${WRKSRC}/stage/lib && \ | @cd ${WRKSRC}/stage/lib && \ | ||||
( for l in lib*.so.*; do ${LN} -sf $${l} $${l%.${PORTVERSION}}.5; done ) | ( for l in lib*.so.*; do ${LN} -sf $${l} $${l%.${PORTVERSION}}.5; done ) | ||||
do-install: | do-install: | ||||
Show All 12 Lines | post-install: | ||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so | @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so | ||||
@${REINPLACE_CMD} \ | @${REINPLACE_CMD} \ | ||||
-e "s|%%LOCALBASE%%|${LOCALBASE}|g" \ | -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \ | ||||
-e "s|%%PYTHON_INCLUDEDIR%%|${PYTHON_INCLUDEDIR}|g" \ | -e "s|%%PYTHON_INCLUDEDIR%%|${PYTHON_INCLUDEDIR}|g" \ | ||||
-e "s|%%PYTHON_LIBDIR%%|${PYTHON_LIBDIR}|g" \ | -e "s|%%PYTHON_LIBDIR%%|${PYTHON_LIBDIR}|g" \ | ||||
-e "s|%%PYTHON_VERSION%%|${PYTHON_VERSION}|g" ${PKGMESSAGE} | -e "s|%%PYTHON_VERSION%%|${PYTHON_VERSION}|g" ${PKGMESSAGE} | ||||
.include <bsd.port.post.mk> | .include <bsd.port.mk> |