freebsd-skq/usr.bin/clang/llvm.prog.mk
dim 0e604e79ff Fix packaging for clang, lldb and lld 3.9.0
During the upgrade of clang/llvm etc to 3.9.0 in r309124, the PACKAGE
directive in the usr.bin/clang/*.mk files got dropped accidentally.

Restore it, with a few minor changes and additions:
* Correct license in clang.ucl to NCSA
* Add PACKAGE=clang for clang and most of the "ll" tools
* Put lldb in its own package
* Put lld in its own package

Reviewed by:	gjb, jmallett
X-MFC-With:	309124
Differential Revision: https://reviews.freebsd.org/D8666
2016-11-28 20:13:56 +00:00

28 lines
574 B
Makefile

# $FreeBSD$
.include "${SRCTOP}/lib/clang/llvm.pre.mk"
CFLAGS+= -I${OBJTOP}/lib/clang/libllvm
.include "${SRCTOP}/lib/clang/llvm.build.mk"
# Special case for the bootstrap-tools phase.
.if (defined(TOOLS_PREFIX) || ${MACHINE} == "host") && \
(${PROG_CXX} == "clang-tblgen" || ${PROG_CXX} == "llvm-tblgen")
LIBDEPS+= llvmminimal
.else
LIBDEPS+= llvm
.endif
.for lib in ${LIBDEPS}
DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
.endfor
PACKAGE= clang
LIBADD+= ncursesw
LIBADD+= pthread
.include <bsd.prog.mk>