aboutsummaryrefslogtreecommitdiffstats
path: root/main/uclibc++/APKBUILD
blob: d187f7cc0cc3f87dc8c723f7cf93c80a17b2d953 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=uclibc++
pkgver=0.2.2
pkgrel=4
pkgdesc="Embedded C++ library"
url="http://cxx.uclibc.org/"
license='GPL-2'
depends=
makedepends=
subpackages="$pkgname-dev"
source="http://cxx.uclibc.org/src/uClibc++-$pkgver.tar.bz2
	001-path_to_make.patch
	002-path_to_bash.patch
	003-cp_command.patch
	004-ccache_fixes.patch
	005-wrapper.patch
	006-eabi_fix.patch
	007-numeric_limits.patch
	008-integer_width.patch
	900-dependent_exception.patch
	associative_base.patch
	uclibc++-gcc-4.3.patch
	uclibc++config
	"

build() {
	cd "$srcdir/uClibc++-$pkgver"
	cp ../uclibc++config .config
	make oldconfig

	for i in ../*.patch; do
		if ! patch -p1 < $i; then
			error "failed to apply $i"
			return 1
		fi
	done
	sed -i -e 's:bin/bash:bin/sh:' bin/Makefile scripts/find_lib*
	make || return 1
	make DESTDIR="$pkgdir/" install
}

dev() {
	depends="$pkgname g++"
	mkdir -p "$subpkgdir"
	# move everything to -dev package except *.so files
	mv "$pkgdir"/* "$subpkgdir"/
	mkdir -p "$pkgdir"/usr/lib/
	mv "$subpkgdir"/usr/lib/*.so* \
		"$pkgdir"/usr/lib/
}


md5sums="1ceef3209cca88be8f1bd9de99735954  uClibc++-0.2.2.tar.bz2
ce1016fb83c23c83486f35f4cd1b64ab  001-path_to_make.patch
42954542f9f3c5dd6febb73d2db7f1d0  002-path_to_bash.patch
8068b394de053ed94a742d1ed9657b99  003-cp_command.patch
363dc1cd86052f44212c2f3ac15926da  004-ccache_fixes.patch
3689f8d77984ca66554e14cacbeb796c  005-wrapper.patch
99e625748c0e6d5fc7cef8484cbac587  006-eabi_fix.patch
d335b8f1c9d4682a220a082a371277e4  007-numeric_limits.patch
2c431d4ad46a244f2f50baf40b85f7d2  008-integer_width.patch
4e9c416c2a107f7d814f938fa57901a5  900-dependent_exception.patch
5689baa3f3bf8488c0a5d27a690d30fa  associative_base.patch
4c7b499e4697225378acef25f6364e9b  uclibc++-gcc-4.3.patch
2f573c1e2a0c7a320ea4685cc3ce9e2a  uclibc++config"