aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libunwind/Makefile
blob: 109b2e2c292be058b491935cd332882b051a583f (plain) (blame)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# New ports collection makefile for:        libunwind
# Date created:                 04/30/2010
# Whom:                     stas
#
# $FreeBSD$
#

PORTNAME=   libunwind
PORTVERSION=    20100809
PORTREVISION=   1
CATEGORIES= devel
MASTER_SITES=   ftp://ftp.SpringDaemons.com/soft/

MAINTAINER= stas@FreeBSD.org
COMMENT=    A generic stack unwinding library

ONLY_FOR_ARCHS= i386 amd64

GNU_CONFIGURE=  yes
USE_BZIP2=  yes
USE_LDCONFIG=   yes
USE_AUTOTOOLS=  aclocal:111 autoheader:268 automake:111 autoconf:268 \
        libtoolize libtool:22
ACLOCAL_ARGS=   -I . -I ${LOCALBASE}/share/aclocal
AUTOMAKE_ARGS=  -c -a
LIBTOOLFILES=   #empty

MAN3=   _U_dyn_cancel.3         \
    _U_dyn_register.3       \
    libunwind-dynamic.3     \
    libunwind-ia64.3        \
    libunwind-ptrace.3      \
    libunwind-setjmp.3      \
    libunwind.3         \
    unw_create_addr_space.3     \
    unw_destroy_addr_space.3    \
    unw_flush_cache.3       \
    unw_get_accessors.3     \
    unw_get_fpreg.3         \
    unw_get_proc_info.3     \
    unw_get_proc_info_by_ip.3   \
    unw_get_proc_name.3     \
    unw_get_reg.3           \
    unw_getcontext.3        \
    unw_init_local.3        \
    unw_init_remote.3       \
    unw_is_fpreg.3          \
    unw_is_signal_frame.3       \
    unw_regname.3           \
    unw_resume.3            \
    unw_set_caching_policy.3    \
    unw_set_fpreg.3         \
    unw_set_reg.3           \
    unw_step.3          \
    unw_strerror.3

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 701100 || (${OSVERSION} > 800000 && ${OSVERSION} < 800053)
IGNORE= your FreeBSD version is not supported
.endif

.if ${ARCH} == i386
PLIST_SUB=  ARCH=x86
.elif ${ARCH} == amd64
PLIST_SUB=  ARCH=x86_64
.endif

#
# The original ltmain.sh is buggy and hangs sometimes
#
pre-configure:
    @${CP} ${LTMAIN} ${WRKSRC}/aux/

#
# Get rid of .la and static library files
#
post-configure:
    @${REINPLACE_CMD} -E -e \
    '/Install the pseudo-library/,/staticlibs=/s,^,#,' ${WRKSRC}/libtool

.include <bsd.port.post.mk>