Changeset View
Changeset View
Standalone View
Standalone View
head/devel/libdispatch/Makefile
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | |||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.if (${OSVERSION} < 1000024) | .if (${OSVERSION} < 1000024) | ||||
OPTIONS_DEFINE= CLANG | OPTIONS_DEFINE= CLANG | ||||
OPTIONS_DEFAULT= CLANG | OPTIONS_DEFAULT= CLANG | ||||
CLANG_DESC= Build with LLVM/Clang (required for blocks support) | CLANG_DESC= Build with LLVM/Clang (required for blocks support) | ||||
.endif | .endif | ||||
.if ((${OSVERSION} > 900000) && (${OSVERSION} < 1000706)) | .if (${OSVERSION} < 1000706) | ||||
.if ${ARCH} == "powerpc | .if ${ARCH} == "powerpc | ||||
BROKEN= Does not configure on powerpc-9 | BROKEN= Does not configure on powerpc-9 | ||||
.elif ${ARCH} == "sparc64 | .elif ${ARCH} == "sparc64 | ||||
BROKEN= Does not link on sparc64-9 | BROKEN= Does not link on sparc64-9 | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MCLANG} | .if ${PORT_OPTIONS:MCLANG} | ||||
. if ${OSVERSION} < 900024 | |||||
BUILD_DEPENDS+= clang33:${PORTSDIR}/lang/clang33 \ | |||||
${LOCALBASE}/lib/libBlocksRuntime.so:${PORTSDIR}/devel/compiler-rt | |||||
RUN_DEPENDS+= clang33:${PORTSDIR}/lang/clang33 \ | |||||
${LOCALBASE}/lib/libBlocksRuntime.so:${PORTSDIR}/devel/compiler-rt | |||||
CONFIGURE_ARGS+= --with-blocks-runtime=${LOCALBASE}/lib | |||||
CONFIGURE_ENV+= CC="${LOCALBASE}/bin/clang33" CPPFLAGS="-I${LOCALBASE}/include" | |||||
. else | |||||
CONFIGURE_ARGS+= --with-blocks-runtime=/usr/lib | CONFIGURE_ARGS+= --with-blocks-runtime=/usr/lib | ||||
CONFIGURE_ENV+= CC="/usr/bin/clang" | CONFIGURE_ENV+= CC="/usr/bin/clang" | ||||
. endif | |||||
.endif | .endif | ||||
# | # | ||||
# Get rid of .la and static library files | # Get rid of .la and static library files | ||||
# | # | ||||
post-configure: | post-configure: | ||||
@${REINPLACE_CMD} -E -e \ | @${REINPLACE_CMD} -E -e \ | ||||
'/Install the pseudo-library/,/staticlibs=/s,^,#,' ${WRKSRC}/libtool | '/Install the pseudo-library/,/staticlibs=/s,^,#,' ${WRKSRC}/libtool | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |