Files
ports/sysutils/mcelog/Makefile
T
Jason E. Hale 14f7c29430 */*: De-orbit alias.mk
Mk/Uses/alias.mk was an attempt for compat with DPorts, but has rotted.
This feature was never documented in the PHB, so there is no work to
be done by the docs@ team.

Nothing against DragonFly, but if DPorts still needs FreeBSD 9
support, they really should work that out with upstream projects.

Ultimately, we don't need to keep carrying this outdated feature that
doesn't affect us.
2025-12-30 07:00:05 -05:00

42 lines
1.0 KiB
Makefile

PORTNAME= mcelog
PORTVERSION= 178
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= ports@FreeBSD.org
COMMENT= Collects and decodes Machine Check Exception data
WWW= http://mcelog.org/
LICENSE= GPLv2
ONLY_FOR_ARCHS= amd64 i386
TEST_DEPENDS= bash:shells/bash
USES= gmake shebangfix
USE_GITHUB= yes
GH_ACCOUNT= andikleen
SHEBANG_FILES= tests/cache/inject tests/memdb/inject tests/page/inject \
tests/pfa/inject tests/server/inject tests/socket/inject \
tests/trigger tests/unknown/inject
MAKE_ENV+= FREEBSD=1
MAKE_ARGS+= CFLAGS="${CFLAGS}" prefix="${PREFIX}"
LDFLAGS+= -lkvm
PLIST_FILES= bin/mcelog share/man/man8/mcelog.8.gz
post-patch:
@${ECHO} "${DISTVERSIONPREFIX}${PORTVERSION}" >${WRKSRC}/.os_version
@${CP} ${FILESDIR}/memstream.c ${WRKSRC}/memstream.c
@${REINPLACE_CMD} 's/\"unknown\"/\"${PORTVERSION}\"/' \
${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mcelog ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/mcelog.8 ${STAGEDIR}${PREFIX}/share/man/man8
.include <bsd.port.mk>