blob: 8d974c5b0393686c2f48a3f5f0fa23e0d4872961 (
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
|
# $NetBSD: Makefile,v 1.8 2015/07/13 04:55:31 bsiegert Exp $
DISTNAME= libexecinfo-1.1
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_FREEBSD}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.freebsdsoftware.org/devel/libexecinfo.html
COMMENT= BSD Licensed clone of backtrace facility found in GNU libc
LICENSE= 2-clause-bsd
CFLAGS.Linux+= -D_GNU_SOURCE # Dl_info internals
CFLAGS.Linux+= -Wno-unused-result # write(2) is declared specially
LIBS+= -lm
LIBS.Linux+= -ldl
USE_LIBTOOL= yes
INSTALLATION_DIRS= include lib
do-build:
cd ${WRKSRC} && ${LIBTOOL} --mode=compile --tag=CC ${CC} ${CFLAGS} -c execinfo.c
cd ${WRKSRC} && ${LIBTOOL} --mode=compile --tag=CC ${CC} ${CFLAGS} -c stacktraverse.c
cd ${WRKSRC} && ${LIBTOOL} --mode=link --tag=CC ${CC} ${LDFLAGS} ${LIBS} \
-o libexecinfo.la execinfo.lo stacktraverse.lo \
-version-info 1:0:0 -rpath ${PREFIX}/lib
do-install:
cd ${WRKSRC} && ${LIBTOOL} --mode=install ${INSTALL_LIB} \
-c libexecinfo.la ${DESTDIR}${PREFIX}/lib/libexecinfo.la
cd ${WRKSRC} && ${INSTALL_DATA} execinfo.h ${DESTDIR}${PREFIX}/include
.include "../../mk/bsd.pkg.mk"
|