blob: 73c584680f247cdf63fb40f93263e6aae75cf3e0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
PORTNAME= mold
DISTVERSIONPREFIX= v
DISTVERSION= 1.2.1
PORTREVISION= 3
CATEGORIES= devel
MAINTAINER= ashish@FreeBSD.org
COMMENT= Modern Linker
WWW= https://github.com/rui314/mold
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
# see https://github.com/rui314/mold/issues/456
BROKEN= broken with FreeBSD strip
NOT_FOR_ARCHS= armhf armv7 i386
LIB_DEPENDS= libtbb.so:devel/onetbb \
libmimalloc.so:devel/mimalloc
USES= gmake ssl
MAKE_ENV+= SYSTEM_TBB=1
MAKE_ENV+= SYSTEM_MIMALLOC=1
MAKE_ENV+= STRIP_CMD=${STRIP_CMD}
CXXFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_FLAGS+= "CXXFLAGS=${CXXFLAGS}"
MAKE_FLAGS+= "LDFLAGS=${LDFLAGS}"
USE_GITHUB= yes
GH_ACCOUNT= rui314
PLIST_FILES= bin/ld.mold \
bin/ld64.mold \
bin/mold \
lib/mold/mold-wrapper.so \
libexec/mold/ld \
share/man/man1/mold.1.gz
post-patch:
${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \
${WRKSRC}/Makefile
.include <bsd.port.mk>
|