blob: 67e1002f4039777ed130aa0a6d99a677edd35490 (
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
|
#!/bin/sh
NAME="libexecinfo"
DESC="A quick-n-dirty BSD licensed clone of the GNU libc backtrace facility."
MAKEDEPS="make "
DEPS="musl "
PKG_VER=1.1
SOURCE="http://distcache.freebsd.org/local-distfiles/itetcu/libexecinfo-$PKG_VER.tar.bz2"
ADDITIONAL="30-linux-makefile.patch 20-define-gnu-source.patch 10-execinfo.patch "
prepare () {
apply_patches
}
build () {
export CFLAGS="${CFLAGS} -fno-omit-frame-pointer"
make PREFIX=/usr
}
package () {
install -D -m755 execinfo.h \
"$PKG_DEST"/usr/include/execinfo.h
install -D -m755 stacktraverse.h \
"$PKG_DEST"/usr/include/stacktraverse.h
install -D -m755 libexecinfo.so.1 \
"$PKG_DEST"/usr/lib/libexecinfo.so.1
ln -s /usr/lib/libexecinfo.so.1 \
"$PKG_DEST"/usr/lib/libexecinfo.so
}
|