summaryrefslogtreecommitdiff
path: root/packages/meta/openslug-native.bb
blob: da5379da81ba3f3ae44401343c221fd7d68b1840 (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
DESCRIPTION = "Packages that are required for the OpenSlug native build environment"
LICENSE = MIT
PR = "r3"

INHIBIT_DEFAULT_DEPS = "1"
ALLOW_EMPTY = 1
PACKAGES = "${PN}"

OPENSLUG_NATIVE = "\
	automake \
	bash \
	binutils binutils-dev \
	bison \
	bzip2 \
	coreutils \
	cpp cpp-symlinks \
	cvs \
	flex \
	gawk \
	g++ g++-symlinks \
	gcc gcc-symlinks \
	glibc-extra-nss glibc-utils \
	gnu-config \
	libc6 libc6-dev \
	libg2c-dev \
	libgdbm3 \
	libperl5 \
	libreadline4 libreadline-dev \
	libstdc++-dev \
	libthread-db1 \
	lrzsz \
	m4 \
	make \
	ncurses ncurses-dev ncurses-terminfo \
	patch \
	sed \
	tar \
	util-linux \
	wget \
	"

RDEPENDS = '${OPENSLUG_NATIVE}'

pkg_postinst_${PN} () {
	# Fix some strange .so-files with strange comments in them. This should
	# really be done in the packages providing these, but untill that, this
	# works, and will not break anything when it actually gets fixed
	tail -n 2 /usr/lib/libc.so > /tmp/tmpfile
	mv /tmp/tmpfile /usr/lib/libc.so
	tail -n 2 /usr/lib/libpthread.so > /tmp/tmpfile
	mv /tmp/tmpfile /usr/lib/libpthread.so
}