diff --git a/devel/llbuild/Makefile b/devel/llbuild/Makefile index 2d3579b82fb5..ba3077f90cd8 100644 --- a/devel/llbuild/Makefile +++ b/devel/llbuild/Makefile @@ -1,33 +1,34 @@ PORTNAME= llbuild DISTVERSIONPREFIX= swift-DEVELOPMENT- DISTVERSION= SNAPSHOT-2017-12-10 DISTVERSIONSUFFIX= -a +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= jonathan@FreeBSD.org COMMENT= Low-level build system, used by the Swift Package Manager WWW= https://github.com/apple/swift-llbuild LICENSE= APACHE20 BSD3CLAUSE NCSA LICENSE_COMB= multi LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.txt LIB_DEPENDS= libsqlite3.so:databases/sqlite3 -USES= cmake sbrk +USES= cmake USE_GITHUB= yes GH_ACCOUNT= apple GH_PROJECT= swift-llbuild USE_LDCONFIG= yes OPTIONS_DEFINE= DOCS PORTDOCS= CONTRIBUTING.md README.md post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .include diff --git a/devel/llbuild/files/patch-include_llvm_Config_config.h b/devel/llbuild/files/patch-include_llvm_Config_config.h new file mode 100644 index 000000000000..69c099d808c9 --- /dev/null +++ b/devel/llbuild/files/patch-include_llvm_Config_config.h @@ -0,0 +1,23 @@ +--- include/llvm/Config/config.h.orig ++++ include/llvm/Config/config.h +@@ -117,17 +117,17 @@ + #define HAVE_MALLOC_ZONE_STATISTICS 1 + + /* Define to 1 if you have the `mallctl` function. */ +-/* #undef HAVE_MALLCTL */ ++#define HAVE_MALLCTL 1 + + /* Define to 1 if you have a working `mmap' system call. */ +-#undef HAVE_MMAP ++#define HAVE_MMAP 1 + + /* Define if mmap() uses MAP_ANONYMOUS to map anonymous pages, or undefine if + it uses MAP_ANON */ + #undef HAVE_MMAP_ANONYMOUS + + /* Define if mmap() can map files into memory */ +-#undef HAVE_MMAP_FILE ++#define HAVE_MMAP_FILE 1 + + /* Define to 1 if you have the `posix_spawn' function. */ + #define HAVE_POSIX_SPAWN 1