summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2012-02-06 13:01:24 -0600
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2012-02-06 13:01:24 -0600
commit5d5705d47400d38c7e6cb030878baee6423e5968 (patch)
treeb560e8de538492e9ccf6cd869613fd8d889b46ef
downloadcygwin-clang-5d5705d47400d38c7e6cb030878baee6423e5968.tar.gz
cygwin-clang-5d5705d47400d38c7e6cb030878baee6423e5968.tar.xz
cygwin-clang-5d5705d47400d38c7e6cb030878baee6423e5968.zip
cygwin-clang 3.0-1
-rw-r--r--cygwin-clang.spec73
-rw-r--r--sources2
2 files changed, 75 insertions, 0 deletions
diff --git a/cygwin-clang.spec b/cygwin-clang.spec
new file mode 100644
index 0000000..fc1c848
--- /dev/null
+++ b/cygwin-clang.spec
@@ -0,0 +1,73 @@
+%define gccdir %{_libdir}/gcc/%{_cygwin_target}/4.5.3
+
+Name: cygwin-clang
+Version: 3.0
+Release: 1%{?dist}
+Summary: Clang compiler for Cygwin toolchain
+
+Group: Development/Libraries
+License: NCSA
+URL: http://clang.llvm.org
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: http://www.llvm.org/releases/%{version}/llvm-%{version}.tar.gz
+Source1: http://www.llvm.org/releases/%{version}/clang-%{version}.tar.gz
+
+BuildRequires: gcc-c++
+# for pod2man
+BuildRequires: perl
+
+Requires: cygwin-binutils
+Requires: cygwin-gcc
+Requires: cygwin-gcc-c++
+
+
+%description
+Clang C/C++/ObjC compiler for the Cygwin toolchain
+
+
+%prep
+%setup -q -T -b 0 -a 1 -n llvm-%{version}.src
+mv clang-%{version}.src tools/clang
+
+
+%build
+%{configure} --target=%{_cygwin_target} --enable-targets=x86,cbe,cpp \
+ --disable-assertions --enable-optimized --enable-libffi \
+ --disable-embed-stdcxx --disable-bindings \
+ --with-clang-resource-dir=../%{_lib}/clang/%{_cygwin_target}/%{version} \
+ --with-c-include-dirs=%{gccdir}/include:%{_cygwin_includedir}:%{_cygwin_includedir}/w32api \
+ --with-cxx-include-root=%{gccdir}/include/c++ \
+ --with-cxx-include-arch=%{_cygwin_target}
+
+make %{?_smp_mflags} REQUIRES_RTTI=1 ENABLE_DOCS=0
+make -C tools/clang/docs/tools clang.1
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make install -C tools/clang/lib/Headers \
+ PROJ_headers=$RPM_BUILD_ROOT%{_libdir}/clang/%{_cygwin_target}/%{version}/include
+
+install -D -m0755 Release/bin/clang $RPM_BUILD_ROOT%{_bindir}/%{_cygwin_target}-clang
+ln -s %{_cygwin_target}-clang $RPM_BUILD_ROOT%{_bindir}/%{_cygwin_target}-clang++
+install -D -m0644 tools/clang/docs/tools/clang.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{_cygwin_target}-clang.1
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE.TXT README.txt
+%{_bindir}/%{_cygwin_target}-clang
+%{_bindir}/%{_cygwin_target}-clang++
+%{_libdir}/clang/%{_cygwin_target}/
+%{_mandir}/man1/%{_cygwin_target}-clang.*
+
+
+%changelog
+* Sun Feb 05 2011 Yaakov Selkowitz <cygwin-ports-general@lists.sourceforge.net> - 3.0-1
+- Initial RPM release.
diff --git a/sources b/sources
new file mode 100644
index 0000000..d9e11c7
--- /dev/null
+++ b/sources
@@ -0,0 +1,2 @@
+43350706ae6cf05d0068885792ea0591 clang-3.0.tar.gz
+a8e5f5f1c1adebae7b4a654c376a6005 llvm-3.0.tar.gz