diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2010-10-10 12:54:12 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2010-10-10 12:54:12 +0000 |
commit | bac710ec1eb7c7865e6304f421a5e89b50feba13 (patch) | |
tree | 81914d7d0158a8a2440df19d829ac408862203a4 /lang | |
parent | 51f6a67e06aa373acf7c83863086019da092a73f (diff) | |
download | ports-bac710ec1eb7c7865e6304f421a5e89b50feba13.tar.gz ports-bac710ec1eb7c7865e6304f421a5e89b50feba13.zip |
Notes
Diffstat (limited to 'lang')
-rw-r--r-- | lang/clang-devel/Makefile | 10 | ||||
-rw-r--r-- | lang/clang-devel/files/patch-Makefile.rules | 26 | ||||
-rw-r--r-- | lang/clang/Makefile | 10 | ||||
-rw-r--r-- | lang/clang/files/patch-Makefile.rules | 26 |
4 files changed, 10 insertions, 62 deletions
diff --git a/lang/clang-devel/Makefile b/lang/clang-devel/Makefile index cbef6f9d0e8f..c6a52b1f4050 100644 --- a/lang/clang-devel/Makefile +++ b/lang/clang-devel/Makefile @@ -7,6 +7,7 @@ PORTNAME= clang PORTVERSION= 2.8 +PORTREVISION= 1 CATEGORIES= devel lang MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/ EXTRACT_SUFX= .tgz @@ -28,8 +29,8 @@ WRKSRC= ${WRKDIR}/${LLVM_NAME} BUILD_WRKSRC= ${WRKSRC}/tools/clang INSTALL_WRKSRC= ${WRKSRC}/tools/clang -BUILD_DEPENDS+= llvm-as:${PORTSDIR}/devel/llvm -RUN_DEPENDS+= llvm-as:${PORTSDIR}/devel/llvm +BUILD_DEPENDS+= llvm>=${PORTVERSION}:${PORTSDIR}/devel/llvm +RUN_DEPENDS+= llvm>=${PORTVERSION}:${PORTSDIR}/devel/llvm .if defined(PACKAGE_BUILDING) || defined(MAINTAINER_MODE) BUILD_DEPENDS+= runtest:${PORTSDIR}/misc/dejagnu .endif @@ -88,9 +89,8 @@ post-patch: ${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \ ${WRKSRC}/tools/clang/tools/scan-view/scan-view -#@cd ${WRKSRC}/tools/clang && ${GMAKE} TBLGEN=/usr/local/bin/tblgen LLVM_OBJ_ROOT=/usr/local -#do-build: -# @cd ${WRKSRC}/tools/clang && ${GMAKE} LLVMIncDir=/usr/local/include LLVMToolDir=/usr/local/bin LLVMLibDir=/usr/local/lib +pre-build: + ${LN} -s ${LOCALBASE}/include/llvm/Intrinsics.gen ${WRKSRC}/include/llvm/ .if defined(NOPORTDOCS) post-build: diff --git a/lang/clang-devel/files/patch-Makefile.rules b/lang/clang-devel/files/patch-Makefile.rules deleted file mode 100644 index 4c4c1bfcdd44..000000000000 --- a/lang/clang-devel/files/patch-Makefile.rules +++ /dev/null @@ -1,26 +0,0 @@ - -$FreeBSD$ - ---- Makefile.rules.orig -+++ Makefile.rules -@@ -406,6 +406,7 @@ - LibDir := $(PROJ_OBJ_ROOT)/$(BuildMode)/lib - ToolDir := $(PROJ_OBJ_ROOT)/$(BuildMode)/bin - ExmplDir := $(PROJ_OBJ_ROOT)/$(BuildMode)/examples -+LLVMIncDir := $(LLVM_OBJ_ROOT)/$(BuildMode)/include - LLVMLibDir := $(LLVM_OBJ_ROOT)/$(BuildMode)/lib - LLVMToolDir := $(LLVM_OBJ_ROOT)/$(BuildMode)/bin - LLVMExmplDir:= $(LLVM_OBJ_ROOT)/$(BuildMode)/examples -@@ -628,10 +629,10 @@ - LD.Flags += -L$(LibDir) -L$(LLVMLibDir) - CPP.BaseFlags += -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS - # All -I flags should go here, so that they don't confuse llvm-config. --CPP.Flags += $(sort -I$(PROJ_OBJ_DIR) -I$(PROJ_SRC_DIR) \ -+CPP.Flags += $(sort -I$(PROJ_OBJ_DIR) -I$(PROJ_SRC_DIR) -I$(LLVMIncDir) \ - $(patsubst %,-I%/include,\ - $(PROJ_OBJ_ROOT) $(PROJ_SRC_ROOT) \ -- $(LLVM_OBJ_ROOT) $(LLVM_SRC_ROOT))) \ -+ $(LLVM_SRC_ROOT))) \ - $(CPP.BaseFlags) - - ifeq ($(BUILD_COMPONENT), 1) diff --git a/lang/clang/Makefile b/lang/clang/Makefile index cbef6f9d0e8f..c6a52b1f4050 100644 --- a/lang/clang/Makefile +++ b/lang/clang/Makefile @@ -7,6 +7,7 @@ PORTNAME= clang PORTVERSION= 2.8 +PORTREVISION= 1 CATEGORIES= devel lang MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/ EXTRACT_SUFX= .tgz @@ -28,8 +29,8 @@ WRKSRC= ${WRKDIR}/${LLVM_NAME} BUILD_WRKSRC= ${WRKSRC}/tools/clang INSTALL_WRKSRC= ${WRKSRC}/tools/clang -BUILD_DEPENDS+= llvm-as:${PORTSDIR}/devel/llvm -RUN_DEPENDS+= llvm-as:${PORTSDIR}/devel/llvm +BUILD_DEPENDS+= llvm>=${PORTVERSION}:${PORTSDIR}/devel/llvm +RUN_DEPENDS+= llvm>=${PORTVERSION}:${PORTSDIR}/devel/llvm .if defined(PACKAGE_BUILDING) || defined(MAINTAINER_MODE) BUILD_DEPENDS+= runtest:${PORTSDIR}/misc/dejagnu .endif @@ -88,9 +89,8 @@ post-patch: ${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \ ${WRKSRC}/tools/clang/tools/scan-view/scan-view -#@cd ${WRKSRC}/tools/clang && ${GMAKE} TBLGEN=/usr/local/bin/tblgen LLVM_OBJ_ROOT=/usr/local -#do-build: -# @cd ${WRKSRC}/tools/clang && ${GMAKE} LLVMIncDir=/usr/local/include LLVMToolDir=/usr/local/bin LLVMLibDir=/usr/local/lib +pre-build: + ${LN} -s ${LOCALBASE}/include/llvm/Intrinsics.gen ${WRKSRC}/include/llvm/ .if defined(NOPORTDOCS) post-build: diff --git a/lang/clang/files/patch-Makefile.rules b/lang/clang/files/patch-Makefile.rules deleted file mode 100644 index 4c4c1bfcdd44..000000000000 --- a/lang/clang/files/patch-Makefile.rules +++ /dev/null @@ -1,26 +0,0 @@ - -$FreeBSD$ - ---- Makefile.rules.orig -+++ Makefile.rules -@@ -406,6 +406,7 @@ - LibDir := $(PROJ_OBJ_ROOT)/$(BuildMode)/lib - ToolDir := $(PROJ_OBJ_ROOT)/$(BuildMode)/bin - ExmplDir := $(PROJ_OBJ_ROOT)/$(BuildMode)/examples -+LLVMIncDir := $(LLVM_OBJ_ROOT)/$(BuildMode)/include - LLVMLibDir := $(LLVM_OBJ_ROOT)/$(BuildMode)/lib - LLVMToolDir := $(LLVM_OBJ_ROOT)/$(BuildMode)/bin - LLVMExmplDir:= $(LLVM_OBJ_ROOT)/$(BuildMode)/examples -@@ -628,10 +629,10 @@ - LD.Flags += -L$(LibDir) -L$(LLVMLibDir) - CPP.BaseFlags += -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS - # All -I flags should go here, so that they don't confuse llvm-config. --CPP.Flags += $(sort -I$(PROJ_OBJ_DIR) -I$(PROJ_SRC_DIR) \ -+CPP.Flags += $(sort -I$(PROJ_OBJ_DIR) -I$(PROJ_SRC_DIR) -I$(LLVMIncDir) \ - $(patsubst %,-I%/include,\ - $(PROJ_OBJ_ROOT) $(PROJ_SRC_ROOT) \ -- $(LLVM_OBJ_ROOT) $(LLVM_SRC_ROOT))) \ -+ $(LLVM_SRC_ROOT))) \ - $(CPP.BaseFlags) - - ifeq ($(BUILD_COMPONENT), 1) |