aboutsummaryrefslogtreecommitdiffstats
path: root/devel/boost-libs/Makefile
blob: 129d0211ef6e8e3cabbeb3530d02efa48877741c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Created by: Alexander Churanov <churanov.port.maintainer@gmail.com>
# $FreeBSD$

PORTNAME=   boost-libs
COMMENT=    Free portable C++ libraries (without Boost.Python)

PORTREVISION=   2

BUILD_DEPENDS+= bjam:${PORTSDIR}/devel/boost-jam

OPTIONS_DEFINE= VERBOSE_BUILD DEBUG ICU OPTIMIZED_CFLAGS
OPTIONS_DEFAULT=    ICU
VERBOSE_BUILD_DESC= Show compiler messages
ICU_DESC=       Boost.Regex with ICU unicode support

.include "${.CURDIR}/../boost-all/common.mk"

.include <bsd.port.pre.mk>
.include "${.CURDIR}/../boost-all/compiled.mk"

BJAM_ARGS+= --without-python

.if ${PORT_OPTIONS:MICU}
LIB_DEPENDS+=   icuuc:${PORTSDIR}/devel/icu
BJAM_ARGS+= -sICU_PATH=${LOCALBASE}
.else
USES+=      iconv
BJAM_ARGS+= -sICONV_PATH=${LOCALBASE}
.endif

.if ${ARCH} == "sparc64"
BROKEN=     Does not compile on sparc64: invokes i386 assembler
.endif

do-build:
    @cd ${WRKSRC} && \
        ${SETENV} ${MAKE_ENV} ${BJAM} ${BJAM_ARGS} stage
    @cd ${WRKSRC}/stage/lib && \
        ( for l in lib*.so.*; do ${LN} -sf $${l} $${l%.*}; done )

do-install:
    @cd ${WRKSRC} && \
        ${SETENT} ${MAKE_ENV} ${BJAM} ${BJAM_ARGS} install
# For some reasons BJAM forget about the links
    @cd ${WRKSRC}/stage/ && ${FIND} lib -type l | ${PAX} -rw -p p ${PREFIX}

# display pkg-message
post-install:
    @${TOUCH} ${PKGMESSAGE}

    @${CAT} ${PKG_MESSAGE_FILE_THREADS} >> ${PKGMESSAGE}
    @${ECHO_CMD} >> ${PKGMESSAGE}

    @${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}

    @if [ -s ${PKGMESSAGE} ]; then \
    ${CAT} ${PKGMESSAGE}; \
    fi

.include <bsd.port.post.mk>