pkgsrc/sysutils/strace/Makefile
2020-08-31 18:06:29 +00:00

43 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.32 2020/08/31 18:11:36 wiz Exp $
#
DISTNAME= strace-4.5.15
PKGREVISION= 14
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=strace/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= christos@NetBSD.org
HOMEPAGE= https://sourceforge.net/projects/strace/
COMMENT= Trace system calls
LICENSE= modified-bsd
# NetBSD < 3.99.16
NOT_FOR_PLATFORM= NetBSD-[012]*-* NetBSD-3.[0-9][._]*-* \
NetBSD-3.99.[0-9]-* NetBSD-3.99.1[0-5]-*
# "not supported" according to joerg@
NOT_FOR_PLATFORM+= DragonFly-*-*
GNU_CONFIGURE= yes
REPLACE_PERL= strace-graph
USE_TOOLS+= perl:run
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"
USE_TOOLS+= autoconf
pre-configure:
cd ${WRKSRC} && autoconf
.endif
.if ${OPSYS} == "NetBSD"
MAKE_ENV+= NETBSD_SRCDIR=${BSDSRCDIR:Q}
.if !exists(${BSDSRCDIR:Q}/sys/kern/syscalls.master)
PKG_FAIL_REASON+= "Please place kernel sources in ${BSDSRCDIR:Q}/sys or set BSDSRCDIR"
.endif
pre-configure:
${CP} -f ${WRKSRC}/syscalls.pl ${WRKSRC}/netbsd
.endif
.include "../../mk/bsd.pkg.mk"