diff options
author | Andrew Manison <amanison@anselsystems.com> | 2010-09-14 22:09:21 +0000 |
---|---|---|
committer | Andrew Manison <amanison@anselsystems.com> | 2010-09-14 22:09:21 +0000 |
commit | 8124b5490d23d0349efefa8aa49d0ca6b1e4e375 (patch) | |
tree | 1eae66e608372a18c3c4be7b52c3378805944653 /main/gcc | |
parent | a393c08b863fd1f27ab3886eba0a0a6955c32bcc (diff) | |
download | aports-8124b5490d23d0349efefa8aa49d0ca6b1e4e375.tar.bz2 aports-8124b5490d23d0349efefa8aa49d0ca6b1e4e375.tar.xz |
main/gcc: Added objc package to build.
Added the build of the Objective-C libraries to the build, and created the objc subpackage.
This has been tested with a simple "Hello World" program, but more thorough testing is necessary.
Diffstat (limited to 'main/gcc')
-rw-r--r-- | main/gcc/APKBUILD | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD index da7f662485..5dc2873219 100644 --- a/main/gcc/APKBUILD +++ b/main/gcc/APKBUILD @@ -6,15 +6,16 @@ _specsver=0.1.7 _espfver=0.3.6 _uclibc_abiver=0.9.32 -pkgrel=3 +pkgrel=4 pkgdesc="The GNU Compiler Collection" url="http://gcc.gnu.org" license="GPL LGPL" depends="binutils libgcc libgomp" makedepends="bison flex gmp-dev mpfr-dev texinfo" -subpackages="$pkgname-doc libstdc++:libcxx g++:gpp libgcc libgomp" +subpackages="$pkgname-doc libstdc++:libcxx g++:gpp libgcc libgomp objc" source="ftp://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-core-$pkgver.tar.bz2 ftp://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-g++-$pkgver.tar.bz2 + ftp://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-objc-$pkgver.tar.bz2 http://weaver.gentooenterprise.com/hardened/patches/gcc-$_pv-espf-$_espfver.tar.bz2 http://weaver.gentooenterprise.com/hardened/patches/gcc-$_pv-specs-$_specsver.tar.bz2 gcc-spec-env.patch @@ -23,13 +24,14 @@ source="ftp://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-core-$pkgver.tar.bz2 gcc-dynamic-linker.patch PR32219.patch " -# ftp://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-objc-$pkgver.tar.bz2 +# ftp://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-objc-$pkgver.tar.bz2 1 + build () { cd "$srcdir"/gcc-$pkgver # ESPF patches. we dont use objc yet - rm -f ../espf-gcc-$_pv/*_objc*lang-specs*.patch + #rm -f ../espf-gcc-$_pv/*_objc*lang-specs*.patch # thanks to Zorry for hard work on those patches for i in ../espf-gcc-$_pv/*.patch; do msg "Applying $i" @@ -60,7 +62,7 @@ build () --enable-__cxa_atexit \ --enable-cld \ --enable-espf \ - --enable-languages=c,c++ \ + --enable-languages=c,c++,objc \ --enable-shared \ --enable-target-optspace \ --enable-tls \ @@ -81,7 +83,7 @@ package() { # binutils provides libiberty.a rm -f "$pkgdir"/usr/lib/libiberty.a - + # install the specs cd "$srcdir"/specs install -d "$pkgdir"/usr/share/gcc @@ -112,13 +114,20 @@ gpp() { mv "$pkgdir"/usr/bin/*++ "$subpkgdir"/usr/bin/ } +objc() { + pkgdesc="GNU ObjectiveC library" + mkdir -p "$subpkgdir"/usr/lib + + mv "$pkgdir"/usr/lib/*objc* "$subpkgdir"/usr/lib/ +} + libgcc() { pkgdesc="GNU C compiler runtime libraries" depends= mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libgcc_s.so.* "$subpkgdir"/usr/lib/ } - + libgomp() { pkgdesc="GCC shared-memory parallel programming API library" depends= @@ -129,6 +138,7 @@ libgomp() { md5sums="eb68755f64b9a4e37751992abb41c4fc gcc-core-4.4.4.tar.bz2 d51a6ec3eac1a90e7fc280d976ce7f80 gcc-g++-4.4.4.tar.bz2 +871cdd1a1ed8806a9bd5afcef0938fef gcc-objc-4.4.4.tar.bz2 72643cf4f9751d6cbfdbce483b92461d gcc-4.4.2-espf-0.3.6.tar.bz2 528926b586b2591474b6c2a7ef8ee6d7 gcc-4.4.2-specs-0.1.7.tar.bz2 c4045bfa85d8be780affd465be9d8ca8 gcc-spec-env.patch |