summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/libc++/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/devel/libc++/Makefile b/devel/libc++/Makefile
index f79203054540..2b4974eec8b7 100644
--- a/devel/libc++/Makefile
+++ b/devel/libc++/Makefile
@@ -18,22 +18,21 @@ LICENSE_GROUP= MIT UIUC
LICENSE_NAME_UIUC= University of Illinois/NCSA Open Source License
LICENSE_PERMS_UIUC= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
-LIB_DEPENDS= libcxxrt.so:${PORTSDIR}/devel/libcxxrt
-
USES+= cmake:outsource compiler:c++11-lang
USE_LDCONFIG= yes
LDFLAGS+= -L${LOCALBASE}/lib
-.include <bsd.port.options.mk>
-
.if exists(/usr/lib/libcxxrt.so)
CXXRT_INCS= /usr/include/c++/v1/
CXXRT_LIB= /usr/lib/libcxxrt.so
.else
CXXRT_INCS= ${LOCALBASE}/include/cxxrt/
CXXRT_LIB= ${LOCALBASE}/lib/libcxxrt.so
+LIB_DEPENDS+= libcxxrt.so:${PORTSDIR}/devel/libcxxrt
.endif
+.include <bsd.port.options.mk>
+
CMAKE_ARGS= -DLIBCXX_CXX_ABI=libcxxrt -DLIBCXX_LIBCXXRT_INCLUDE_PATHS=${CXXRT_INCS}
.if !defined(SVN_REV)