diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2014-03-15 07:03:58 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2014-03-15 07:03:58 +0000 |
commit | 4a4e8292316c6518d8c980225a436ceeb14a99b0 (patch) | |
tree | d7e56f70af190fc6bf168a2b8173842704cc7215 /lang/rust/Makefile | |
parent | 858799c60ce54271cbdb94b9e2ff6bb3e3f91b1c (diff) | |
download | ports-4a4e8292316c6518d8c980225a436ceeb14a99b0.tar.gz ports-4a4e8292316c6518d8c980225a436ceeb14a99b0.zip |
Notes
Diffstat (limited to 'lang/rust/Makefile')
-rw-r--r-- | lang/rust/Makefile | 47 |
1 files changed, 25 insertions, 22 deletions
diff --git a/lang/rust/Makefile b/lang/rust/Makefile index 81a903ca2df3..5506cbfe1f14 100644 --- a/lang/rust/Makefile +++ b/lang/rust/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= rust -PORTVERSION= 0.8 +PORTVERSION= 0.9 CATEGORIES= lang MASTER_SITES= http://static.rust-lang.org/dist/:src \ http://static.rust-lang.org/stage0-snapshots/:boot @@ -13,9 +13,15 @@ EXTRACT_ONLY= ${RUST_SOURCE} MAINTAINER= jyyou@cs.nctu.edu.tw COMMENT= A language with a focus on memory safety and concurrency +LICENSE= APACHE20 \ + MIT +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE-APACHE \ + ${WRKSRC}/LICENSE-MIT + RUST_SOURCE= ${DISTNAME}${EXTRACT_SUFX} RUST_BOOT= rust-stage0-${RUST_BOOT_SIG}.tar.bz2 -RUST_BOOT_SIG= 2013-09-23-348d844-freebsd-x86_64-8b99ec197e441f013c5ba0788f8bcfa689bfc75e +RUST_BOOT_SIG= 2014-01-05-a6d3e57-freebsd-x86_64-ac21ea9537da2aaee35b7f3d2698b651dc3e8bd9 RUST_TARGET= x86_64-unknown-freebsd ONLY_FOR_ARCHS= amd64 @@ -25,39 +31,39 @@ USES= gmake perl5 USE_PERL5= build USE_PYTHON_BUILD= 2 -MAN1= rust.1 \ - rustc.1 \ +MAN1= rustc.1 \ rustdoc.1 \ - rusti.1 \ rustpkg.1 -OPTIONS_DEFINE= RUSTPKG +OPTIONS_DEFINE= RUSTPKG \ + LLNEXTGEN + RUSTPKG_DESC= Build with package manager +LLNEXTGEN_DESC= Build with grammar verification OPTIONS_DEFAULT= RUSTPKG +OPTIONS_SUB= yes -NO_STAGE= yes .include <bsd.port.pre.mk> -.if ${OSVERSION} < 900044 -BROKEN= Only compiles on 9.0-RELEASE and later +.if ${OSVERSION} < 900044 || ${OSVERSION} >= 1000000 +BROKEN= Only compiles on FreeBSD 9 .endif -LIB_DEPENDS+= unwind:${PORTSDIR}/devel/libunwind CC= clang CXX= clang++ -CONFIGURE_ARGS+= --enable-clang +CONFIGURE_ARGS+= --disable-valgrind --disable-docs \ + --enable-clang +MAKE_ARGS+= CC=${CC} CXX=${CXX} ARCH=x86_64 .if ${PORT_OPTIONS:MRUSTPKG} RUN_DEPENDS+= git:${PORTSDIR}/devel/git -PLIST_SUB+= RUSTPKG="" -.else -PLIST_SUB+= RUSTPKG="@comment " .endif -LIB_DEPENDS+= execinfo:${PORTSDIR}/devel/libexecinfo +.if ${PORT_OPTIONS:MLLNEXTGEN} +BUILD_DEPENDS+= LLnextgen:${PORTSDIR}/devel/llnextgen +.endif -MAKE_ARGS+= CC=${CC} CXX=${CXX} ARCH=x86_64 -CONFIGURE_ARGS+= --disable-valgrind --disable-docs +LIB_DEPENDS+= execinfo:${PORTSDIR}/devel/libexecinfo post-extract: ${MKDIR} ${WRKSRC}/${RUST_TARGET} && \ @@ -67,14 +73,11 @@ post-extract: post-patch: ${REINPLACE_CMD} \ - -e 's|$$(PREFIX_ROOT)/share/man|${MANPREFIX}/man|' \ - ${WRKSRC}/mk/install.mk - ${REINPLACE_CMD} \ - -e '/get-snapshot.py $$(CFG_BUILD_TRIPLE)/d' \ + -e '/get-snapshot.py $$(CFG_BUILD)/d' \ ${WRKSRC}/mk/stage0.mk .if empty(PORT_OPTIONS:MRUSTPKG) ${REINPLACE_CMD} \ - -e '/$$(Q)$$(call INSTALL,$$(HB2),$$(PHB),rustpkg$$(X_$$(CFG_BUILD_TRIPLE)))/d' \ + -e '/$$(Q)$$(call INSTALL,$$(HB2),$$(PHB),rustpkg$$(X_$$(CFG_BUILD)))/d' \ ${WRKSRC}/mk/install.mk .endif |