pkgsrc-wip/ltrace/Makefile
Johnny C. Lam 64bfcf7b60 Catch up to modern pkginstall framework: USE_PKGINSTALL has been dead
for a while now, and *_EXTRA_TMPL are generally not needed anymore.
2006-03-14 01:27:57 +00:00

37 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.2 2006/03/14 01:28:01 jlamwww 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_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"