2012-12-19 00:09:07 +01:00
|
|
|
# Created by: Alexander Churanov <churanov.port.maintainer@gmail.com>
|
2009-07-28 13:45:08 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= boost-libs
|
|
|
|
COMMENT= Free portable C++ libraries (without Boost.Python)
|
|
|
|
|
2014-09-26 15:48:27 +02:00
|
|
|
PORTREVISION= 4
|
2014-04-08 09:36:00 +02:00
|
|
|
|
2009-07-28 13:45:08 +02:00
|
|
|
BUILD_DEPENDS+= bjam:${PORTSDIR}/devel/boost-jam
|
|
|
|
|
2013-02-01 20:44:28 +01:00
|
|
|
OPTIONS_DEFINE= VERBOSE_BUILD DEBUG ICU OPTIMIZED_CFLAGS
|
2013-01-31 14:33:04 +01:00
|
|
|
OPTIONS_DEFAULT= ICU
|
|
|
|
VERBOSE_BUILD_DESC= Show compiler messages
|
|
|
|
ICU_DESC= Boost.Regex with ICU unicode support
|
2009-07-28 13:45:08 +02:00
|
|
|
|
2013-01-31 14:33:04 +01:00
|
|
|
.include "${.CURDIR}/../boost-all/common.mk"
|
2009-07-28 13:45:08 +02:00
|
|
|
|
2013-01-31 14:33:04 +01:00
|
|
|
.include "${.CURDIR}/../boost-all/compiled.mk"
|
2009-07-28 13:45:08 +02:00
|
|
|
|
2013-01-31 14:33:04 +01:00
|
|
|
BJAM_ARGS+= --without-python
|
2014-04-03 19:25:22 +02:00
|
|
|
.if defined(X_BUILD_FOR)
|
|
|
|
BJAM_ARGS+= --without-context --without-coroutine \
|
|
|
|
--without-locale --without-log
|
2014-04-03 23:26:54 +02:00
|
|
|
PLIST_SUB+= COROUTINE="@comment " CONTEXT="@comment " \
|
2014-04-03 19:25:22 +02:00
|
|
|
LOCALE="@comment " LOG="@comment "
|
|
|
|
.else
|
2014-04-03 23:26:54 +02:00
|
|
|
PLIST_SUB+= COROUTINE="" CONTEXT="" LOCALE="" LOG=""
|
2014-04-03 19:25:22 +02:00
|
|
|
.endif
|
2013-01-31 14:33:04 +01:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MICU}
|
2014-02-07 12:43:02 +01:00
|
|
|
LIB_DEPENDS+= libicuuc.so:${PORTSDIR}/devel/icu
|
2013-01-31 14:33:04 +01:00
|
|
|
BJAM_ARGS+= -sICU_PATH=${LOCALBASE}
|
2012-07-13 22:09:11 +02:00
|
|
|
.else
|
2013-04-27 10:50:46 +02:00
|
|
|
USES+= iconv
|
2013-01-31 14:33:04 +01:00
|
|
|
BJAM_ARGS+= -sICONV_PATH=${LOCALBASE}
|
2009-07-28 13:45:08 +02:00
|
|
|
.endif
|
|
|
|
|
2011-07-16 07:23:25 +02:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on sparc64: invokes i386 assembler
|
|
|
|
.endif
|
|
|
|
|
2009-07-28 13:45:08 +02:00
|
|
|
do-build:
|
2013-01-31 14:33:04 +01:00
|
|
|
@cd ${WRKSRC} && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${BJAM} ${BJAM_ARGS} stage
|
2014-02-07 12:43:02 +01:00
|
|
|
#Compatibility layer to avoid rebuilding everything this time
|
2013-01-31 14:33:04 +01:00
|
|
|
@cd ${WRKSRC}/stage/lib && \
|
2014-02-07 12:43:02 +01:00
|
|
|
( for l in lib*.so.*; do ${LN} -sf $${l} $${l%.${PORTVERSION}}.5; done )
|
2009-07-28 13:45:08 +02:00
|
|
|
|
|
|
|
do-install:
|
2013-01-31 14:33:04 +01:00
|
|
|
@cd ${WRKSRC} && \
|
2014-08-15 20:36:07 +02:00
|
|
|
${SETENV} ${MAKE_ENV} ${BJAM} --prefix=${STAGEDIR}${PREFIX} ${BJAM_ARGS} install
|
2013-01-31 14:33:04 +01:00
|
|
|
# For some reasons BJAM forget about the links
|
2014-02-07 12:43:02 +01:00
|
|
|
@cd ${WRKSRC}/stage/ && ${FIND} lib -type l | ${PAX} -rw -p p ${STAGEDIR}${PREFIX}
|
2009-07-28 13:45:08 +02:00
|
|
|
|
|
|
|
# display pkg-message
|
|
|
|
post-install:
|
|
|
|
@${TOUCH} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
@${CAT} ${PKG_MESSAGE_FILE_THREADS} >> ${PKGMESSAGE}
|
|
|
|
@${ECHO_CMD} >> ${PKGMESSAGE}
|
|
|
|
|
2014-06-13 22:31:50 +02:00
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
|
|
|
|
|
2009-07-28 13:45:08 +02:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
|
|
|
|
-e "s|%%PYTHON_INCLUDEDIR%%|${PYTHON_INCLUDEDIR}|g" \
|
|
|
|
-e "s|%%PYTHON_LIBDIR%%|${PYTHON_LIBDIR}|g" \
|
|
|
|
-e "s|%%PYTHON_VERSION%%|${PYTHON_VERSION}|g" ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|