git: 1fca3ae8c346 - main - lang/ldc: Improve port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 15 Nov 2022 16:17:43 UTC
The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=1fca3ae8c346242fc7a91a797b4b9b82657ea1f3 commit 1fca3ae8c346242fc7a91a797b4b9b82657ea1f3 Author: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> AuthorDate: 2022-11-15 15:56:32 +0000 Commit: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> CommitDate: 2022-11-15 16:17:04 +0000 lang/ldc: Improve port - STRIP binary files - Add GCC to LIB_DEPENDS - Remove obsolete lines --- lang/ldc/Makefile | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/lang/ldc/Makefile b/lang/ldc/Makefile index b2f030adc948..3293222acec9 100644 --- a/lang/ldc/Makefile +++ b/lang/ldc/Makefile @@ -1,5 +1,6 @@ PORTNAME= ldc PORTVERSION= 1.30.0 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= https://github.com/ldc-developers/${PORTNAME}/releases/download/v${DISTVERSION}/ DISTVERSIONSUFFIX= -src @@ -15,11 +16,10 @@ BROKEN_armv7= fails to compile: Error: undefined identifier _jmp_buf, did you me BROKEN_i386= function core.bitop.bsf (uint v) is not callable using argument types (ulong) BROKEN_riscv64= fails to compile: unable to get target for 'riscv64-portbld-freebsd13.0', see -version and -mtriple. -LLVM_VERSION= 13 -BUILD_DEPENDS= gdmd>0:devel/gdmd \ - gdc11:lang/gcc11 -RUN_DEPENDS= llvm${LLVM_VERSION}>0:devel/llvm${LLVM_VERSION} -LIB_DEPENDS= libconfig.so:devel/libconfig +BUILD_DEPENDS= gdmd>0:devel/gdmd +RUN_DEPENDS= llvm${_LLVM_VER}>0:devel/llvm${_LLVM_VER} +LIB_DEPENDS= libconfig.so:devel/libconfig \ + libgphobos.so:lang/gcc${_GCC_VER} USES= ninja cmake:insource pkgconfig @@ -29,10 +29,12 @@ USES= ninja cmake:insource pkgconfig USE_LDCONFIG= yes -CC= ${LOCALBASE}/bin/clang${LLVM_VERSION} -CXX= ${LOCALBASE}/bin/clang++${LLVM_VERSION} -LLVM_CONFIG= ${LOCALBASE}/bin/llvm-config${LLVM_VERSION} -LDCVER= ${PORTVERSION} +CC= ${LOCALBASE}/bin/clang${_LLVM_VER} +CXX= ${LOCALBASE}/bin/clang++${_LLVM_VER} +LLVM_CONFIG= ${LOCALBASE}/bin/llvm-config${_LLVM_VER} + +_GCC_VER= 11 +_LLVM_VER= 13 .include <bsd.port.pre.mk> @@ -48,4 +50,11 @@ CMAKE_ARGS+= -DLDC_INSTALL_PREFIX="${PREFIX}" \ -DBUILD_SHARED_LIBS="BOTH" \ -DBUILD_LTO_LIBS=ON +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ldc-build-runtime + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ldc-profdata + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ldc-prune-cache + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ldc2 + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ldmd2 + .include <bsd.port.post.mk>