mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
69 lines
1.7 KiB
Bash
69 lines
1.7 KiB
Bash
SUMMARY="Library for inspecting a program's backtrace"
|
|
DESCRIPTION="This is a quick-n-dirty BSD licensed clone of backtrace facility \
|
|
found in the GNU libc, mainly intended for porting linuxish code to BSD \
|
|
platforms, however it can be used at any platform which has a GCC compiler."
|
|
HOMEPAGE="https://www.freshports.org/devel/libexecinfo"
|
|
COPYRIGHT="2003-2014 Maxim Sobolev"
|
|
LICENSE="BSD (2-clause)"
|
|
REVISION="6"
|
|
SOURCE_URI="https://sources.voidlinux-ppc.org/libexecinfo-$portVersion/libexecinfo-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="c9a21913e7fdac8ef6b33250b167aa1fc0a7b8a175145e26913a4c19d8a59b1f"
|
|
PATCHES="libexecinfo-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
|
|
|
|
PROVIDES="
|
|
libexecinfo$secondaryArchSuffix = $portVersion compat >= 1
|
|
lib:libexecinfo$secondaryArchSuffix = $portVersion compat >= 1
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libexecinfo${secondaryArchSuffix}_devel = $portVersion compat >= 1
|
|
devel:libexecinfo${secondaryArchSuffix} = $portVersion compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
libexecinfo${secondaryArchSuffix} == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
gcc -c -o execinfo.o execinfo.c
|
|
gcc -c -o stacktraverse.o stacktraverse.c
|
|
gcc -shared -Wl,-soname,libexecinfo.so.1.1 -o libexecinfo.so execinfo.o stacktraverse.o
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $libDir
|
|
mkdir -p $includeDir
|
|
|
|
cp libexecinfo.so $libDir
|
|
ln -s $libDir/libexecinfo.so $libDir/libexecinfo.so.1.1
|
|
cp execinfo.h $includeDir
|
|
|
|
prepareInstalledDevelLib libexecinfo
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
gcc test.c -o test libexecinfo.a
|
|
./test
|
|
}
|