2013-03-11 06:50:00 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.16 2013/03/11 10:50:09 espie Exp $
|
2008-10-21 13:01:24 -04:00
|
|
|
|
2011-11-14 14:14:18 -05:00
|
|
|
COMMENT = clone of backtrace facility found in the GNU libc
|
2008-10-21 13:01:24 -04:00
|
|
|
|
2011-11-14 14:14:18 -05:00
|
|
|
V = 0.2
|
|
|
|
DISTNAME = backtrace-$V
|
|
|
|
PKGNAME = libexecinfo-$V
|
2013-02-07 07:30:44 -05:00
|
|
|
REVISION = 3
|
2011-11-14 14:14:18 -05:00
|
|
|
EPOCH = 0
|
|
|
|
CATEGORIES = devel
|
2008-10-21 13:01:24 -04:00
|
|
|
|
2012-09-27 11:45:42 -04:00
|
|
|
SHARED_LIBS = execinfo 2.0
|
2008-10-21 13:01:24 -04:00
|
|
|
|
2011-11-14 14:14:18 -05:00
|
|
|
HOMEPAGE = http://opensource.conformal.com/wiki/Backtrace
|
|
|
|
MASTER_SITES = http://opensource.conformal.com/snapshots/backtrace/
|
|
|
|
EXTRACT_SUFX = .tgz
|
2009-04-09 11:03:06 -04:00
|
|
|
|
2008-10-21 13:01:24 -04:00
|
|
|
# BSD
|
2011-11-14 14:14:18 -05:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
2008-10-21 13:01:24 -04:00
|
|
|
|
2011-11-14 14:14:18 -05:00
|
|
|
WANTLIB= c
|
|
|
|
CFLAGS+= -Wl,--export-dynamic
|
|
|
|
LDFLAGS+= -Wl,--export-dynamic
|
2008-10-21 13:01:24 -04:00
|
|
|
|
2011-11-14 14:14:18 -05:00
|
|
|
MAKE_FLAGS = LIB=execinfo
|
|
|
|
FAKE_FLAGS = PREFIX=${WRKINST}/${TRUEPREFIX} \
|
|
|
|
MANDIR=${PREFIX}/man/man
|
2008-10-21 13:01:24 -04:00
|
|
|
|
2011-12-09 05:20:56 -05:00
|
|
|
.if ${MACHINE_ARCH:Mmips64*} || ${MACHINE_ARCH:Mhppa} || ${MACHINE_ARCH:Marm}
|
2011-12-09 03:17:31 -05:00
|
|
|
CFLAGS+= -D__BUILTIN_HACK
|
2011-11-16 10:12:53 -05:00
|
|
|
.endif
|
|
|
|
|
2011-11-14 14:14:18 -05:00
|
|
|
do-configure:
|
|
|
|
printf "major=${LIBexecinfo_VERSION:R}\nminor=${LIBexecinfo_VERSION:E}\n" \
|
|
|
|
> ${WRKSRC}/libbacktrace/shlib_version
|
2008-10-21 13:01:24 -04:00
|
|
|
|
|
|
|
post-install:
|
2011-11-14 14:14:18 -05:00
|
|
|
mv ${PREFIX}/include/backtrace.h ${PREFIX}/include/execinfo.h
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIST}/examples/backtrace_test \
|
|
|
|
${PREFIX}/bin/backtrace_test
|
2008-10-21 13:01:24 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|