2015-07-13 06:55:31 +02:00
|
|
|
# $NetBSD: Makefile,v 1.8 2015/07/13 04:55:31 bsiegert Exp $
|
2013-03-14 23:27:15 +01:00
|
|
|
|
|
|
|
DISTNAME= libexecinfo-1.1
|
2014-07-05 22:15:24 +02:00
|
|
|
PKGREVISION= 1
|
2013-03-14 23:27:15 +01:00
|
|
|
CATEGORIES= devel
|
2013-04-06 16:09:32 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_FREEBSD}
|
2013-03-14 23:27:15 +01:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2015-06-28 17:18:09 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2013-03-14 23:27:15 +01:00
|
|
|
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
|
2014-07-05 22:15:24 +02:00
|
|
|
LIBS+= -lm
|
|
|
|
LIBS.Linux+= -ldl
|
2013-03-14 23:27:15 +01:00
|
|
|
|
2014-07-05 22:15:24 +02:00
|
|
|
USE_LIBTOOL= yes
|
2014-05-05 23:11:25 +02:00
|
|
|
|
2014-07-05 22:15:24 +02:00
|
|
|
INSTALLATION_DIRS= include lib
|
2014-06-05 21:48:33 +02:00
|
|
|
|
2014-07-05 22:15:24 +02:00
|
|
|
do-build:
|
2015-07-13 06:55:31 +02:00
|
|
|
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 \
|
2014-07-05 22:15:24 +02:00
|
|
|
-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
|
2013-03-14 23:27:15 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|