pkgsrc/devel/libexecinfo/Makefile
schmonz 3013e74c01 Libtoolize to fix build on OS X 10.9 and (untested) fix shlibs under
Solaris 10. What's tested:

1. devel/cmake with USE_BUILTIN.libexecinfo=no links and runs on:
    * CentOS/amd64 6.5
    * Mac OS X/x86_64 10.9.4 (Darwin 13.3.0)
    * NetBSD/amd64 6.1.4
    * SmartOS/i386 (Joyent SmartMachine 1.8.1, "SunOS 5.11")

2. http://www.gnu.org/software/libc/manual/html_node/Backtraces.html's
   sample program outputs:
    * Mac OS X: the expected backtrace
    * NetBSD: dumps core (but it did before this change, too)
    * SmartOS: the expected backtrace

Bump PKGREVISION.
2014-07-05 20:15:24 +00:00

35 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2014/07/05 20:15:24 schmonz Exp $
DISTNAME= libexecinfo-1.1
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_FREEBSD}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= ober@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 ${CC} ${CFLAGS} -c execinfo.c
cd ${WRKSRC} && ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} -c stacktraverse.c
cd ${WRKSRC} && ${LIBTOOL} --mode=link ${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"