Make lang/ponyc-static a flavor of lang/ponyc

Approved by:	portmgr (mat), greg@unrelenting.technology (maintainer)
Differential Revision:	https://reviews.freebsd.org/D22291
This commit is contained in:
Tobias Kortkamp 2019-11-20 17:13:32 +00:00
parent 2c37e224a7
commit 63bc3e0424
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=518038
4 changed files with 19 additions and 18 deletions

1
MOVED
View File

@ -13482,3 +13482,4 @@ mail/opensmtpd-extras-filter-regex||2019-11-15| Deprecated upstream
mail/opensmtpd-extras-filter-spamassassin||2019-11-15| Deprecated upstream
mail/opensmtpd-extras-tool-stats||2019-11-15| Deprecated upstream
x11-wm/compton-yshui|x11-wm/picom|2019-11-18|Project renamed
lang/ponyc-static|lang/ponyc@llvm_static|2019-11-20|Flavored

View File

@ -286,7 +286,6 @@
SUBDIR += pocl
SUBDIR += polyml
SUBDIR += ponyc
SUBDIR += ponyc-static
SUBDIR += ptoc
SUBDIR += purescript
SUBDIR += py-hy

View File

@ -1,9 +0,0 @@
# $FreeBSD$
PKGNAMESUFFIX= -static
COMMENT= Pony language compiler (statically linked with LLVM)
CONFLICTS_INSTALL= ponyc
MASTERDIR= ${.CURDIR}/../ponyc
OPTIONS_SLAVE= STATIC
.include "${MASTERDIR}/Makefile"

View File

@ -5,7 +5,7 @@ DISTVERSION= 0.33.0
CATEGORIES= lang
MAINTAINER= greg@unrelenting.technology
COMMENT?= Pony language compiler
COMMENT= Pony language compiler
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
@ -15,6 +15,17 @@ ONLY_FOR_ARCHS_REASON= Undefined reference to __atomic_compare_exchange_8
BUILD_DEPENDS= llvm-link${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
FLAVORS= llvm_dynamic llvm_static
FLAVOR?= ${FLAVORS:[1]}
llvm_dynamic_RUN_DEPENDS= llvm-link${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
llvm_dynamic_CONFLICTS_INSTALL= ponyc-static
llvm_static_PKGNAMESUFFIX= -static
llvm_static_CONFLICTS_INSTALL= ponyc
.if ${FLAVOR} == llvm_static
COMMENT+= (statically linked with LLVM)
.endif
USES= gmake ncurses compiler:c++11-lang
LLVM_VERSION?= 70
@ -30,20 +41,19 @@ PORTDOCS= *.md
MAKE_ENV= config=release verbose=true default_pic=true \
prefix=${PREFIX} arch=${PONYARCH} \
LLVM_CONFIG=llvm-config${LLVM_VERSION}
.if ${FLAVOR} == llvm_dynamic
MAKE_ENV+= link=llvm-dynamic
.else
MAKE_ENV+= link=llvm-static
.endif
CONFLICTS_INSTALL?= ponyc-static
OPTIONS_DEFINE= DOCS DTRACE EXAMPLES STATIC
OPTIONS_DEFINE= DOCS DTRACE EXAMPLES
OPTIONS_EXCLUDE_aarch64= DTRACE
# Not enabling DTrace by default yet because it breaks --runtimebc ("super LTO"):
# https://github.com/ponylang/ponyc/issues/2915
DTRACE_MAKE_ENV= use=dtrace
STATIC_RUN_DEPENDS_OFF= llvm-link${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
STATIC_MAKE_ENV_OFF= link=llvm-dynamic
STATIC_MAKE_ENV= link=llvm-static
.include <bsd.port.pre.mk>
# Pony defaults to 'native', which