diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2013-08-24 14:05:17 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2013-08-24 14:05:17 +0000 |
commit | d99bb55102ff076f20f3aeb4201c6b01f4bd2fc9 (patch) | |
tree | 47cbd1a23838402be51cce035fd803074de08066 | |
parent | ff9554e2a558cf5d96b61be6246b8cdb14896e39 (diff) | |
download | ports-d99bb55102ff076f20f3aeb4201c6b01f4bd2fc9.tar.gz ports-d99bb55102ff076f20f3aeb4201c6b01f4bd2fc9.zip |
Notes
-rw-r--r-- | devel/llvm-devel/Makefile | 30 | ||||
-rw-r--r-- | devel/llvm-devel/pkg-plist | 16 |
2 files changed, 16 insertions, 30 deletions
diff --git a/devel/llvm-devel/Makefile b/devel/llvm-devel/Makefile index 3d10ab8061e2..b77022113dba 100644 --- a/devel/llvm-devel/Makefile +++ b/devel/llvm-devel/Makefile @@ -7,7 +7,7 @@ PORTNAME= llvm DISTVERSION= 3.4.r${SVN_REV} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel lang MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= brooks @@ -16,11 +16,6 @@ PKGNAMESUFFIX= -devel MAINTAINER= brooks@FreeBSD.org COMMENT= Low Level Virtual Machine -BUILD_DEPENDS+= cmake:${PORTSDIR}/devel/cmake -.if defined(PACKAGE_BUILDING) -BUILD_DEPENDS+= bash:${PORTSDIR}/shells/bash -.endif - CONFLICTS= llvm-2* llvm-3.[012]* llvm31-[3]* GNU_CONFIGURE= yes @@ -37,14 +32,14 @@ LIBNAME= libLLVM-${DISTVERSION:C/\.r[0-9]*//}svn.so CONFIGURE_ARGS+= --enable-bindings=none CONFIGURE_ARGS+= --enable-optimized -CONFIGURE_ARGS+= --program-suffix=${DISTVERSION:C/\.r[0-9]*//}svn -OPTIONS_DEFINE= ASSERTS DOCS LTOPLUGIN MANPAGES +OPTIONS_DEFINE= ASSERTS CMAKE DOCS LTOPLUGIN MANPAGES ASSERTS_DESC= Enable assertions (thread unsafe) +CMAKE_DESC= Build cmake support files LTOPLUGIN_DESC= Build LTO plugin (requires gold) -OPTIONS_DEFAULT= MANPAGES +OPTIONS_DEFAULT= CMAKE MANPAGES LLVM_RELEASE= ${PORTVERSION:C/\.r[0-9]*//} PLIST_SUB+= LLVM_RELEASE=${LLVM_RELEASE} @@ -57,6 +52,11 @@ CONFIGURE_ARGS+= --enable-assertions CONFIGURE_ARGS+= --disable-assertions .endif +.if ${PORT_OPTIONS:MCMAKE} +BUILD_DEPENDS+= cmake:${PORTSDIR}/devel/cmake +PORTDATA+= cmake +.endif + .if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MMANPAGES} BUILD_DEPENDS+= sphinx-build:${PORTSDIR}/textproc/py-sphinx .endif @@ -126,12 +126,14 @@ post-patch: ${REINPLACE_CMD} -e 's|\(PROJ_mandir.*:=\).*$$|\1${MANPREFIX}/man|g' \ ${WRKSRC}/Makefile.config.in +.if ${PORT_OPTIONS:MCMAKE} post-configure: ${MKDIR} ${WRKDIR}/cmake cd ${WRKDIR}/cmake && cmake -G "Unix Makefiles" ${WRKSRC} ${REINPLACE_CMD} -e 's|${WRKDIR}/cmake|${PREFIX}|' \ -e 's|${WRKSRC}|${DATADIR}|' \ ${WRKDIR}/cmake/share/llvm/cmake/LLVMConfig.cmake +.endif post-build: .if ${PORT_OPTIONS:MMANPAGES} @@ -143,16 +145,18 @@ post-build: post-install: ${MV} ${PREFIX}/lib/${LIBNAME} ${PREFIX}/lib/${LIBNAME}.0 - ${LN} -s ${LIBNAME}.0 ${PREFIX}/lib/${LIBNAME} + ${LN} -sf ${LIBNAME}.0 ${PREFIX}/lib/${LIBNAME} ${INSTALL_SCRIPT} ${WRKSRC}/utils/lit/lit.py ${PREFIX}/bin/lit - ${LN} -s lit ${PREFIX}/bin/llvm-lit + ${LN} -sf lit ${PREFIX}/bin/llvm-lit ${MKDIR} ${PYTHON_SITELIBDIR}/lit ${INSTALL_DATA} ${WRKSRC}/utils/lit/lit/*.py ${PYTHON_SITELIBDIR}/lit ${INSTALL_PROGRAM} ${WRKSRC}/Release/bin/FileCheck ${PREFIX}/bin/ +.if ${PORT_OPTIONS:MCMAKE} ${MKDIR} ${DATADIR}/cmake ${INSTALL_DATA} ${WRKSRC}/cmake/modules/*.cmake ${DATADIR}/cmake/ ${INSTALL_DATA} ${WRKDIR}/cmake/share/llvm/cmake/*.cmake \ ${DATADIR}/cmake/ +.endif .if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR}/html ${FIND} ${WRKSRC}/docs/_build/html -type f | \ @@ -188,15 +192,13 @@ PLIST_FILE_LIST= bin/FileCheck \ lib/libprofile_rt.so PLIST_DIR_LIST= include/llvm-c \ include/llvm \ - ${PYTHON_SITELIBDIR:S;${PYTHONBASE}/;;}/lit \ - ${DATADIR_REL} + ${PYTHON_SITELIBDIR:S;${PYTHONBASE}/;;}/lit build-plist: ${RM} -f ${PLIST} cd ${PREFIX} && \ (ls ${PLIST_FILE_LIST}; \ ${FIND} ${PLIST_DIR_LIST} -type f -o -type l) | \ ${SED} -e 's|${LLVM_RELEASE}|%%LLVM_RELEASE%%|' \ - -e 's|${DATADIR_REL}|%%DATADIR%%|' \ -e 's|${PYTHON_SITELIBDIR:S;${PYTHONBASE}/;;}|%%PYTHON_SITELIBDIR%%|' | \ ${SORT} >> ${PLIST} ${FIND} ${DOCSDIR} -type f | \ diff --git a/devel/llvm-devel/pkg-plist b/devel/llvm-devel/pkg-plist index ede9cafd7584..f665f9dd3745 100644 --- a/devel/llvm-devel/pkg-plist +++ b/devel/llvm-devel/pkg-plist @@ -1,17 +1,3 @@ -%%DATADIR%%/cmake/AddLLVM.cmake -%%DATADIR%%/cmake/AddLLVMDefinitions.cmake -%%DATADIR%%/cmake/CheckAtomic.cmake -%%DATADIR%%/cmake/ChooseMSVCCRT.cmake -%%DATADIR%%/cmake/GetHostTriple.cmake -%%DATADIR%%/cmake/GetSVN.cmake -%%DATADIR%%/cmake/HandleLLVMOptions.cmake -%%DATADIR%%/cmake/LLVM-Config.cmake -%%DATADIR%%/cmake/LLVMConfig.cmake -%%DATADIR%%/cmake/LLVMConfigVersion.cmake -%%DATADIR%%/cmake/LLVMParseArguments.cmake -%%DATADIR%%/cmake/LLVMProcessSources.cmake -%%DATADIR%%/cmake/TableGen.cmake -%%DATADIR%%/cmake/VersionFromVCS.cmake %%PYTHON_SITELIBDIR%%/lit/LitConfig.py %%PYTHON_SITELIBDIR%%/lit/LitTestCase.py %%PYTHON_SITELIBDIR%%/lit/ProgressBar.py @@ -950,8 +936,6 @@ lib/libprofile_rt.so %%PORTDOCS%%%%DOCSDIR%%/html/websupport.js %%PORTDOCS%%%%DOCSDIR%%/html/yaml2obj.html %%PORTDOCS%%%%DOCSDIR%%/html/yaml2obj.txt -@dirrm share/llvm/cmake -@dirrm share/llvm @dirrm include/llvm/Transforms/Utils @dirrm include/llvm/Transforms/IPO @dirrm include/llvm/Transforms |