pkgsrc-wip/ltrace/Makefile
Jeremy C. Reed 77344e482b Import ltrace.
ltrace is a debugging tool that traces library calls in ELF32
executables.  It intercepts and records the dynamic library calls
from the executed process.  It can also intercept and print system
calls.

(This is for Linux.)
2005-12-17 05:51:55 +00:00

38 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2005/12/17 05:51:55 jeremy-c-reed Exp $
#
DISTNAME= ltrace_0.3.36.orig
PKGNAME= ${DISTNAME:S/_/-/:S/.orig//}
CATEGORIES= sysutils devel
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/l/ltrace/}
MAINTAINER= reed@reedmedia.net
HOMEPAGE= http://packages.debian.org/unstable/utils/ltrace.html
COMMENT= Track runtime library calls in dynamically linked programs
ONLY_FOR_PLATFORM= Linux-*-*
WRKSRC= ${WRKDIR}/ltrace-0.3.36
USE_PKGINSTALL= yes
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
# maybe following should be done in devel/libelf/buildlink3.mk instead
#CFLAGS+= -I${BUILDLINK_PREFIX.libelf}/include/libelf
CPPFLAGS+= -I${BUILDLINK_PREFIX.libelf}/include/libelf
#CPPFLAGS+= -I${BUILDLINK_DIR}/include/libelf
#CFLAGS+= -I${BUILDLINK_DIR}/include/libelf
# if this uses BUILDLINK_INCDIRS or CFLAGS for this. the build fails because
# it uses -I- which makes it ignore this include directory
#BUILDLINK_INCDIRS.libelf+= include/libelf
INSTALLATION_DIRS+= share/examples/ltrace
CONF_FILES= ${PREFIX}/share/examples/ltrace/ltrace.conf ${PKG_SYSCONFDIR}/ltrace.conf
post-install:
${INSTALL_DATA} ${WRKSRC}/etc/ltrace.conf ${PREFIX}/share/examples/ltrace
.include "../../devel/libelf/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"